Arrobo, Gabriel | 9af7a94 | 2022-09-20 12:48:06 -0700 | [diff] [blame] | 1 | {{/* |
| 2 | # Copyright 2022-present Intel Corporation |
| 3 | # |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | */}} |
| 6 | |
| 7 | apiVersion: apps/v1 |
| 8 | kind: Deployment |
| 9 | metadata: |
| 10 | name: {{ include "network-test.fullname" . }} |
| 11 | labels: |
| 12 | {{- include "network-test.labels" . | nindent 4 }} |
| 13 | spec: |
| 14 | selector: |
| 15 | matchLabels: |
| 16 | {{- include "network-test.selectorLabels" . | nindent 6 }} |
| 17 | template: |
| 18 | metadata: |
| 19 | {{- with .Values.podAnnotations }} |
| 20 | annotations: |
| 21 | {{- toYaml . | nindent 8 }} |
| 22 | {{- end }} |
| 23 | labels: |
| 24 | {{- include "network-test.selectorLabels" . | nindent 8 }} |
| 25 | spec: |
| 26 | {{- with .Values.imagePullSecrets }} |
| 27 | imagePullSecrets: |
| 28 | {{- toYaml . | nindent 8 }} |
| 29 | {{- end }} |
| 30 | securityContext: |
| 31 | {{- toYaml .Values.podSecurityContext | nindent 8 }} |
| 32 | containers: |
| 33 | - name: {{ .Chart.Name }} |
| 34 | securityContext: |
| 35 | {{- toYaml .Values.securityContext | nindent 12 }} |
| 36 | image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
| 37 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 38 | ports: |
| 39 | - name: public |
| 40 | containerPort: {{ .Values.service.port }} |
| 41 | protocol: TCP |
| 42 | resources: |
| 43 | {{- toYaml .Values.resources | nindent 12 }} |
| 44 | {{- with .Values.nodeSelector }} |
| 45 | nodeSelector: |
| 46 | {{- toYaml . | nindent 8 }} |
| 47 | {{- end }} |
| 48 | {{- with .Values.affinity }} |
| 49 | affinity: |
| 50 | {{- toYaml . | nindent 8 }} |
| 51 | {{- end }} |
| 52 | {{- with .Values.tolerations }} |
| 53 | tolerations: |
| 54 | {{- toYaml . | nindent 8 }} |
| 55 | {{- end }} |