| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: {{ template "openshift-console-plugin.name" . }}
- namespace: {{ .Release.Namespace }}
- labels:
- {{- include "openshift-console-plugin.labels" . | nindent 4 }}
- app.openshift.io/runtime-namespace: {{ .Release.Namespace }}
- spec:
- replicas: {{ .Values.plugin.replicas }}
- selector:
- matchLabels:
- {{- include "openshift-console-plugin.selectorLabels" . | nindent 6 }}
- template:
- metadata:
- labels:
- {{- include "openshift-console-plugin.labels" . | nindent 8 }}
- spec:
- containers:
- - name: {{ template "openshift-console-plugin.name" . }}
- image: {{ required "Plugin image must be specified!" .Values.plugin.image }}
- ports:
- - containerPort: {{ .Values.plugin.port }}
- protocol: TCP
- imagePullPolicy: {{ .Values.plugin.imagePullPolicy }}
- {{- if .Values.plugin.containerSecurityContext }}
- securityContext:
- {{ tpl (toYaml .Values.plugin.containerSecurityContext | indent 12) . }}
- {{- end }}
- resources:
- {{- toYaml .Values.plugin.resources | nindent 12 }}
- volumeMounts:
- - name: {{ template "openshift-console-plugin.certificateSecret" . }}
- readOnly: true
- mountPath: /var/cert
- - name: nginx-conf
- readOnly: true
- mountPath: /etc/nginx/nginx.conf
- subPath: nginx.conf
- volumes:
- - name: {{ template "openshift-console-plugin.certificateSecret" . }}
- secret:
- secretName: {{ template "openshift-console-plugin.certificateSecret" . }}
- defaultMode: 420
- - name: nginx-conf
- configMap:
- name: {{ template "openshift-console-plugin.name" . }}
- defaultMode: 420
- restartPolicy: Always
- dnsPolicy: ClusterFirst
- {{- if .Values.plugin.podSecurityContext }}
- securityContext:
- {{ tpl (toYaml .Values.plugin.podSecurityContext | indent 8) . }}
- {{- end }}
- strategy:
- type: RollingUpdate
- rollingUpdate:
- maxUnavailable: 25%
- maxSurge: 25%
|