|
| 1 | +apiVersion: apps/v1 |
| 2 | +kind: Deployment |
| 3 | +metadata: |
| 4 | + name: {{ include "ai-satellite.fullname" . }} |
| 5 | + labels: |
| 6 | + {{- include "ai-satellite.labels" . | nindent 4 }} |
| 7 | +spec: |
| 8 | + replicas: {{ .Values.replicaCount }} |
| 9 | + selector: |
| 10 | + matchLabels: |
| 11 | + {{- include "ai-satellite.selectorLabels" . | nindent 6 }} |
| 12 | + template: |
| 13 | + metadata: |
| 14 | + labels: |
| 15 | + {{- include "ai-satellite.selectorLabels" . | nindent 8 }} |
| 16 | + {{- with .Values.podLabels }} |
| 17 | + {{- toYaml . | nindent 8 }} |
| 18 | + {{- end }} |
| 19 | + annotations: |
| 20 | + {{- with .Values.podAnnotations }} |
| 21 | + {{- toYaml . | nindent 8 }} |
| 22 | + {{- end }} |
| 23 | + spec: |
| 24 | + securityContext: |
| 25 | + {{- toYaml .Values.podSecurityContext | nindent 8 }} |
| 26 | + serviceAccountName: {{ include "ai-satellite.serviceAccountName" . }} |
| 27 | + containers: |
| 28 | + - name: {{ .Chart.Name }} |
| 29 | + securityContext: |
| 30 | + {{- toYaml .Values.securityContext | nindent 12 }} |
| 31 | + {{- if .Values.image.digest }} |
| 32 | + image: "{{ .Values.image.repository }}@{{ .Values.image.digest }}" |
| 33 | + {{- else }} |
| 34 | + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" |
| 35 | + {{- end }} |
| 36 | + imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 37 | + ports: |
| 38 | + {{- range .Values.ports }} |
| 39 | + - name: {{ .name }} |
| 40 | + containerPort: {{ .port }} |
| 41 | + {{- end }} |
| 42 | + - name: health |
| 43 | + containerPort: 8080 |
| 44 | + env: |
| 45 | + - name: FORMAL_CONTROL_PLANE_API_KEY |
| 46 | + valueFrom: |
| 47 | + secretKeyRef: |
| 48 | + name: {{ include "ai-satellite.fullname" . }} |
| 49 | + key: formal-api-key |
| 50 | + {{- range $key, $value := .Values.env }} |
| 51 | + - name: {{ $key }} |
| 52 | + value: {{ $value | quote }} |
| 53 | + {{- end }} |
| 54 | + resources: |
| 55 | + {{- toYaml .Values.resources | nindent 12 }} |
| 56 | + {{- with .Values.volumeMounts }} |
| 57 | + volumeMounts: |
| 58 | + {{- toYaml . | nindent 12 }} |
| 59 | + {{- end }} |
| 60 | + {{- with .Values.sidecars }} |
| 61 | + {{- toYaml . | nindent 8 }} |
| 62 | + {{- end }} |
| 63 | + {{- with .Values.volumes }} |
| 64 | + volumes: |
| 65 | + {{- toYaml . | nindent 8 }} |
| 66 | + {{- end }} |
| 67 | + {{- if .Values.pullWithCredentials }} |
| 68 | + imagePullSecrets: |
| 69 | + - name: formal-ecr-secret |
| 70 | + {{- end }} |
| 71 | + {{- with .Values.tolerations }} |
| 72 | + tolerations: |
| 73 | + {{- toYaml . | nindent 8 }} |
| 74 | + {{- end }} |
0 commit comments