github.com/GoogleContainerTools/skaffold/v2@v2.13.2/integration/testdata/helm-render-delete/skaffold-helm/templates/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{ .Release.Name }}
     5    labels:
     6      app: {{ template "skaffold-helm.name" . }}
     7      chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
     8      release: {{ .Release.Name }}
     9      heritage: {{ .Release.Service }}
    10  spec:
    11    replicas: {{ .Values.replicaCount }}
    12    selector:
    13      matchLabels:
    14        app: {{ template "skaffold-helm.name" . }}
    15        release: {{ .Release.Name }}
    16    template:
    17      metadata:
    18        labels:
    19          app: {{ template "skaffold-helm.name" . }}
    20          release: {{ .Release.Name }}
    21      spec:
    22        containers:
    23          - name: {{ .Chart.Name }}
    24            image: {{ .Values.image.repository}}:{{ .Values.image.tag }}
    25            imagePullPolicy: {{ .Values.pullPolicy }}
    26            ports:
    27              - containerPort: {{ .Values.service.internalPort }}
    28            resources:
    29  {{ toYaml .Values.resources | indent 12 }}
    30      {{- if .Values.nodeSelector }}
    31        nodeSelector:
    32  {{ toYaml .Values.nodeSelector | indent 8 }}
    33      {{- end }}