vintageos

This commit is contained in:
Sense T 2022-10-19 06:00:00 +00:00
parent 201a1746e0
commit 3c101f1403
4 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,64 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: qemu-
spec:
selector:
matchLabels:
app: qemu-
template:
metadata:
labels:
app: qemu-
spec:
imagePullSecrets:
- name: docker-ghcr
containers:
- name: qemu
image: system
env:
- name: ADDITIONAL_ARGS
value: '-enable-kvm'
ports:
- containerPort: 5900
name: vnc
volumeMounts:
- mountPath: /tmp
name: pipe
resources:
requests:
memory: 192Mi
cpu: 100m
smarter-devices/kvm: 1
limits:
memory: 1Gi
cpu: '1'
smarter-devices/kvm: 1
readinessProbe:
tcpSocket:
port: vnc
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
tcpSocket:
port: vnc
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
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

@ -0,0 +1,6 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
resources:
- deployment.yaml
- service.yaml
namespace: vintage-os

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: qemu-
spec:
selector:
app: qemu-
ports:
- name: vnc
targetPort: vnc
port: 5900
- name: audio
targetPort: audio
port: 4713
ipFamilyPolicy: PreferDualStack
ipFamilies:
- IPv4
- IPv6

View File

@ -0,0 +1,11 @@
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
nameSuffix: happylinux
commonLabels:
app: qemu-happylinux
resources:
- ../base
images:
- newName: tonychee7000/qemu-happy-linux
newTag: pulseaudio-1
name: system