vintageos
This commit is contained in:
parent
201a1746e0
commit
3c101f1403
64
vintage-os/base/deployment.yaml
Normal file
64
vintage-os/base/deployment.yaml
Normal 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
|
6
vintage-os/base/kustomization.yaml
Normal file
6
vintage-os/base/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
namespace: vintage-os
|
18
vintage-os/base/service.yaml
Normal file
18
vintage-os/base/service.yaml
Normal 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
|
11
vintage-os/happylinux/kustomization.yaml
Normal file
11
vintage-os/happylinux/kustomization.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user