Default image pull policy (#2)
* Added code for Makefile manifests * Done changes for default value
This commit is contained in:
parent
03e9cf1ce8
commit
1816f005bf
|
|
@ -0,0 +1,2 @@
|
|||
templates2
|
||||
test.yaml
|
||||
|
|
@ -0,0 +1 @@
|
|||
include ../Makefile
|
||||
|
|
@ -24,7 +24,7 @@ spec:
|
|||
{{- range .Values.containers }}
|
||||
- name: {{ .name }}
|
||||
image: "{{ .image.repository }}:{{ .image.tag }}"
|
||||
imagePullPolicy: {{ .image.pullPolicy }}
|
||||
imagePullPolicy: {{ .image.pullPolicy | default "IfNotPresent" }}
|
||||
ports:
|
||||
- name: {{ .ports.name }}
|
||||
containerPort: {{ .ports.containerPort }}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,12 @@ podAnnotations:
|
|||
app.kubernetes.io/managed-by: Helm
|
||||
podSecurityContext:
|
||||
fsGroup: 2000
|
||||
default:
|
||||
imagePullPolicy: IfNotPresent
|
||||
containers:
|
||||
- name: nginx
|
||||
image:
|
||||
repository: nginx
|
||||
pullPolicy: IfNotPresent
|
||||
tag: "1.17.9"
|
||||
ports:
|
||||
name: http
|
||||
|
|
@ -34,7 +35,7 @@ containers:
|
|||
- name: nginx2
|
||||
image:
|
||||
repository: nginx
|
||||
pullPolicy: IfNotPresent
|
||||
pullPolicy: Always
|
||||
tag: "1.17.9"
|
||||
ports:
|
||||
name: http
|
||||
|
|
|
|||
Loading…
Reference in New Issue