diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 549bcbb..abb6e37 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -74,7 +74,7 @@ pipelines: services: - docker - step: - name: Deploy to staging + name: Deploy coturn/coturn-dns to staging deployment: staging script: - pipe: atlassian/kubectl-run:1.1.2 diff --git a/k8s/coturn-dns/templates/deployment.yaml b/k8s/coturn-dns/templates/deployment.yaml index 7639db8..4679eab 100644 --- a/k8s/coturn-dns/templates/deployment.yaml +++ b/k8s/coturn-dns/templates/deployment.yaml @@ -23,6 +23,7 @@ spec: containers: - name: coturn-dns image: gcr.io/tough-craft-276813/coturn-dns:latest + imagePullPolicy: Always env: - name: AWS_ACCESS_KEY_ID valueFrom: diff --git a/k8s/coturn/templates/deployment.yml b/k8s/coturn/templates/deployment.yml index 6918f64..f5d7146 100644 --- a/k8s/coturn/templates/deployment.yml +++ b/k8s/coturn/templates/deployment.yml @@ -20,6 +20,7 @@ spec: containers: - name: coturn image: gcr.io/tough-craft-276813/coturn:latest + imagePullPolicy: Always resources: requests: memory: "3800Mi" diff --git a/k8s/webrtc-be/templates/deployment.yml b/k8s/webrtc-be/templates/deployment.yml index 0d85fd0..56a78cc 100644 --- a/k8s/webrtc-be/templates/deployment.yml +++ b/k8s/webrtc-be/templates/deployment.yml @@ -1,9 +1,8 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: webrtc-be-deployment - labels: - app: webrtc-be + name: webrtc-be + app: webrtc-be spec: selector: matchLabels: @@ -19,7 +18,8 @@ spec: - name: gcr-json-key containers: - name: webrtc-be - image: gcr.io/tough-craft-276813/webrtc_be:prod-0.1.83 + image: gcr.io/tough-craft-276813/webrtc_be:latest + imagePullPolicy: Always resources: requests: memory: "3800Mi" @@ -31,7 +31,7 @@ spec: - name: RTC_MAX_PORT value: "32768" - name: BACKEND_URL - value: "https://staging.jamkazam.com" + value: {{ .Values.backendUrl }} ports: - name: websocket-port containerPort: 5001 diff --git a/k8s/webrtc-be/values-staging.yaml b/k8s/webrtc-be/values-staging.yaml index e5d12fe..52fb7b1 100644 --- a/k8s/webrtc-be/values-staging.yaml +++ b/k8s/webrtc-be/values-staging.yaml @@ -1 +1,4 @@ -domain: "webrtc-be.staging.video.jamkazam.com" \ No newline at end of file +# Ingress +domain: "webrtc-be.staging.video.jamkazam.com" +# Webrtc env variables +backendUrl: "https://staging.jamkazam.com" \ No newline at end of file