mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 11:45:50 +00:00
docs: Add TUN device
This commit is contained in:
parent
8b351446d9
commit
593d0fa12b
1 changed files with 49 additions and 55 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
|
|
@ -16,22 +17,9 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
name: windows
|
name: windows
|
||||||
spec:
|
spec:
|
||||||
terminationGracePeriodSeconds: 120 # the Kubernetes default is 30 seconds and it may be not enough
|
|
||||||
containers:
|
containers:
|
||||||
- name: windows
|
- name: windows
|
||||||
image: dockurr/windows
|
image: dockurr/windows
|
||||||
ports:
|
|
||||||
- containerPort: 8006
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 3389
|
|
||||||
protocol: TCP
|
|
||||||
- containerPort: 3389
|
|
||||||
protocol: UDP
|
|
||||||
securityContext:
|
|
||||||
capabilities:
|
|
||||||
add:
|
|
||||||
- NET_ADMIN
|
|
||||||
privileged: true
|
|
||||||
env:
|
env:
|
||||||
- name: VERSION
|
- name: VERSION
|
||||||
value: "11"
|
value: "11"
|
||||||
|
|
@ -41,6 +29,16 @@ spec:
|
||||||
value: "2"
|
value: "2"
|
||||||
- name: DISK_SIZE
|
- name: DISK_SIZE
|
||||||
value: "64G"
|
value: "64G"
|
||||||
|
ports:
|
||||||
|
- containerPort: 8006
|
||||||
|
- containerPort: 3389
|
||||||
|
- containerPort: 3389
|
||||||
|
protocol: UDP
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_ADMIN
|
||||||
|
privileged: true
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /storage
|
- mountPath: /storage
|
||||||
name: storage
|
name: storage
|
||||||
|
|
@ -48,36 +46,32 @@ spec:
|
||||||
name: dev-kvm
|
name: dev-kvm
|
||||||
- mountPath: /dev/net/tun
|
- mountPath: /dev/net/tun
|
||||||
name: dev-tun
|
name: dev-tun
|
||||||
|
terminationGracePeriodSeconds: 120
|
||||||
volumes:
|
volumes:
|
||||||
- name: storage
|
- name: storage
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: windows-pvc
|
claimName: windows-pvc
|
||||||
- name: dev-kvm
|
- hostPath:
|
||||||
hostPath:
|
|
||||||
path: /dev/kvm
|
path: /dev/kvm
|
||||||
- name: dev-tun
|
name: dev-kvm
|
||||||
hostPath:
|
- hostPath:
|
||||||
path: /dev/net/tun
|
path: /dev/net/tun
|
||||||
type: CharDevice
|
type: CharDevice
|
||||||
|
name: dev-tun
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: windows
|
name: windows
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
name: windows
|
|
||||||
ports:
|
ports:
|
||||||
- name: tcp-8006
|
- name: tcp-8006
|
||||||
protocol: TCP
|
|
||||||
port: 8006
|
port: 8006
|
||||||
targetPort: 8006
|
|
||||||
- name: tcp-3389
|
- name: tcp-3389
|
||||||
protocol: TCP
|
|
||||||
port: 3389
|
port: 3389
|
||||||
targetPort: 3389
|
|
||||||
- name: udp-3389
|
- name: udp-3389
|
||||||
protocol: UDP
|
|
||||||
port: 3389
|
port: 3389
|
||||||
targetPort: 3389
|
protocol: UDP
|
||||||
|
selector:
|
||||||
|
name: windows
|
||||||
|
type: NodePort
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue