mirror of
https://github.com/Dannecron/netology-devops-gw-infra.git
synced 2025-12-25 23:32:35 +03:00
31 lines
861 B
YAML
31 lines
861 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
|
service: application
|
|
name: {{ .Chart.Name }}-{{ .Values.environment }}-application
|
|
spec:
|
|
replicas: {{ .Values.replicasCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
|
service: application
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Chart.Name }}-{{ .Values.environment }}
|
|
service: application
|
|
spec:
|
|
containers:
|
|
- image: {{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}
|
|
imagePullPolicy: Always
|
|
name: application
|
|
ports:
|
|
- name: web
|
|
containerPort: 80
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
terminationGracePeriodSeconds: 30
|