mirror of
https://github.com/dockur/windows.git
synced 2025-04-24 18:43:20 +01:00
docs: Kubernetes deployment (#1092)
This commit is contained in:
parent
b8105e9072
commit
186b2e21ce
@ -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…
x
Reference in New Issue
Block a user