Created
July 15, 2024 01:35
-
-
Save ConnorsApps/362b54f92392d93dd5ea6c92df2d52b1 to your computer and use it in GitHub Desktop.
linuxserver/docker-webtop k8s manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://github.com/linuxserver/docker-webtop/ | |
# NVIDIA_VISIBLE_DEVICES=all | |
# Use chrome for clipboard to always work | |
apiVersion: apps/v1 | |
kind: StatefulSet | |
metadata: | |
name: testvm | |
namespace: vms | |
spec: | |
serviceName: "testvm" | |
replicas: 1 | |
selector: | |
matchLabels: | |
vm: testvm | |
template: | |
metadata: | |
labels: | |
vm: testvm | |
spec: | |
containers: | |
- name: rdesktop | |
image: lscr.io/linuxserver/webtop:ubuntu-kde | |
env: | |
- name: NVIDIA_VISIBLE_DEVICES | |
value: "all" | |
- name: PUID | |
value: "1000" | |
- name: PGID | |
value: "1000" | |
- name: TZ | |
value: "Etc/UTC" | |
- name: USERNAME | |
value: "abc" | |
- name: PASSWORD | |
value: "abc" | |
ports: | |
- containerPort: 3000 | |
name: http | |
volumeMounts: | |
- name: config-volume | |
mountPath: /config | |
resources: | |
limits: | |
nvidia.com/gpu: "1" | |
memory: "30Gi" | |
requests: | |
cpu: "1" | |
memory: "5Gi" | |
volumeClaimTemplates: | |
- metadata: | |
name: config-volume | |
spec: | |
accessModes: [ "ReadWriteOnce" ] | |
storageClassName: "your-storage-class-name-here" | |
resources: | |
requests: | |
storage: 10Gi | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: testvm | |
namespace: vms | |
spec: | |
type: ClusterIP | |
selector: | |
vm: testvm | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment