[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

@@ -102,7 +102,11 @@ spec:
serviceAccountName: helm-emqxs
containers:
- name: helm-emqxs
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/emqx:5.5.1
{{- else }}
image: {{ .HarborIP }}/cmii/emqx:5.5.1
{{- end }}
imagePullPolicy: Always
ports:
- name: mqtt

View File

@@ -54,7 +54,11 @@ spec:
affinity: {}
containers:
- name: helm-mongo
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/mongo:5.0
{{- else }}
image: {{ .HarborIP }}/cmii/mongo:5.0
{{- end }}
resources: {}
ports:
- containerPort: 27017

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

View File

@@ -81,10 +81,18 @@ spec:
affinity: {}
containers:
- name: nacos-server
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/nacos-server:v2.1.2
{{- else }}
image: {{ .HarborIP }}/cmii/nacos-server:v2.1.2
{{- end }}
ports:
- containerPort: 8848
name: dashboard
- containerPort: 9848
name: tcp-9848
- containerPort: 9849
name: tcp-9849
env:
- name: NACOS_AUTH_ENABLE
value: "false"

View File

@@ -192,7 +192,11 @@ spec:
terminationGracePeriodSeconds: 120
initContainers:
- name: volume-permissions
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:10-debian-10-r140
{{- 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
@@ -211,7 +215,11 @@ spec:
mountPath: /bitnami/rabbitmq/mnesia
containers:
- name: rabbitmq
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/rabbitmq:3.9.12-debian-10-r3
{{- else }}
image: {{ .HarborIP }}/cmii/rabbitmq:3.9.12-debian-10-r3
{{- end }}
imagePullPolicy: "Always"
env:
- name: BITNAMI_DEBUG

View File

@@ -353,7 +353,11 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: redis
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
{{- else }}
image: {{ .HarborIP }}/cmii/redis:6.2.6-debian-10-r0
{{- end }}
imagePullPolicy: "Always"
securityContext:
runAsUser: 1001
@@ -487,7 +491,11 @@ spec:
terminationGracePeriodSeconds: 30
containers:
- name: redis
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/redis:6.2.6-debian-10-r0
{{- if .HarborPort }}
image: {{ .HarborIP }}:{{ .HarborPort }}/cmii/bitnami-shell:6.2.6-debian-10-r0
{{- else }}
image: {{ .HarborIP }}/cmii/bitnami-shell:6.2.6-debian-10-r0
{{- end }}
imagePullPolicy: "Always"
securityContext:
runAsUser: 1001