[Agent][Deploy] - support pure hostmode

This commit is contained in:
zeaslity
2024-06-11 15:49:37 +08:00
parent cb3daa503a
commit 4b782328db
20 changed files with 7408 additions and 22 deletions

View File

@@ -308,7 +308,11 @@ spec:
fsGroup: 1001
initContainers:
- name: change-volume-permissions
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:11-debian-11-r136
{{- else }}
image: {{ .HarborIP }}/cmii/bitnami-shell:11-debian-11-r136
{{- end }}
imagePullPolicy: "Always"
command:
- /bin/bash
@@ -322,7 +326,11 @@ spec:
mountPath: /bitnami/mysql
containers:
- name: mysql
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mysql:8.1.0-debian-11-r42
{{- else }}
image: {{ .HarborIP }}/cmii/mysql:8.1.0-debian-11-r42
{{- end }}
imagePullPolicy: "IfNotPresent"
securityContext:
runAsUser: 1001