Add Helm chart

This commit is contained in:
2023-09-06 15:59:30 +03:00
parent f6a6e53010
commit e83f211b3a
5 changed files with 79 additions and 0 deletions

33
templates/deployment.yaml Normal file
View File

@@ -0,0 +1,33 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-gin
spec:
replicas: 3
selector:
matchLabels:
app: hello-gin
template:
metadata:
labels:
app: hello-gin
spec:
enableServiceLinks: false
imagePullSecrets:
- name: imgcred
containers:
- name: hello-gin
image: hello-gin
env:
- name: USERNAME
value: {{ .Values.username }}
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 8000
name: http
- containerPort: 8080
name: metrics