Skip to content

Instantly share code, notes, and snippets.

@cameronelliott
Created July 27, 2021 18:27
Show Gist options
  • Select an option

  • Save cameronelliott/3e7ba7fcf8c652a971285f3c30c26f5f to your computer and use it in GitHub Desktop.

Select an option

Save cameronelliott/3e7ba7fcf8c652a971285f3c30c26f5f to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
name: deadsfu-in
spec:
hostNetwork: true
containers:
- name: deadsfu
image: x186k/deadsfu:latest
command: ["/app/main"]
args: ["https://camcam.ddns5.com:8443"]
volumeMounts:
- name: storage
mountPath: /root/.local/share/certmagic
volumes:
- name: storage
hostPath:
path: /tmp/deadsfu
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: deadsfu-out
spec:
selector:
matchLabels:
app: deadsfu-out
replicas: 2 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: deadsfu-out
spec:
containers:
- name: deadsfu
image: x186k/deadsfu:latest
command: ["/app/main"]
args: ["http://:8080","--ice-candidate-srflx","192.168.86.3","--dial-ingress","https://camcam.ddns5.com:8443/sub"]
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: deadsfu-service
spec:
sessionAffinity: ClientIP
selector:
app: deadsfu-out
ports:
- protocol: TCP
port: 8090
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment