github.com/jenkins-x/jx/v2@v2.1.155/pkg/cmd/step/test_data/step_tag_project/charts/mydemo/templates/deployment.yaml (about)

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: {{ template "fullname" . }}
     5    labels:
     6      draft: {{ default "draft-app" .Values.draft }}
     7      chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
     8  spec:
     9    replicas: {{ .Values.replicaCount }}
    10    template:
    11      metadata:
    12        labels:
    13          draft: {{ default "draft-app" .Values.draft }}
    14          app: {{ template "fullname" . }}
    15  {{- if .Values.podAnnotations }}
    16        annotations:
    17  {{ toYaml .Values.podAnnotations | indent 8 }}
    18  {{- end }}
    19      spec:
    20        containers:
    21        - name: {{ .Chart.Name }}
    22          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    23          imagePullPolicy: {{ .Values.image.pullPolicy }}
    24          ports:
    25          - containerPort: {{ .Values.service.internalPort }}
    26          livenessProbe:
    27            httpGet:
    28              path: {{ .Values.probePath }}
    29              port: {{ .Values.service.internalPort }}
    30            initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
    31            periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
    32            successThreshold: {{ .Values.livenessProbe.successThreshold }}
    33            timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
    34          readinessProbe:
    35            httpGet:
    36              path: {{ .Values.probePath }}
    37              port: {{ .Values.service.internalPort }}
    38            periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
    39            successThreshold: {{ .Values.readinessProbe.successThreshold }}
    40            timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
    41          resources:
    42  {{ toYaml .Values.resources | indent 12 }}
    43        terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}