diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ee30c8217e4b8717f7844346aaa189a3e2033b3..de1e2f71cc602947fb8fc51afe58c6d30f8098b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,4 +96,4 @@ deploy: before_script: - kubectl config use-context $CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME:maps-deployment script: - - helm -n $KUBE_NAMESPACE upgrade --install $DEPLOYMENT_CHART_NAME maps/ + - helm -n $KUBE_NAMESPACE upgrade --install $DEPLOYMENT_CHART_NAME maps/ --set nginx.image.repository=$CI_REGISTRY_IMAGE/nginx --set nginx.image.tag=$IMAGE_TAG --set fpm.image.repository=$CI_REGISTRY_IMAGE/fpm --set fpm.image.tag=$IMAGE_TAG diff --git a/maps/templates/deployment.yaml b/maps/templates/deployment.yaml index d666b3213413fc009d719b55433b3bd75725ad3b..c7f6f7b430615b3a97d67b24f6fc704c239209fb 100644 --- a/maps/templates/deployment.yaml +++ b/maps/templates/deployment.yaml @@ -34,7 +34,7 @@ spec: - name: fpm securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.fpm.image.repository }}:{{ .Values.fpm.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: fpm @@ -55,7 +55,7 @@ spec: - name: nginx securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.nginx.image.repository }}:{{ .Values.nginx.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http @@ -71,7 +71,7 @@ spec: port: http resources: {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.fpm.volumeMounts }} + {{- with .Values.nginx.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} diff --git a/maps/values.yaml b/maps/values.yaml index 67c7eced355a557c9829494cf71468161d68cbd3..62f4f24c256fa444563c10e069b33b4d523ffbf2 100644 --- a/maps/values.yaml +++ b/maps/values.yaml @@ -4,12 +4,6 @@ replicaCount: 1 -image: - repository: nginx - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - imagePullSecrets: [] nameOverride: "" fullnameOverride: "" @@ -87,6 +81,19 @@ volumes: [] fpm: volumeMounts: [] + image: + repository: nginx + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" + +nginx: + volumeMounts: [] + image: + repository: nginx + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: "" nodeSelector: {}