apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Values.frontend.name }} labels: app: {{ .Values.frontend.name }} component: frontend spec: replicas: {{ .Values.frontend.replicaCount }} selector: matchLabels: app: {{ .Values.frontend.name }} component: frontend template: metadata: labels: app: {{ .Values.frontend.name }} component: frontend spec: containers: - name: frontend image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}" imagePullPolicy: {{ .Values.frontend.image.pullPolicy }} ports: - containerPort: {{ .Values.frontend.service.targetPort }} name: http protocol: TCP env: - name: VITE_API_URL value: {{ .Values.env.backendUrl | quote }} resources: {{- toYaml .Values.frontend.resources | nindent 10 }} livenessProbe: httpGet: path: / port: http initialDelaySeconds: 30 periodSeconds: 10 readinessProbe: httpGet: path: / port: http initialDelaySeconds: 10 periodSeconds: 5