This commit is contained in:
Sense T 2022-10-20 07:35:45 +00:00
parent 3c101f1403
commit d2eb37a915
4 changed files with 40 additions and 28 deletions

View File

@ -16,7 +16,7 @@ spec:
image: guacamole/guacamole image: guacamole/guacamole
resources: resources:
limits: limits:
cpu: '1' cpu: '200m'
memory: '1024Mi' memory: '1024Mi'
env: env:
- name: GUACD_HOSTNAME - name: GUACD_HOSTNAME

View File

@ -16,9 +16,9 @@ spec:
image: guacamole/guacd image: guacamole/guacd
resources: resources:
limits: limits:
cpu: 200m cpu: 100m
memory: '512Mi' memory: "32Mi"
ports: ports:
- protocol: TCP - protocol: TCP
name: guacd name: guacd
containerPort: 4822 containerPort: 4822

View File

@ -3,6 +3,9 @@ apiVersion: apps/v1
metadata: metadata:
name: qemu- name: qemu-
spec: spec:
replicas: 1
strategy:
type: Recreate
selector: selector:
matchLabels: matchLabels:
app: qemu- app: qemu-
@ -14,26 +17,49 @@ spec:
imagePullSecrets: imagePullSecrets:
- name: docker-ghcr - name: docker-ghcr
containers: containers:
- name: audioserver
image: tonychee7000/pulseaudio
command:
- "/usr/bin/pulseaudio"
- "--system"
- "--disallow-exit"
- "--disallow-module-loading"
- "-n"
- "-L"
- "module-always-sink"
- "-L"
- "module-native-protocol-tcp auth-anonymous=1 auth-cookie-enabled=0"
resources:
limits:
cpu: 50m
memory: 8Mi
ports:
- name: audio
containerPort: 4713
lifecycle:
postStart:
exec:
command:
- /bin/sh
- "-c"
- "while true; do nc -vz localhost:4713 && break; done"
- name: qemu - name: qemu
image: system image: system
env: env:
- name: ADDITIONAL_ARGS - name: ADDITIONAL_ARGS
value: '-enable-kvm' value: "-enable-kvm"
ports: ports:
- containerPort: 5900 - containerPort: 5900
name: vnc name: vnc
volumeMounts:
- mountPath: /tmp
name: pipe
resources: resources:
requests: requests:
memory: 192Mi memory: 192Mi
cpu: 100m cpu: 100m
smarter-devices/kvm: 1 smarter-devices/kvm: "1"
limits: limits:
memory: 1Gi memory: 256Mi
cpu: '1' cpu: "1"
smarter-devices/kvm: 1 smarter-devices/kvm: "1"
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: vnc port: vnc
@ -47,18 +73,3 @@ spec:
periodSeconds: 10 periodSeconds: 10
successThreshold: 1 successThreshold: 1
failureThreshold: 3 failureThreshold: 3
lifecycle:
postStart:
exec:
command:
- sleep
- '1'
- name: audioserver
image: tonychee7000/pulseaudio
resources:
limits:
cpu: 200m
memory: 128Mi
ports:
- name: audio
containerPort: 4713

View File

@ -3,9 +3,10 @@
nameSuffix: happylinux nameSuffix: happylinux
commonLabels: commonLabels:
app: qemu-happylinux app: qemu-happylinux
namespace: vintage-os
resources: resources:
- ../base - ../base
images: images:
- newName: tonychee7000/qemu-happy-linux - newName: tonychee7000/qemu-happy-linux
newTag: pulseaudio-1 newTag: pulseaudio-1
name: system name: system