|
@@ -83,8 +83,9 @@ spec:
|
|
|
secretName: {{ .Values.emqxLicneseSecretName }}
|
|
secretName: {{ .Values.emqxLicneseSecretName }}
|
|
|
{{- end }}
|
|
{{- end }}
|
|
|
serviceAccountName: {{ include "emqx.fullname" . }}
|
|
serviceAccountName: {{ include "emqx.fullname" . }}
|
|
|
- securityContext:
|
|
|
|
|
- fsGroup: 1000
|
|
|
|
|
|
|
+ {{- if .Values.podSecurityContext.enabled }}
|
|
|
|
|
+ securityContext: {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
|
|
|
|
|
+ {{- end }}
|
|
|
{{- if .Values.initContainers }}
|
|
{{- if .Values.initContainers }}
|
|
|
initContainers:
|
|
initContainers:
|
|
|
{{ toYaml .Values.initContainers | indent 8 }}
|
|
{{ toYaml .Values.initContainers | indent 8 }}
|
|
@@ -99,6 +100,9 @@ spec:
|
|
|
- name: emqx
|
|
- name: emqx
|
|
|
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
|
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
|
+ {{- if .Values.containerSecurityContext.enabled }}
|
|
|
|
|
+ securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }}
|
|
|
|
|
+ {{- end }}
|
|
|
ports:
|
|
ports:
|
|
|
- name: mqtt
|
|
- name: mqtt
|
|
|
containerPort: {{ .Values.emqxConfig.EMQX_LISTENER__TCP__EXTERNAL | default 1883 }}
|
|
containerPort: {{ .Values.emqxConfig.EMQX_LISTENER__TCP__EXTERNAL | default 1883 }}
|