mirror of
https://github.com/dockur/windows.git
synced 2025-04-22 01:24:16 +01:00
docs: Kubernetes deployment (#1092)
This commit is contained in:
parent
b8105e9072
commit
186b2e21ce
131
kubernetes.yml
131
kubernetes.yml
@ -10,68 +10,95 @@ 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:
|
||||||
containers:
|
replicas: 1
|
||||||
- name: windows
|
selector:
|
||||||
image: dockurr/windows
|
matchLabels:
|
||||||
env:
|
app: windows
|
||||||
- name: VERSION
|
template:
|
||||||
value: "11"
|
metadata:
|
||||||
- name: RAM_SIZE
|
labels:
|
||||||
value: "4G"
|
app: windows
|
||||||
- name: CPU_CORES
|
spec:
|
||||||
value: "2"
|
containers:
|
||||||
- name: DISK_SIZE
|
- name: windows
|
||||||
value: "64G"
|
image: dockurr/windows
|
||||||
ports:
|
env:
|
||||||
- containerPort: 8006
|
- name: VERSION
|
||||||
- containerPort: 3389
|
value: "11"
|
||||||
- containerPort: 3389
|
- name: RAM_SIZE
|
||||||
protocol: UDP
|
value: "4G"
|
||||||
securityContext:
|
- name: CPU_CORES
|
||||||
capabilities:
|
value: "2"
|
||||||
add:
|
- name: DISK_SIZE
|
||||||
- NET_ADMIN
|
value: "64G"
|
||||||
privileged: true
|
ports:
|
||||||
volumeMounts:
|
- containerPort: 8006
|
||||||
- mountPath: /storage
|
name: http
|
||||||
name: storage
|
protocol: TCP
|
||||||
- mountPath: /dev/kvm
|
- containerPort: 3389
|
||||||
name: dev-kvm
|
name: rdp
|
||||||
- mountPath: /dev/net/tun
|
protocol: TCP
|
||||||
name: dev-tun
|
- containerPort: 3389
|
||||||
terminationGracePeriodSeconds: 120
|
name: udp
|
||||||
volumes:
|
protocol: UDP
|
||||||
- name: storage
|
- containerPort: 5900
|
||||||
persistentVolumeClaim:
|
name: vnc
|
||||||
claimName: windows-pvc
|
protocol: TCP
|
||||||
- hostPath:
|
securityContext:
|
||||||
path: /dev/kvm
|
capabilities:
|
||||||
name: dev-kvm
|
add:
|
||||||
- hostPath:
|
- NET_ADMIN
|
||||||
path: /dev/net/tun
|
privileged: true
|
||||||
type: CharDevice
|
volumeMounts:
|
||||||
name: dev-tun
|
- mountPath: /storage
|
||||||
|
name: storage
|
||||||
|
- mountPath: /dev/kvm
|
||||||
|
name: dev-kvm
|
||||||
|
- mountPath: /dev/net/tun
|
||||||
|
name: dev-tun
|
||||||
|
terminationGracePeriodSeconds: 120
|
||||||
|
volumes:
|
||||||
|
- name: storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: windows-pvc
|
||||||
|
- hostPath:
|
||||||
|
path: /dev/kvm
|
||||||
|
name: dev-kvm
|
||||||
|
- hostPath:
|
||||||
|
path: /dev/net/tun
|
||||||
|
type: CharDevice
|
||||||
|
name: dev-tun
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
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
|
||||||
port: 3389
|
targetPort: 8006
|
||||||
- name: udp-3389
|
- name: rdp
|
||||||
port: 3389
|
port: 3389
|
||||||
protocol: UDP
|
protocol: TCP
|
||||||
|
targetPort: 3389
|
||||||
|
- name: udp
|
||||||
|
port: 3389
|
||||||
|
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