[stage-3] add helm chart for simple application

This commit is contained in:
2023-03-21 11:03:24 +07:00
parent 0d93fc258c
commit 30a0e61e8a
7 changed files with 129 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: {{ .Chart.Name }}-{{ .Values.environment }}
service: application
name: {{ .Chart.Name }}-{{ .Values.environment }}-application
spec:
replicas: {{ .Values.application.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 }}:{{ .Chart.AppVersion }}
imagePullPolicy: Always
name: application
ports:
- name: web
containerPort: 80
resources:
{{- toYaml .Values.application.resources | nindent 12 }}
terminationGracePeriodSeconds: 30