bigbluebutton-Github/labs/docker/k8s/bbb-freeswitch.yaml
Diego Sampaio ec63729747 Add k8s
2018-08-24 17:15:47 -03:00

59 lines
1.2 KiB
YAML

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: bbb-freeswitch
version: latest
name: bbb-freeswitch
namespace: bigbluebutton
spec:
replicas: 1
selector:
matchLabels:
app: bbb-freeswitch
version: latest
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: bbb-freeswitch
version: latest
name: bbb-freeswitch
spec:
containers:
- image: fcecagno/bigbluebutton:bbb-freeswitch
imagePullPolicy: Always
name: bbb-freeswitch
ports:
- containerPort: 7443
protocol: TCP
restartPolicy: Always
terminationGracePeriodSeconds: 30
nodeSelector:
role: 'bigbluebutton'
tolerations:
- key: role
operator: Equal
value: 'bigbluebutton'
effect: NoSchedule
---
apiVersion: v1
kind: Service
metadata:
name: bbb-freeswitch
namespace: bigbluebutton
annotations:
traefik.backend.circuitbreaker: "NetworkErrorRatio() > 0.5"
spec:
ports:
- name: http
targetPort: 7443
port: 7443
selector:
app: bbb-freeswitch