apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "open-meteo-service.fullname" . }} annotations: argocd.argoproj.io/sync-options: Replace=true labels: {{- include "open-meteo-service.labels" . | nindent 4 }} app.kubernetes.io/component: api spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "open-meteo-service.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "open-meteo-service.labels" . | nindent 8 }} app.kubernetes.io/component: api annotations: {{- toYaml .Values.podAnnotations | nindent 8 }} spec: containers: - name: {{ include "open-meteo-service.name" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.service.port }} protocol: TCP env: - name: CACHE_FILE value: {{ .Values.env.cacheFile | quote }} livenessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 5 periodSeconds: 10 readinessProbe: httpGet: path: /healthz port: http initialDelaySeconds: 5 periodSeconds: 10 volumeMounts: - name: cache-data mountPath: /data resources: {{- toYaml .Values.resources | nindent 12 }} volumes: - name: cache-data {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ include "open-meteo-service.fullname" . }} {{- else }} emptyDir: {} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }}