github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/helm-multi-config/charts/app/templates/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{ include "app.fullname" . }}
     5    labels:
     6      {{- include "app.labels" . | nindent 4 }}
     7  spec:
     8    {{- if not .Values.autoscaling.enabled }}
     9    replicas: {{ .Values.replicaCount }}
    10    {{- end }}
    11    selector:
    12      matchLabels:
    13        {{- include "app.selectorLabels" . | nindent 6 }}
    14    template:
    15      metadata:
    16        {{- with .Values.podAnnotations }}
    17        annotations:
    18          {{- toYaml . | nindent 8 }}
    19        {{- end }}
    20        labels:
    21          {{- include "app.selectorLabels" . | nindent 8 }}
    22      spec:
    23        {{- with .Values.imagePullSecrets }}
    24        imagePullSecrets:
    25          {{- toYaml . | nindent 8 }}
    26        {{- end }}
    27        securityContext:
    28          {{- toYaml .Values.podSecurityContext | nindent 8 }}
    29        containers:
    30          - name: {{ .Chart.Name }}
    31            securityContext:
    32              {{- toYaml .Values.securityContext | nindent 12 }}
    33            image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
    34            imagePullPolicy: {{ .Values.image.pullPolicy }}
    35            resources:
    36              {{- toYaml .Values.resources | nindent 12 }}
    37        {{- with .Values.nodeSelector }}
    38        nodeSelector:
    39          {{- toYaml . | nindent 8 }}
    40        {{- end }}
    41        {{- with .Values.affinity }}
    42        affinity:
    43          {{- toYaml . | nindent 8 }}
    44        {{- end }}
    45        {{- with .Values.tolerations }}
    46        tolerations:
    47          {{- toYaml . | nindent 8 }}
    48        {{- end }}