From 3c101f1403b67709e18c20950ab495eb9517346d Mon Sep 17 00:00:00 2001 From: Sense T Date: Wed, 19 Oct 2022 06:00:00 +0000 Subject: [PATCH] vintageos --- vintage-os/base/deployment.yaml | 64 ++++++++++++++++++++++++ vintage-os/base/kustomization.yaml | 6 +++ vintage-os/base/service.yaml | 18 +++++++ vintage-os/happylinux/kustomization.yaml | 11 ++++ 4 files changed, 99 insertions(+) create mode 100644 vintage-os/base/deployment.yaml create mode 100644 vintage-os/base/kustomization.yaml create mode 100644 vintage-os/base/service.yaml create mode 100644 vintage-os/happylinux/kustomization.yaml diff --git a/vintage-os/base/deployment.yaml b/vintage-os/base/deployment.yaml new file mode 100644 index 0000000..b9479f0 --- /dev/null +++ b/vintage-os/base/deployment.yaml @@ -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 \ No newline at end of file diff --git a/vintage-os/base/kustomization.yaml b/vintage-os/base/kustomization.yaml new file mode 100644 index 0000000..d57c405 --- /dev/null +++ b/vintage-os/base/kustomization.yaml @@ -0,0 +1,6 @@ +# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json + +resources: + - deployment.yaml + - service.yaml +namespace: vintage-os \ No newline at end of file diff --git a/vintage-os/base/service.yaml b/vintage-os/base/service.yaml new file mode 100644 index 0000000..abceed0 --- /dev/null +++ b/vintage-os/base/service.yaml @@ -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 \ No newline at end of file diff --git a/vintage-os/happylinux/kustomization.yaml b/vintage-os/happylinux/kustomization.yaml new file mode 100644 index 0000000..08bd1c4 --- /dev/null +++ b/vintage-os/happylinux/kustomization.yaml @@ -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 \ No newline at end of file