apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Release.Name }}-frontend spec: replicas: 1 selector: matchLabels: app: {{ .Release.Name }}-frontend template: metadata: labels: app: {{ .Release.Name }}-frontend spec: containers: - name: frontend image: {{ .Values.frontend.image }} ports: - containerPort: {{ .Values.frontend.service.targetPort | int }} env: - name: NEXT_PUBLIC_API_HOST value: "{{ .Values.frontend.env.NEXT_PUBLIC_API_HOST }}"