This commit is contained in:
TonyChyi 2022-08-20 14:19:54 +08:00
parent d7e0750659
commit 938db68be9
5 changed files with 56 additions and 1 deletions

View File

@ -39,6 +39,8 @@ spec:
volumeMounts:
- mountPath: /conf
name: conf
- mountPath: /certs
name: certs
ports:
- name: turn-port1
containerPort: 3478

View File

@ -11,3 +11,8 @@ configMapGenerator:
- name: coturn-conf
files:
- config/turnserver.conf
patches:
- path: overlay.yaml
target:
kind: DaemonSet
labelSelector: app.kubernetes.io/name=coturn

14
coturn/overlay.yaml Normal file
View File

@ -0,0 +1,14 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: coturn
spec:
selector: {}
template:
spec:
volumes:
- name: certs
secret:
secretName: wetofu-me-certs
optional: false

View File

@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nicball-factorio
spec:
selector:
matchLabels:
app: nicball-factorio
template:
metadata:
labels:
app: nicball-factorio
spec:
hostNetwork: true
containers:
- name: nicball-factorio
image: alpine/socat:1.7.4.3-r0
args:
- '-ls'
- UDP-LISTEN:34197,reuseaddr,fork
- UDP6:nuc.nicball.me:34197
resources:
limits:
cpu: 100m
memory: 32Mi
requests:
cpu: 10m
memory: 8Mi

View File

@ -0,0 +1,6 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- daemonset.yaml