Unverified Commit f3abb4b3 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

docs: Kubernetes deployment (#671)

parent 16a340fd
Loading
Loading
Loading
Loading
+65 −44
Original line number Diff line number Diff line
@@ -10,12 +10,21 @@ 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
@@ -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