Skip to content

Instantly share code, notes, and snippets.

@ogawa0071
Created December 12, 2024 21:51
Show Gist options
  • Select an option

  • Save ogawa0071/b0a6821f048fabce8ce88efab931c9be to your computer and use it in GitHub Desktop.

Select an option

Save ogawa0071/b0a6821f048fabce8ce88efab931c9be to your computer and use it in GitHub Desktop.
# From: https://github.com/selkies-project/docker-nvidia-glx-desktop/blob/main/xgl.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: xgl
spec:
replicas: 1
selector:
matchLabels:
app: xgl
template:
metadata:
labels:
app: xgl
spec:
hostname: xgl
containers:
- name: xgl
image: ghcr.io/selkies-project/nvidia-glx-desktop:latest
command: ["bash"]
args:
[
"-c",
"curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb && sudo cloudflared service install $TUNNEL_TOKEN && /usr/bin/supervisord",
]
env:
- name: TUNNEL_TOKEN
value: ""
- name: SELKIES_ENABLE_BASIC_AUTH
value: "false"
- name: SELKIES_TURN_HOST
value: "turn.cloudflare.com"
- name: SELKIES_TURN_PORT
value: "3478"
- name: SELKIES_STUN_HOST
value: "stun.cloudflare.com"
- name: SELKIES_STUN_PORT
value: "3478"
- name: SELKIES_TURN_USERNAME
value: ""
- name: SELKIES_TURN_PASSWORD
value: ""
resources:
limits:
memory: 64Gi
cpu: "16"
nvidia.com/gpu: 1
requests:
memory: 100Mi
cpu: 100m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment