docs: Kubernetes deployment (#270)
This commit is contained in:
parent
23696ef3d3
commit
c0f15f6dc2
1 changed files with 79 additions and 52 deletions
|
@ -10,13 +10,22 @@ spec:
|
||||||
requests:
|
requests:
|
||||||
storage: 64Gi
|
storage: 64Gi
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: apps/v1
|
||||||
kind: Pod
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: windows
|
name: windows
|
||||||
labels:
|
labels:
|
||||||
name: windows
|
name: windows
|
||||||
spec:
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: windows
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: windows
|
||||||
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: windows
|
- name: windows
|
||||||
image: dockurr/windows
|
image: dockurr/windows
|
||||||
|
@ -31,9 +40,17 @@ spec:
|
||||||
value: "64G"
|
value: "64G"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8006
|
- containerPort: 8006
|
||||||
|
name: http
|
||||||
|
protocol: TCP
|
||||||
- containerPort: 3389
|
- containerPort: 3389
|
||||||
|
name: rdp
|
||||||
|
protocol: TCP
|
||||||
- containerPort: 3389
|
- containerPort: 3389
|
||||||
|
name: udp
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
- containerPort: 5900
|
||||||
|
name: vnc
|
||||||
|
protocol: TCP
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
@ -64,14 +81,24 @@ kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: windows
|
name: windows
|
||||||
spec:
|
spec:
|
||||||
|
internalTrafficPolicy: Cluster
|
||||||
ports:
|
ports:
|
||||||
- name: tcp-8006
|
- name: http
|
||||||
port: 8006
|
port: 8006
|
||||||
- name: tcp-3389
|
protocol: TCP
|
||||||
|
targetPort: 8006
|
||||||
|
- name: rdp
|
||||||
port: 3389
|
port: 3389
|
||||||
- name: udp-3389
|
protocol: TCP
|
||||||
|
targetPort: 3389
|
||||||
|
- name: udp
|
||||||
port: 3389
|
port: 3389
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
|
targetPort: 3389
|
||||||
|
- name: vnc
|
||||||
|
port: 5900
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 5900
|
||||||
selector:
|
selector:
|
||||||
name: windows
|
app: windows
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
|
Loading…
Reference in a new issue