github.com/zsuzhengdu/helm@v3.0.0-beta.3+incompatible/cmd/helm/testdata/testcharts/chart-with-template-lib-dep/templates/deployment.yaml (about)

     1  apiVersion: apps/v1beta2
     2  kind: Deployment
     3  metadata:
     4    name: {{ template "chart-with-template-lib-dep.fullname" . }}
     5    labels:
     6      app: {{ template "chart-with-template-lib-dep.name" . }}
     7      chart: {{ template "chart-with-template-lib-dep.chart" . }}
     8      release: {{ .Release.Name }}
     9      heritage: {{ .Release.Service }}
    10  spec:
    11    replicas: {{ .Values.replicaCount }}
    12    selector:
    13      matchLabels:
    14        app: {{ template "chart-with-template-lib-dep.name" . }}
    15        release: {{ .Release.Name }}
    16    template:
    17      metadata:
    18        labels:
    19          app: {{ template "chart-with-template-lib-dep.name" . }}
    20          release: {{ .Release.Name }}
    21      spec:
    22        containers:
    23          - name: {{ .Chart.Name }}
    24            image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    25            imagePullPolicy: {{ .Values.image.pullPolicy }}
    26            ports:
    27              - name: http
    28                containerPort: 80
    29                protocol: TCP
    30            livenessProbe:
    31              httpGet:
    32                path: /
    33                port: http
    34            readinessProbe:
    35              httpGet:
    36                path: /
    37                port: http
    38            resources:
    39  {{ toYaml .Values.resources | indent 12 }}
    40      {{- with .Values.nodeSelector }}
    41        nodeSelector:
    42  {{ toYaml . | indent 8 }}
    43      {{- end }}
    44      {{- with .Values.affinity }}
    45        affinity:
    46  {{ toYaml . | indent 8 }}
    47      {{- end }}
    48      {{- with .Values.tolerations }}
    49        tolerations:
    50  {{ toYaml . | indent 8 }}
    51      {{- end }}