56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: coturn
|
|
labels:
|
|
app: coturn
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: coturn
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: coturn
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/path: "/metrics"
|
|
prometheus.io/port: "9643"
|
|
spec:
|
|
hostNetwork: true
|
|
imagePullSecrets:
|
|
- name: gcr-json-key
|
|
volumes:
|
|
- name: coturn-config-volume
|
|
configMap:
|
|
name: coturn-config
|
|
containers:
|
|
- name: coturn
|
|
image: gcr.io/tough-craft-276813/coturn:latest
|
|
imagePullPolicy: Always
|
|
command: ["turnserver", "-c", "/etc/coturn/turnserver.conf"]
|
|
env:
|
|
- name: MY_POD_IP
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: status.podIP
|
|
ports:
|
|
- containerPort: 3478
|
|
name: coturn
|
|
volumeMounts:
|
|
- name: coturn-config-volume
|
|
mountPath: /etc/coturn/turnserver.conf
|
|
subPath: turnserver.conf
|
|
- name: exporter
|
|
image: "{{ .Values.exporter.image.repository }}:{{ .Values.exporter.image.tag }}"
|
|
imagePullPolicy: {{ .Values.exporter.image.pullPolicy }}
|
|
env:
|
|
- name: REDIS_URL
|
|
value: "redis://coturn-redis-master:6379"
|
|
- name: LOG_LEVEL
|
|
value: "info"
|
|
ports:
|
|
- containerPort: 9643
|
|
name: metrics
|