docs: Kubernetes deployment

This commit is contained in:
Kroese 2025-03-06 23:59:11 +01:00 committed by GitHub
parent 2d56154644
commit f9fa807870
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,13 +10,22 @@ spec:
requests:
storage: 16Gi
---
apiVersion: v1
kind: Pod
apiVersion: apps/v1
kind: Deployment
metadata:
name: qemu
labels:
name: qemu
spec:
replicas: 1
selector:
matchLabels:
app: qemu
template:
metadata:
labels:
app: qemu
spec:
containers:
- name: qemu
image: qemux/qemu-arm
@ -31,6 +40,11 @@ spec:
value: "16G"
ports:
- containerPort: 8006
name: http
protocol: TCP
- containerPort: 5900
name: vnc
protocol: TCP
securityContext:
capabilities:
add:
@ -61,9 +75,16 @@ kind: Service
metadata:
name: qemu
spec:
internalTrafficPolicy: Cluster
ports:
- name: tcp-8006
- name: http
port: 8006
protocol: TCP
targetPort: 8006
- name: vnc
port: 5900
protocol: TCP
targetPort: 5900
selector:
name: qemu
type: NodePort
app: qemu
type: ClusterIP