Fix for error while pulling images from local registry

Added default secret for pulling image from local registry
Moved the application into kube-system namespace

Closes-Bug: 1917352

Change-Id: I058ac7cfef4919c23bc777967cdfb8105e6d8606
Signed-off-by: Poornima <poornima.y.n@intel.com>
This commit is contained in:
Poornima 2021-03-31 02:02:54 +05:30
parent 08550845aa
commit b0f2cbdf62
4 changed files with 9 additions and 2 deletions

View File

@ -13,6 +13,8 @@ spec:
labels:
app: redis
spec:
imagePullSecrets:
- name: registry-local-secret
containers:
- name: redis
image: {{ .Values.images.tags.redisimage }}

View File

@ -16,9 +16,11 @@ spec:
labels:
app: RV-Service
spec:
imagePullSecrets:
- name: registry-local-secret
initContainers:
- name: init-redis
image: busybox:1.28
image: {{ .Values.images.tags.busyboximage }}
command: ['sh', '-c', "until nslookup redis.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for redis; sleep 2; done"]
containers:
- name: u-rendezvous-service

View File

@ -2,6 +2,7 @@ images:
tags:
rv: 15201086/rendezvous-service:1.10
redisimage: 15201086/redis:050220213WKAgo
busyboximage: 15201086/busybox:1.28
env:
rv_var:
RV_SIGNATUREVERIFICATION: "true"

View File

@ -6,7 +6,7 @@ metadata:
data:
chart_name: sdo
release: sdo
namespace: stx-sdo
namespace: kube-system
source:
location: http://172.17.0.1:8080/helm_charts/starlingx/sdo-1.0.0.tgz
subpath: sdo
@ -16,6 +16,8 @@ data:
timeout: 1800
install:
no_hooks: false
values:
imagePullSecrets: [{"name": "default-registry-key"}]
upgrade:
no_hooks: false
pre: