refactor: make logic to controller.maker

This commit is contained in:
zhaoyupeng
2025-11-24 23:04:40 +08:00
parent 27fa38aef0
commit 454e0639a0
29 changed files with 1026 additions and 757 deletions

View File

@@ -81,7 +81,7 @@ spec:
storageClassName: longhorn
resources:
requests:
storage: %dGi
storage: %s
---
apiVersion: v1
kind: Service

View File

@@ -84,7 +84,8 @@ data:
"Network": "10.244.0.0/16",
"EnableNFTables": false,
"Backend": {
"Type": "vxlan"
"Type": "%s",
"DirectRouting": true
}
}
kind: ConfigMap

View File

@@ -4,7 +4,7 @@ metadata:
name: kibana
namespace: db-es
spec:
replicas: 0
replicas: 1
selector:
matchLabels:
app: kibana

View File

@@ -6,7 +6,7 @@ import (
var (
//go:embed flannel.yaml
YAMLFlannel []byte
YAMLFlannel string
//go:embed es.yaml
YAMLES string