coturn-dns updater manifest
This commit is contained in:
parent
1f3d34a623
commit
f5079f20af
|
|
@ -69,9 +69,10 @@ pipelines:
|
|||
name: Deploy to K8s
|
||||
deployment: production
|
||||
script:
|
||||
- IMAGE="gcr.io/$GCLOUD_PROJECT/autoscaler:prod-0.1.$BITBUCKET_BUILD_NUMBER"
|
||||
- sed -i "s|{{linode_autoscaler_image}}|$IMAGE|g" k8s/linode-autoscaler/webrtc-be-autoscaler.yaml
|
||||
- sed -i "s|{{linode_autoscaler_image}}|$IMAGE|g" k8s/linode-autoscaler/coturn-autoscaler.yaml
|
||||
- AUTOSCALER_IMAGE="gcr.io/$GCLOUD_PROJECT/autoscaler:prod-0.1.$BITBUCKET_BUILD_NUMBER"
|
||||
- sed -i "s|{{linode_autoscaler_image}}|$AUTOSCALER_IMAGE|g" k8s/linode-autoscaler/webrtc-be-autoscaler.yaml
|
||||
- sed -i "s|{{linode_autoscaler_image}}|$AUTOSCALER_IMAGE|g" k8s/linode-autoscaler/coturn-autoscaler.yaml
|
||||
- sed -i "s|{{coturn_dns_image}}|$AUTOSCALER_IMAGE|g" k8s/coturn-dns/coturn-dns.yaml
|
||||
- pipe: atlassian/kubectl-run:1.1.2
|
||||
variables:
|
||||
KUBE_CONFIG: $KUBE_CONFIG
|
||||
|
|
|
|||
|
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coturn-dns
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: coturn-dns
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: coturn-dns
|
||||
spec:
|
||||
containers:
|
||||
- name: coturn-dns
|
||||
image: {{coturn_dns_image}} ####### CHANGE THIS TO YOUR ACTUAL DOCKER IMAGE
|
||||
env:
|
||||
- name: AWS_ACCESS_KEY_ID
|
||||
value: "AKIA2SXEHOQFBQRGCSST"
|
||||
- name: AWS_SECRET_ACCESS_KEY
|
||||
value: "lj85CIIik/83V980VKEPfqlOWtutEM3s7bSqMZNH"
|
||||
resources:
|
||||
requests:
|
||||
memory: 32Mi
|
||||
limits:
|
||||
memory: 32Mi
|
||||
Loading…
Reference in New Issue