Add Helm chart
This commit is contained in:
33
templates/deployment.yaml
Normal file
33
templates/deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user