Loading kubernetes.yml +65 −44 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -31,6 +40,11 @@ spec: value: "16G" ports: - containerPort: 8006 name: http protocol: TCP - containerPort: 5900 name: vnc protocol: TCP securityContext: capabilities: add: Loading Loading @@ -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 Loading
kubernetes.yml +65 −44 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -31,6 +40,11 @@ spec: value: "16G" ports: - containerPort: 8006 name: http protocol: TCP - containerPort: 5900 name: vnc protocol: TCP securityContext: capabilities: add: Loading Loading @@ -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