Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: "{{ .Release.Name }}"
- namespace: "{{ .Release.Namespace }}"
- labels:
- app: "{{ .Release.Name }}"
- spec:
- replicas: {{ .Values.replicaCount }}
- selector:
- matchLabels:
- app: "{{ .Release.Name }}"
- template:
- metadata:
- labels:
- app: "{{ .Release.Name }}"
- spec:
- nodeSelector:
- {{- range $key, $value := .Values.nodeSelectors }}
- {{ $key }}: {{ $value }}
- {{- end }}
- containers:
- - name: "{{ .Release.Name }}"
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- ports:
- - name: http
- containerPort: {{ .Values.http.port }}
- livenessProbe:
- httpGet:
- path: {{ .Values.metrics.healthCheckPath }}
- port: {{ .Values.http.port }}
- initialDelaySeconds: {{ .Values.metrics.livenessProbe.initialDelaySeconds }}
- periodSeconds: {{ .Values.metrics.livenessProbe.periodSeconds }}
- readinessProbe:
- httpGet:
- path: {{ .Values.metrics.healthCheckPath }}
- port: {{ .Values.http.port }}
- initialDelaySeconds: {{ .Values.metrics.readinessProbe.initialDelaySeconds }}
- periodSeconds: {{ .Values.metrics.readinessProbe.periodSeconds }}
- env:
- - name: NUXT_PUBLIC_APP_VERSION
- value: "{{ .Values.appVersion }}"
- - name: NUXT_API_BASE_URL
- value: "{{ .Values.externalBackend.url }}"
- - name: NUXT_PUBLIC_YM_ID
- value: "{{ .Values.metrics.yandex.id }}"
- - name: NUXT_PUBLIC_YA_MAP_API_KEY
- value: "{{ .Values.metrics.yandex.apiKey }}"
- imagePullSecrets:
- {{- range .Values.imagePullSecrets }}
- - name: "{{ .name }}"
- {{- end }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement