Skip to content

Instantly share code, notes, and snippets.

@jwillker
Created May 8, 2022 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwillker/13c745c0ec287561dbab717b9d512cc5 to your computer and use it in GitHub Desktop.
Save jwillker/13c745c0ec287561dbab717b9d512cc5 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "generic.fullname" .}}
labels: &labels
{{- include "generic.commonLabels" . | nindent 4 }}
{{- with .Values.app.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations: &annotations
{{- include "generic.commonAnnotations" . | nindent 4 }}
{{- with .Values.app.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.app.replicas }}
selector:
matchLabels:
{{- include "generic.selectorLabels" . | nindent 6 }}
strategy:
{{ if eq .Values.rollout.type "RollingUpdate" }}
rollingUpdate:
maxSurge: {{ .Values.rollout.maxSurge }}
maxUnavailable: {{ .Values.rollout.maxUnavailable }}
{{ end }}
type: {{ .Values.rollout.type }}
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment