diff --git a/src/kubernetes/ticketing-chart/templates/deployment.yaml b/src/kubernetes/ticketing-chart/templates/deployment.yaml index 0d22669..9e9b879 100644 --- a/src/kubernetes/ticketing-chart/templates/deployment.yaml +++ b/src/kubernetes/ticketing-chart/templates/deployment.yaml @@ -52,6 +52,8 @@ spec: value: "{{ .Values.backend.environment }}" - name: PORT value: "{{ .Values.backend.port }}" + - name: QUEUE_SERVER_URL + value: "{{ .Values.queuing_system.URL }}" - name: MYSQL_USERNAME valueFrom: secretKeyRef: diff --git a/src/kubernetes/ticketing-chart/templates/ingress.yaml b/src/kubernetes/ticketing-chart/templates/ingress.yaml index d19924e..8fc0d57 100644 --- a/src/kubernetes/ticketing-chart/templates/ingress.yaml +++ b/src/kubernetes/ticketing-chart/templates/ingress.yaml @@ -52,6 +52,13 @@ spec: name: {{ include "ticketing-chart.fullname" . }} port: number: {{ .Values.backend.port }} + - path: /ticket + pathType: Prefix + backend: + service: + name: {{ include "ticketing-chart.fullname" . }}-queuing-api + port: + number: {{ .Values.queuing_system.config.PORT }} - path: / pathType: Prefix backend: diff --git a/src/kubernetes/ticketing-chart/values.yaml b/src/kubernetes/ticketing-chart/values.yaml index 64c55fa..1fdafcb 100644 --- a/src/kubernetes/ticketing-chart/values.yaml +++ b/src/kubernetes/ticketing-chart/values.yaml @@ -22,6 +22,8 @@ redis: queuing_system: + URL: http://development-ticketing-application-queuing-api.default.svc.cluster.local:8000/ticket + image: repository: 213060417361.dkr.ecr.ap-northeast-2.amazonaws.com/ticketing-queuing-ecr pullPolicy: Always