|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: {{ include "njc-py-soak-tests.fullname" . }} |
| 5 | + labels: |
| 6 | + {{- include "njc-py-soak-tests.labels" . | nindent 4 }} |
| 7 | +spec: |
| 8 | + replicas: {{ .Values.replicaCount }} |
| 9 | + selector: |
| 10 | + matchLabels: |
| 11 | + {{- include "njc-py-soak-tests.selectorLabels" . | nindent 6 }} |
| 12 | + strategy: |
| 13 | + type: RollingUpdate |
| 14 | + rollingUpdate: |
| 15 | + maxSurge: 0 |
| 16 | + maxUnavailable: 1 |
| 17 | + template: |
| 18 | + metadata: |
| 19 | + {{- with .Values.podAnnotations }} |
| 20 | + annotations: |
| 21 | + {{- toYaml . | nindent 8 }} |
| 22 | + {{- end }} |
| 23 | + labels: |
| 24 | + {{- include "njc-py-soak-tests.selectorLabels" . | nindent 8 }} |
| 25 | + spec: |
| 26 | + {{- with .Values.imagePullSecrets }} |
| 27 | + imagePullSecrets: |
| 28 | + {{- toYaml . | nindent 8 }} |
| 29 | + {{- end }} |
| 30 | + serviceAccountName: {{ include "njc-py-soak-tests.serviceAccountName" . }} |
| 31 | + securityContext: |
| 32 | + {{- toYaml .Values.podSecurityContext | nindent 8 }} |
| 33 | + volumes: |
| 34 | + - name: secret |
| 35 | + secret: |
| 36 | + secretName: {{ include "njc-py-soak-tests.fullname" $ }}-secret |
| 37 | + containers: |
| 38 | + - name: {{ .Chart.Name }} |
| 39 | + securityContext: |
| 40 | + {{- toYaml .Values.securityContext | nindent 12 }} |
| 41 | + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" |
| 42 | + imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 43 | + env: |
| 44 | + - name: NODEIP |
| 45 | + valueFrom: |
| 46 | + fieldRef: |
| 47 | + apiVersion: v1 |
| 48 | + fieldPath: status.hostIP |
| 49 | + - name: OTEL_METRICS_EXPORTER |
| 50 | + value: "otlp" |
| 51 | + - name: OTEL_RESOURCE_ATTRIBUTES |
| 52 | + value: "service.name={{ include "njc-py-soak-tests.fullname" . }},service.version={{ .Values.image.tag | default .Chart.AppVersion }}" |
| 53 | + - name: OTEL_TRACES_EXPORTER |
| 54 | + value: "none" |
| 55 | + - name: OTEL_EXPORTER_OTLP_ENDPOINT |
| 56 | + value: "http://$(NODEIP):14317" |
| 57 | + - name: OTEL_METRIC_EXPORT_INTERVAL |
| 58 | + value: "10000" |
| 59 | + - name: TESTID |
| 60 | + value: "{{ .Values.testid }}" |
| 61 | + volumeMounts: |
| 62 | + - name: "secret" |
| 63 | + mountPath: "/soaktests/confluent-kafka-python/ccloud.config" |
| 64 | + subPath: ccloud.config |
| 65 | + readOnly: true |
| 66 | + # livenessProbe: |
| 67 | + # httpGet: |
| 68 | + # path: / |
| 69 | + # port: http |
| 70 | + # readinessProbe: |
| 71 | + # httpGet: |
| 72 | + # path: / |
| 73 | + # port: http |
| 74 | + resources: |
| 75 | + {{- toYaml .Values.resources | nindent 12 }} |
| 76 | + {{- with .Values.nodeSelector }} |
| 77 | + nodeSelector: |
| 78 | + {{- toYaml . | nindent 8 }} |
| 79 | + {{- end }} |
| 80 | + {{- with .Values.affinity }} |
| 81 | + affinity: |
| 82 | + {{- toYaml . | nindent 8 }} |
| 83 | + {{- end }} |
| 84 | + {{- with .Values.tolerations }} |
| 85 | + tolerations: |
| 86 | + {{- toYaml . | nindent 8 }} |
| 87 | + {{- end }} |
0 commit comments