apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Release.Name }}-web labels: {{- include "sentry.labels" . | nindent 4 }} {{- include "sentry.selectorLabels" (list $ "web") | nindent 4 }} spec: replicas: {{ .Values.web.replicas }} selector: matchLabels: {{- include "sentry.selectorLabels" (list $ "web") | nindent 6 }} template: metadata: labels: {{- include "sentry.selectorLabels" (list $ "web") | nindent 8 }} spec: containers: - name: web # No env vars here -- see values.yaml's web.builtWith* comment: # this is a static build, its API base URLs are baked into the # image, not configurable at the Deployment level. image: "{{ .Values.web.image.repository }}:{{ .Values.web.image.tag }}" imagePullPolicy: {{ .Values.global.imagePullPolicy }} ports: - name: http containerPort: 3000 resources: {{- toYaml .Values.web.resources | nindent 12 }} --- apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-web labels: {{- include "sentry.labels" . | nindent 4 }} {{- include "sentry.selectorLabels" (list $ "web") | nindent 4 }} spec: selector: {{- include "sentry.selectorLabels" (list $ "web") | nindent 4 }} ports: - name: http port: 3000