-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlesson_test.yaml
194 lines (194 loc) · 4.83 KB
/
lesson_test.yaml
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: lxc0001
vncserver: lxc0001
name: lxc0001
namespace: z160000001557
spec:
replicas: 1
selector:
matchLabels:
name: lxc0001
template:
metadata:
annotations:
cni.projectcalico.org/ipAddrs: '["172.20.1.239"]'
labels:
vncserver: lxc0001
name: lxc0001
spec:
nodeSelector:
kubernetes.io/hostname: 172.32.151.117
containers:
- env:
- name: KUBERNETES_PODIP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: KUBERNETES_PODNAME
value: lxc0001
image: harbor.paas.nl:80/nlsxpt_raw/centos7-xrdp-nopri-systemd-shim3:20220628
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- ls
failureThreshold: 3
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
timeoutSeconds: 1
name: lxc0001
ports:
- containerPort: 3389
protocol: TCP
readinessProbe:
failureThreshold: 10
initialDelaySeconds: 2
periodSeconds: 2
successThreshold: 1
exec:
command:
- /bin/bash
- -c
- "ps -ef | grep -v grep | grep sshd"
timeoutSeconds: 5
resources:
limits:
cpu: "2"
memory: 8Gi
requests:
cpu: "1"
memory: 2Gi
volumeMounts:
- mountPath: /media
name: installpkg
readOnly: true
- name: clusterconf
mountPath: "/tools/conf"
- name: cgroup
mountPath: "/sys/fs/cgroup"
readOnly: true
- mountPath: /var/lib/lxc
mountPropagation: HostToContainer
readOnly: true
name: lxcfs-shared
- mountPath: /proc/cpuinfo
readOnly: true
name: lxcfs-proc-cpuinfo
- mountPath: /sys/devices/system/cpu/online
readOnly: true
name: system-cpu-online
- mountPath: /proc/diskstats
readOnly: true
name: lxcfs-proc-diskstats
- mountPath: /proc/meminfo
readOnly: true
name: lxcfs-proc-meminfo
- mountPath: /proc/stat
readOnly: true
name: lxcfs-proc-stat
- mountPath: /proc/uptime
readOnly: true
name: lxcfs-proc-uptime
- mountPath: /proc/swaps
readOnly: true
name: lxcfs-proc-swaps
- mountPath: /proc/loadavg
readOnly: true
name: lxcfs-proc-loadavg
dnsPolicy: ClusterFirst
hostname: master
imagePullSecrets:
- name: dockercfgz160000001557
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /home
type: ""
name: installpkg
- hostPath:
path: /sys/fs/cgroup
name: cgroup
- name: clusterconf
configMap:
name: lxc0001-conf
defaultMode: 0777
items:
- key: cluster.conf
path: cluster.conf
- hostPath:
path: /var/lib/lxc
type: DirectoryOrCreate
name: lxcfs-shared
- hostPath:
path: /var/lib/lxc/lxcfs/proc/cpuinfo
type: File
name: lxcfs-proc-cpuinfo
- hostPath:
path: /var/lib/lxc/lxcfs/sys/devices/system/cpu/online
type: File
name: system-cpu-online
- hostPath:
path: /var/lib/lxc/lxcfs/proc/diskstats
type: File
name: lxcfs-proc-diskstats
- hostPath:
path: /var/lib/lxc/lxcfs/proc/meminfo
type: File
name: lxcfs-proc-meminfo
- hostPath:
path: /var/lib/lxc/lxcfs/proc/swaps
type: File
name: lxcfs-proc-swaps
- hostPath:
path: /var/lib/lxc/lxcfs/proc/loadavg
type: File
name: lxcfs-proc-loadavg
- hostPath:
path: /var/lib/lxc/lxcfs/proc/stat
type: File
name: lxcfs-proc-stat
- hostPath:
path: /var/lib/lxc/lxcfs/proc/uptime
type: File
name: lxcfs-proc-uptime
---
apiVersion: v1
kind: ConfigMap
metadata:
name: lxc0001-conf
namespace: z160000001557
labels:
name: lxc0001-conf
data:
cluster.conf: |
master:172.20.1.239
---
apiVersion: v1
kind: Service
metadata:
name: lxc0001-svc
namespace: z160000001557
spec:
ports:
- name: vnc
nodePort: 45019
port: 3389
protocol: TCP
targetPort: 3389
- name: ssh
nodePort: 46019
port: 22
protocol: TCP
targetPort: 22
selector:
vncserver: lxc0001
sessionAffinity: None
type: NodePort