mirror of
https://github.com/Telecominfraproject/wlan-cloud-helm.git
synced 2025-11-01 11:07:48 +00:00
WIFI-1238 set all imagePullPolicies to Always (#38)
* set all imagePullPolicies to Always * use chart-level and global image pull policy * make images configurable
This commit is contained in:
@@ -12,6 +12,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ include "common.name" . }}-test-cassandra-basic
|
- name: {{ include "common.name" . }}-test-cassandra-basic
|
||||||
image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}
|
image: {{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ image:
|
|||||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||||
##
|
##
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
## Optionally specify an array of imagePullSecrets.
|
## Optionally specify an array of imagePullSecrets.
|
||||||
## Secrets must be manually created in the namespace.
|
## Secrets must be manually created in the namespace.
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||||
@@ -297,7 +297,7 @@ metrics:
|
|||||||
enabled: false
|
enabled: false
|
||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
repository: bitnami/cassandra-exporter
|
repository: bitnami/cassandra-exporter
|
||||||
tag: 2.3.4-debian-10-r119
|
tag: 2.3.4-debian-10-r119
|
||||||
## Optionally specify an array of imagePullSecrets.
|
## Optionally specify an array of imagePullSecrets.
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ include "common.fullname" . }}-config
|
- name: {{ include "common.fullname" . }}-config
|
||||||
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy | default .Values.global.pullPolicy }}
|
||||||
command: ["/usr/local/script/runtimeConfig.sh"]
|
command: ["/usr/local/script/runtimeConfig.sh"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config-volume
|
- name: config-volume
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ include "common.name" . }}-test-consume
|
- name: {{ include "common.name" . }}-test-consume
|
||||||
image: {{ .Values.image }}:{{ .Values.imageTag }}
|
image: {{ .Values.image }}:{{ .Values.imageTag }}
|
||||||
|
imagePullPolicy: {{ .Values.imagePullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ imageTag: "5.0.1" # Confluent image for Kafka 2.0.0
|
|||||||
|
|
||||||
## Specify a imagePullPolicy
|
## Specify a imagePullPolicy
|
||||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "Always"
|
||||||
|
|
||||||
## Configure resource requests and limits
|
## Configure resource requests and limits
|
||||||
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ controller:
|
|||||||
tag: "1.7.0"
|
tag: "1.7.0"
|
||||||
|
|
||||||
## The pull policy for the Ingress controller image.
|
## The pull policy for the Ingress controller image.
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
|
|
||||||
config:
|
config:
|
||||||
## The name of the ConfigMap used by the Ingress controller.
|
## The name of the ConfigMap used by the Ingress controller.
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ spec:
|
|||||||
{{- if .Values.global.integratedDeployment }}
|
{{- if .Values.global.integratedDeployment }}
|
||||||
- name: {{ include "common.name" . }}-readiness-int-cloud
|
- name: {{ include "common.name" . }}-readiness-int-cloud
|
||||||
image: alpine
|
image: alpine
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -71,7 +71,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
{{- if .Values.probes.enabled }}
|
{{- if .Values.probes.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
{{- if .Values.probes.enabled }}
|
{{- if .Values.probes.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ spec:
|
|||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: {{ include "common.name" . }}-init-dir-ownership-change
|
- name: {{ include "common.name" . }}-init-dir-ownership-change
|
||||||
image: alpine:3.6
|
image: {{ .Values.alpine.image }}
|
||||||
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
# Change ownership to `mosquitto` user for a mounted volume
|
# Change ownership to `mosquitto` user for a mounted volume
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -63,7 +64,7 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: {{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
{{- if .Values.probes.enabled }}
|
{{- if .Values.probes.enabled }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ image:
|
|||||||
name: eclipse-mosquitto
|
name: eclipse-mosquitto
|
||||||
tag: 2.0.3
|
tag: 2.0.3
|
||||||
|
|
||||||
|
alpine:
|
||||||
|
image: alpine:3.6
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ include "common.name" . }}-test-postgres-basic
|
- name: {{ include "common.name" . }}-test-postgres-basic
|
||||||
image: {{ template "postgresql.image" . }}
|
image: {{ template "postgresql.image" . }}
|
||||||
|
imagePullPolicy: {{ .Values.image.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: {{ include "postgresql.username" . | quote }}
|
value: {{ include "postgresql.username" . | quote }}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ image:
|
|||||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||||
##
|
##
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: Always
|
||||||
## Optionally specify an array of imagePullSecrets.
|
## Optionally specify an array of imagePullSecrets.
|
||||||
## Secrets must be manually created in the namespace.
|
## Secrets must be manually created in the namespace.
|
||||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: API
|
- name: API
|
||||||
value: {{ .Values.env.graphql }}
|
value: {{ .Values.env.graphql }}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: {{ include "common.name" . }}-readiness
|
- name: {{ include "common.name" . }}-readiness
|
||||||
image: busybox:1.28
|
image: busybox:1.28
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command: ['sh', '-c', "until nslookup {{ $pg }}.{{ $ns }}.svc.cluster.local; do echo waiting for POSTGRES; sleep 2; done"]
|
command: ['sh', '-c', "until nslookup {{ $pg }}.{{ $ns }}.svc.cluster.local; do echo waiting for POSTGRES; sleep 2; done"]
|
||||||
- name: {{ include "common.name" . }}-create-db-schema
|
- name: {{ include "common.name" . }}-create-db-schema
|
||||||
env:
|
env:
|
||||||
@@ -49,7 +49,7 @@ spec:
|
|||||||
name: {{ include "common.fullname" . }}-creds
|
name: {{ include "common.fullname" . }}-creds
|
||||||
key: schema-repo-password
|
key: schema-repo-password
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -86,7 +86,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
- name: BACKEND_SERVER
|
- name: BACKEND_SERVER
|
||||||
value: {{ .Release.Name }}-{{ .Chart.Name }}
|
value: {{ .Release.Name }}-{{ .Chart.Name }}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: {{ include "common.name" . }}-readiness-opensync-gw
|
- name: {{ include "common.name" . }}-readiness-opensync-gw
|
||||||
image: alpine
|
image: alpine
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -57,7 +57,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- include "common.env" . | nindent 12 }}
|
{{- include "common.env" . | nindent 12 }}
|
||||||
- name: PF_GATEWAY_RELEASE_URL
|
- name: PF_GATEWAY_RELEASE_URL
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- include "common.env" . | nindent 12 }}
|
{{- include "common.env" . | nindent 12 }}
|
||||||
- name: FILE_STORE_DIRECTORY_INTERNAL
|
- name: FILE_STORE_DIRECTORY_INTERNAL
|
||||||
|
|||||||
@@ -52,8 +52,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "common.fullname" . }}-creds
|
name: {{ include "common.fullname" . }}-creds
|
||||||
key: schema-repo-password
|
key: schema-repo-password
|
||||||
image: postgres:latest
|
image: {{ .Values.postgresql.image }}
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -123,7 +123,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- include "common.env" . | nindent 12 }}
|
{{- include "common.env" . | nindent 12 }}
|
||||||
- name: tip_wlan_AsyncExecutor_CorePoolSize
|
- name: tip_wlan_AsyncExecutor_CorePoolSize
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ affinity: {}
|
|||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
url: postgresql
|
url: postgresql
|
||||||
|
image: postgres:latest
|
||||||
|
|
||||||
env:
|
env:
|
||||||
protocol: https
|
protocol: https
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- include "common.env" . | nindent 12 }}
|
{{- include "common.env" . | nindent 12 }}
|
||||||
- name: tip.wlan.kafka.bootstrapServers
|
- name: tip.wlan.kafka.bootstrapServers
|
||||||
|
|||||||
@@ -44,8 +44,8 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ include "common.fullname" . }}-creds
|
name: {{ include "common.fullname" . }}-creds
|
||||||
key: schema-repo-password
|
key: schema-repo-password
|
||||||
image: cassandra:3.11.6
|
image: {{ .Values.cassandra.image }}
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- -c
|
- -c
|
||||||
@@ -117,7 +117,7 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
image: {{ .Values.global.repository }}/{{ .Values.image.name }}:{{ .Values.image.tag }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
imagePullPolicy: {{ .Values.global.pullPolicy }}
|
imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
env:
|
env:
|
||||||
{{- include "common.env" . | nindent 12 }}
|
{{- include "common.env" . | nindent 12 }}
|
||||||
- name: tip.wlan.kafka.bootstrapServers
|
- name: tip.wlan.kafka.bootstrapServers
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ kafka:
|
|||||||
cassandra:
|
cassandra:
|
||||||
url: cassandra-headless
|
url: cassandra-headless
|
||||||
port: 9042
|
port: 9042
|
||||||
|
image: cassandra:3.11.6
|
||||||
|
|
||||||
env:
|
env:
|
||||||
protocol: https
|
protocol: https
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: zookeeper
|
- name: zookeeper
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy | default .Values.global.pullPolicy }}
|
||||||
{{- with .Values.command }}
|
{{- with .Values.command }}
|
||||||
command: {{ range . }}
|
command: {{ range . }}
|
||||||
- {{ . | quote }}
|
- {{ . | quote }}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ updateStrategy:
|
|||||||
image:
|
image:
|
||||||
repository: zookeeper # Container image repository for zookeeper container.
|
repository: zookeeper # Container image repository for zookeeper container.
|
||||||
tag: 3.5.5 # Container image tag for zookeeper container.
|
tag: 3.5.5 # Container image tag for zookeeper container.
|
||||||
pullPolicy: IfNotPresent # Image pull criteria for zookeeper container.
|
pullPolicy: Always # Image pull criteria for zookeeper container.
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP # Exposes zookeeper on a cluster-internal IP.
|
type: ClusterIP # Exposes zookeeper on a cluster-internal IP.
|
||||||
|
|||||||
Reference in New Issue
Block a user