forked from opensandbox-group/OpenSandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpool-win-example.yaml
More file actions
92 lines (92 loc) · 2.35 KB
/
Copy pathpool-win-example.yaml
File metadata and controls
92 lines (92 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: sandbox.opensandbox.io/v1alpha1
kind: Pool
metadata:
labels:
app.kubernetes.io/name: sandbox-k8s
app.kubernetes.io/managed-by: kustomize
name: pool-win-example
namespace: opensandbox
spec:
template:
metadata:
labels:
app: example
spec:
containers:
- env:
- name: VERSION
value: "11"
- name: CPU_CORES
value: "8"
- name: RAM_SIZE
value: 16G
- name: DISK_SIZE
value: 64G
- name: USER_PORTS
value: 44772,8080,3389,8006
image: dockurr/windows:latest
imagePullPolicy: IfNotPresent
name: sandbox
resources:
limits:
cpu: "8"
memory: 18Gi
requests:
cpu: "8"
memory: 18Gi
securityContext:
capabilities:
add:
- NET_ADMIN
- NET_RAW
privileged: true
volumeMounts:
- mountPath: /opt/opensandbox/bin
name: opensandbox-bin
- mountPath: /oem
name: opensandbox-win-oem
- mountPath: /dev/kvm
name: opensandbox-win-kvm
- mountPath: /dev/net/tun
name: opensandbox-win-tun
- mountPath: /storage
name: opensandbox-win-storage
initContainers:
- args:
- cp ./install.bat /oem/install.bat && cp ./execd.exe /oem/execd.exe && chmod
0644 /oem/install.bat /oem/execd.exe
command:
- /bin/sh
- -c
image: sandbox-registry.cn-zhangjiakou.cr.aliyuncs.com/opensandbox/execd:v1.0.18
name: execd-installer
volumeMounts:
- mountPath: /opt/opensandbox/bin
name: opensandbox-bin
- mountPath: /oem
name: opensandbox-win-oem
nodeSelector:
kubernetes.io/arch: amd64
restartPolicy: Always
tolerations:
- operator: Exists
volumes:
- emptyDir: {}
name: opensandbox-bin
- emptyDir: {}
name: opensandbox-win-oem
- hostPath:
path: /dev/kvm
type: CharDevice
name: opensandbox-win-kvm
- hostPath:
path: /dev/net/tun
type: CharDevice
name: opensandbox-win-tun
- emptyDir: {}
name: opensandbox-win-storage
capacitySpec:
bufferMax: 3
bufferMin: 1
poolMax: 5
poolMin: 0