Skip to content

Commit 2d0c936

Browse files
Add deployment template to Helm chart for workload rollout
1 parent 5abf37b commit 2d0c936

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

helm/chart/templates/deployment.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,24 @@ apiVersion: apps/v1
22
kind: Deployment
33
metadata:
44
name: {{ .Release.Name }}
5-
namespace: {{ .Values.namespace }}
5+
labels:
6+
app: {{ .Release.Name }}
7+
68
spec:
79
replicas: 1
10+
811
selector:
912
matchLabels:
1013
app: {{ .Release.Name }}
14+
1115
template:
1216
metadata:
1317
labels:
1418
app: {{ .Release.Name }}
19+
1520
spec:
1621
containers:
1722
- name: app
18-
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
19-
imagePullPolicy: {{ .Values.image.pullPolicy }}
23+
image: nginx:latest
24+
ports:
25+
- containerPort: 80

0 commit comments

Comments
 (0)