[Agent][GO] - fix deploy bugs
This commit is contained in:
@@ -14,6 +14,12 @@ type NfsDeployConfig struct {
|
||||
}
|
||||
|
||||
func NFSDeploy(commonEnv *z_dep.CommonEnvironmentConfig) bool {
|
||||
|
||||
if commonEnv.NFSServerIP == "" {
|
||||
log.Error("Nfs server ip is nil")
|
||||
return false
|
||||
}
|
||||
|
||||
return commonEnv.ParseCommonEnvToApplyFile(CmiiNfsTemplate, z_dep.NfsApplyFilePath)
|
||||
}
|
||||
|
||||
|
||||
@@ -82,8 +82,6 @@ metadata:
|
||||
# replace with namespace where provisioner is deployed
|
||||
namespace: kube-system #与RBAC文件中的namespace保持一致
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harborsecret
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
@@ -95,6 +93,8 @@ spec:
|
||||
labels:
|
||||
app: nfs-client-provisioner
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harborsecret
|
||||
serviceAccountName: nfs-client-provisioner
|
||||
containers:
|
||||
- name: nfs-client-provisioner
|
||||
|
||||
@@ -21,13 +21,13 @@ metadata:
|
||||
name: test-pod
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harborsecret
|
||||
- name: harborsecret
|
||||
containers:
|
||||
- name: test-pod
|
||||
{{- if .HarborPort }}
|
||||
image: {{ .HarborIPOrCustomImagePrefix }}:{{ .HarborPort }}/cmii/busybox:latest
|
||||
image: {{ .HarborIPOrCustomImagePrefix }}:{{ .HarborPort }}/cmii/busybox:latest
|
||||
{{- else }}
|
||||
image: {{ .HarborIPOrCustomImagePrefix }}busybox:latest
|
||||
image: {{ .HarborIPOrCustomImagePrefix }}busybox:latest
|
||||
{{- end }}
|
||||
command:
|
||||
- "/bin/sh"
|
||||
|
||||
Reference in New Issue
Block a user