Update nginx-chart/templates/deployment.yaml
This commit is contained in:
@@ -1,18 +1,25 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "nginx-chart.fullname" . }}
|
name: {{ include "nginx-chart.fullname" . }}
|
||||||
namespace: {{ .Values.namespace }}
|
namespace: {{ .Values.namespace }}
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
replicas: {{ .Values.replicaCount }}
|
replicas: {{ .Values.replicaCount }}
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels: {app: nginx}
|
matchLabels:
|
||||||
|
app: nginx
|
||||||
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels: {app: nginx}
|
labels:
|
||||||
|
app: nginx
|
||||||
spec:
|
spec:
|
||||||
|
imagePullSecrets: harbor-secret
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
Reference in New Issue
Block a user