Make Accelleran CU and RIC use hostname to access Redis
Change-Id: I69de7a6db8109556a09cb05c4334aaac7e2d59ed
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-common/templates/job-redis-init.yaml b/ran/accelleran-cbrs/accelleran-cbrs-common/templates/job-redis-init.yaml
index 5a961b8..8b96073 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-common/templates/job-redis-init.yaml
+++ b/ran/accelleran-cbrs/accelleran-cbrs-common/templates/job-redis-init.yaml
@@ -66,6 +66,6 @@
imagePullPolicy: {{ .Values.images.pullPolicy }}
command: ["sh", "-c"]
args:
- - redis-cli -h accelleran-cbrs-redis -p {{ .Values.config.redis.ports.redisPort.port }} flushall;
- redis-cli -h accelleran-cbrs-redis -p {{ .Values.config.redis.ports.redisPort.port }} set NATS_SERVICE_URL "nat://{{ .Values.config.nats.ip }}:{{ .Values.config.nats.ports.natsPort.nodePort }}";
- redis-cli -h accelleran-cbrs-redis -p {{ .Values.config.redis.ports.redisPort.port }} keys '*';
+ - redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} flushall;
+ redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} set NATS_SERVICE_URL "nat://{{ .Values.config.nats.ip }}:{{ .Values.config.nats.ports.natsPort.nodePort }}";
+ redis-cli -h {{ .Values.config.redis.hostName }} -p {{ .Values.config.redis.ports.redisPort.port }} keys '*';