5252 valueFrom :
5353 fieldRef :
5454 fieldPath : metadata.name
55+ - name : ADC_SERVER_URL
56+ value : " unix:/sockets/adc.sock"
5557 image : " {{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}"
5658 imagePullPolicy : {{ .Values.deployment.image.pullPolicy }}
5759 ports :
6769 - name : {{ .Release.Name }}-ingress-config
6870 mountPath : /app/conf/config.yaml
6971 subPath : config.yaml
72+ - name : socket-volume
73+ mountPath : /sockets
7074 {{- if .Values.webhook.enabled }}
7175 - name : webhook-certs
7276 mountPath : /certs
@@ -88,14 +92,14 @@ spec:
8892 resources :
8993 {{- toYaml .Values.deployment.resources | nindent 10 }}
9094 securityContext :
91- {{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
95+ {{- toYaml .Values.deployment.securityContext | nindent 10 }}
9296 - name : adc-server
9397 image : " {{ .Values.deployment.adcContainer.image.repository }}:{{ .Values.deployment.adcContainer.image.tag }}"
9498 imagePullPolicy : {{ .Values.deployment.image.pullPolicy }}
9599 args :
96100 - " server"
97101 - " --listen"
98- - " http://127.0.0.1:3000 "
102+ - " unix:/sockets/adc.sock "
99103 - " --listen-status"
100104 - " 3001"
101105 env :
@@ -122,10 +126,13 @@ spec:
122126 port : 3001
123127 initialDelaySeconds : 5
124128 periodSeconds : 5
129+ volumeMounts :
130+ - name : socket-volume
131+ mountPath : /sockets
125132 resources :
126133 {{- toYaml .Values.deployment.resources | nindent 10 }}
127134 securityContext :
128- {{- toYaml .Values.deployment.podSecurityContext | nindent 10 }}
135+ {{- toYaml .Values.deployment.securityContext | nindent 10 }}
129136 {{- with .Values.deployment.nodeSelector }}
130137 nodeSelector :
131138 {{- toYaml . | nindent 8 }}
@@ -146,12 +153,14 @@ spec:
146153 - name : {{ .Release.Name }}-ingress-config
147154 configMap :
148155 name : {{ .Release.Name }}-ingress-config
156+ - name : socket-volume
157+ emptyDir : {}
149158 {{- if .Values.webhook.enabled }}
150159 - name : webhook-certs
151160 secret :
152161 secretName : {{ include "apisix-ingress-controller-manager.webhook.secretName" . }}
153162 {{- end }}
154163 securityContext :
155- runAsNonRoot : false
164+ {{- toYaml .Values.deployment.podSecurityContext | nindent 8 }}
156165 serviceAccountName : {{ .Release.Name }}
157166 terminationGracePeriodSeconds : 10
0 commit comments