Skip to content

Containeried desktop environments for use with the nvidia-container-runtime

Notifications You must be signed in to change notification settings

buildstar-online/nvidia-desktops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nvidia Desktops

Containerized desktop environments for use with the nvidia-container-runtime.

# XFCE
docker run -it --gpus all \
  --tmpfs /dev/shm:rw \
  -p 8080:8080 \
  -p 5900:5900 \
  -e PASSWD="ChangeMe!" \
  deserializeme/ubuntu-xfce
---
apiVersion: v1
kind: Secret
metadata:
  name: vnc-secret
type: Opaque
stringData:
  password: DogsAreCool
---
kind: Deployment
apiVersion: apps/v1
metadata:
  name: desktop
spec:
  selector:
    matchLabels:
      app: desktop
  template:
    metadata:
      labels:
        app: desktop
    spec:
      restartPolicy: Always
      containers:
        - name: ubuntu-xfce
          image: deserializeme/ubuntu-xfce
          env:
          - name: "RESOLUTION"
            value: "1920x1080"
          - name: PASSWD
            valueFrom:
              secretKeyRef:
                name: vnc-secret
                key: password
          imagePullPolicy: Always
          ports:
            - containerPort: 3389
              name: "rdp"
            - containerPort: 5900
              name: "vnc"
            - containerPort: 8080
              name: "novnc"
---
apiVersion: v1
kind: Service
metadata:
  name: desktop
spec:
  selector:
    app: desktop
  ports:
    - name: rdp
      port: 3389
      targetPort: 3389
      protocol: TCP
    - name: vnc
      port: 5900
      targetPort: 5900
      protocol: TCP
    - name: novnc
      port: 8080
      targetPort: 8080
      protocol: TCP
  type: LoadBalancer

About

Containeried desktop environments for use with the nvidia-container-runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published