Created
August 11, 2020 11:53
-
-
Save phroggyy/6a8e28ebd61885437fa644aa2c36e704 to your computer and use it in GitHub Desktop.
Revisions
-
phroggyy created this gist
Aug 11, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,67 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "kubernetes.fullname" . }} labels: app.kubernetes.io/name: {{ include "kubernetes.fullname" . }} helm.sh/chart: {{ include "kubernetes.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: app.kubernetes.io/name: {{ include "kubernetes.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} helm.sh/chart: {{ include "kubernetes.chart" . }} template: metadata: labels: app.kubernetes.io/name: {{ include "kubernetes.name" . }} helm.sh/chart: {{ include "kubernetes.chart" . }} app.kubernetes.io/instance: {{ .Release.Name }} spec: volumes: - name: nginx-config configMap: name: "{{ .Release.Name }}-nginx-config" containers: - name: "{{ .Chart.Name }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - mountPath: /etc/nginx/nginx.conf name: nginx-config subPath: nginx.conf ports: - name: http containerPort: 80 protocol: TCP livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: - labelSelector: matchExpressions: - key: app.kubernetes.io/instance operator: In values: - {{ .Release.Name }} topologyKey: kubernetes.io/hostname {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}