Make Accelleran CU and RIC use hostname to access Redis
Change-Id: I69de7a6db8109556a09cb05c4334aaac7e2d59ed
diff --git a/ran/accelleran-cbrs/accelleran-cbrs-common/Chart.yaml b/ran/accelleran-cbrs/accelleran-cbrs-common/Chart.yaml
index 0cb11a2..c147ead 100644
--- a/ran/accelleran-cbrs/accelleran-cbrs-common/Chart.yaml
+++ b/ran/accelleran-cbrs/accelleran-cbrs-common/Chart.yaml
@@ -18,4 +18,4 @@
description: A Helm chart to install Accelleran common to run Accelleran CU on CBRS band
icon: https://guide.opencord.org/logos/cord.svg
-version: 0.1.1
\ No newline at end of file
+version: 0.1.2
\ No newline at end of file
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 '*';