docs: Kubernetes deployment
This commit is contained in:
parent
2d56154644
commit
f9fa807870
1 changed files with 65 additions and 44 deletions
|
@ -10,13 +10,22 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
storage: 16Gi
|
storage: 16Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: apps/v1
|
||||||
kind: Pod
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: qemu
|
name: qemu
|
||||||
labels:
|
labels:
|
||||||
name: qemu
|
name: qemu
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: qemu
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: qemu
|
||||||
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: qemu
|
- name: qemu
|
||||||
image: qemux/qemu-arm
|
image: qemux/qemu-arm
|
||||||
|
@ -31,6 +40,11 @@ spec:
|
||||||
value: "16G"
|
value: "16G"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8006
|
- containerPort: 8006
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
|
- containerPort: 5900
|
||||||
|
name: vnc
|
||||||
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
@ -61,9 +75,16 @@ kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: qemu
|
name: qemu
|
||||||
spec:
|
spec:
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
ports:
|
ports:
|
||||||
- name: tcp-8006
|
- name: http
|
||||||
port: 8006
|
port: 8006
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 8006
|
||||||
|
- name: vnc
|
||||||
|
port: 5900
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5900
|
||||||
selector:
|
selector:
|
||||||
name: qemu
|
app: qemu
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
|
Loading…
Reference in a new issue