diff --git a/chart/templates/like-service.yaml b/chart/templates/like-service.yaml index 82145053..98b8a107 100644 --- a/chart/templates/like-service.yaml +++ b/chart/templates/like-service.yaml @@ -65,6 +65,10 @@ spec: value: {{ quote .Values.likeService.deployment.container.env.API_PATH }} - name: USER_AUTH_SERVICE_ADDRESS value: {{ quote .Values.likeService.deployment.container.env.USER_AUTH_SERVICE_ADDRESS }} + - name: DB_HOST + value: {{ tpl .Values.likeService.deployment.container.env.DB_HOST . }} + - name: DB_PORT + value: {{ tpl .Values.likeService.deployment.container.env.DB_PORT . | quote }} - name: MARIADB_PASSWORD valueFrom: secretKeyRef: diff --git a/chart/values.yaml b/chart/values.yaml index 0aeb3b89..020676ad 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -415,6 +415,8 @@ likeService: SERVER_PORT: 8000 API_PATH: /like-service USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service + DB_HOST: "{{ .Values.mariaDB.serviceName }}" + DB_PORT: "3306" MARIADB_PASSWORD: secretKeyRef: name: "{{ .Values.mariaDB.serviceName }}"