github.com/rohankumardubey/draft-classic@v0.16.0/packs/erlang/charts/templates/deployment.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: {{ template "chart.fullname" . }}
     5    labels:
     6      app: {{ template "chart.name" . }}
     7      chart: {{ template "chart.chart" . }}
     8      draft: {{ default "draft-app" .Values.draft }}
     9      release: {{ .Release.Name }}
    10      heritage: {{ .Release.Service }}
    11  spec:
    12    replicas: {{ .Values.replicaCount }}
    13    selector:
    14      matchLabels:
    15        app: {{ template "chart.name" . }}
    16        release: {{ .Release.Name }}
    17    template:
    18      metadata:
    19        annotations:
    20          buildID: {{ .Values.buildID }}
    21        labels:
    22          app: {{ template "chart.name" . }}
    23          draft: {{ default "draft-app" .Values.draft }}
    24          release: {{ .Release.Name }}
    25      spec:
    26        containers:
    27          - name: {{ .Chart.Name }}
    28            image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    29            imagePullPolicy: {{ .Values.image.pullPolicy }}
    30            ports:
    31              - name: http
    32                containerPort: 8080
    33                protocol: TCP
    34            livenessProbe:
    35              httpGet:
    36                path: /
    37                port: http
    38            readinessProbe:
    39              httpGet:
    40                path: /
    41                port: http
    42            env:
    43              - name: NODE
    44                valueFrom:
    45                  fieldRef:
    46                    fieldPath: status.podIP
    47              - name: HTTP_PORT
    48                value: "{{ .Values.service.port }}"
    49              - name: COOKIE
    50                value: {{ template "cookie" . }}
    51            resources:
    52  {{ toYaml .Values.resources | indent 12 }}
    53      {{- with .Values.nodeSelector }}
    54        nodeSelector:
    55  {{ toYaml . | indent 8 }}
    56      {{- end }}
    57      {{- with .Values.affinity }}
    58        affinity:
    59  {{ toYaml . | indent 8 }}
    60      {{- end }}
    61      {{- with .Values.tolerations }}
    62        tolerations:
    63  {{ toYaml . | indent 8 }}
    64      {{- end }}