1
+ {
2
+ "reason": {
3
+ "metadata": {
4
+ "name": "imagebuild-foobar",
5
+ "namespace": "default",
6
+ "creationTimestamp": null,
7
+ "labels": {
8
+ "app": "gitpod",
9
+ "component": "workspace",
10
+ "gitpod.io/networkpolicy": "default",
11
+ "gpwsman": "true",
12
+ "headless": "true",
13
+ "metaID": "foobar",
14
+ "owner": "tester",
15
+ "workspaceID": "foobar",
16
+ "workspaceType": "imagebuild"
17
+ },
18
+ "annotations": {
19
+ "cluster-autoscaler.kubernetes.io/safe-to-evict": "false",
20
+ "container.apparmor.security.beta.kubernetes.io/workspace": "unconfined",
21
+ "gitpod.io/requiredNodeServices": "ws-daemon,registry-facade",
22
+ "gitpod/admission": "admit_owner_only",
23
+ "gitpod/contentInitializer": "GmcKZXdvcmtzcGFjZXMvY3J5cHRpYy1pZC1nb2VzLWhlcmcvZmQ2MjgwNGItNGNhYi0xMWU5LTg0M2EtNGU2NDUzNzMwNDhlLnRhckBnaXRwb2QtZGV2LXVzZXItY2hyaXN0ZXN0aW5n",
24
+ "gitpod/id": "foobar",
25
+ "gitpod/imageSpec": "CrwBZXUuZ2NyLmlvL2dpdHBvZC1kZXYvd29ya3NwYWNlLWltYWdlcy9hYzFjMDc1NTAwNzk2NmU0ZDZlMDkwZWE4MjE3MjlhYzc0N2QyMmFjL2V1Lmdjci5pby9naXRwb2QtZGV2L3dvcmtzcGFjZS1iYXNlLWltYWdlcy9naXRodWIuY29tL3R5cGVmb3gvZ2l0cG9kOjgwYTdkNDI3YTFmY2QzNDZkNDIwNjAzZDgwYTMxZDU3Y2Y3NWE3YWYSNGV1Lmdjci5pby9naXRwb2QtY29yZS1kZXYvYnVpZC90aGVpYS1pZGU6c29tZXZlcnNpb24=",
26
+ "gitpod/never-ready": "true",
27
+ "gitpod/ownerToken": "%7J'[Of/8NDiWE+9F,I6^Jcj_1\u0026}-F8p",
28
+ "gitpod/servicePrefix": "foobarservice",
29
+ "gitpod/traceid": "",
30
+ "gitpod/url": "foobar-foobarservice-gitpod.io",
31
+ "prometheus.io/path": "/metrics",
32
+ "prometheus.io/port": "23000",
33
+ "prometheus.io/scrape": "true",
34
+ "seccomp.security.alpha.kubernetes.io/pod": "localhost/workspace-default"
35
+ }
36
+ },
37
+ "spec": {
38
+ "volumes": [
39
+ {
40
+ "name": "vol-this-workspace",
41
+ "hostPath": {
42
+ "path": "/tmp/workspaces/foobar",
43
+ "type": "DirectoryOrCreate"
44
+ }
45
+ },
46
+ {
47
+ "name": "daemon-mount",
48
+ "hostPath": {
49
+ "path": "/tmp/workspaces/foobar-daemon",
50
+ "type": "DirectoryOrCreate"
51
+ }
52
+ }
53
+ ],
54
+ "containers": [
55
+ {
56
+ "name": "workspace",
57
+ "image": "registry-facade:8080/remote/foobar",
58
+ "command": [
59
+ "/.supervisor/workspacekit",
60
+ "ring0"
61
+ ],
62
+ "ports": [
63
+ {
64
+ "containerPort": 23000
65
+ }
66
+ ],
67
+ "env": [
68
+ {
69
+ "name": "GITPOD_REPO_ROOT",
70
+ "value": "/workspace"
71
+ },
72
+ {
73
+ "name": "GITPOD_CLI_APITOKEN",
74
+ "value": "Ab=5=rRA*9:C'T{;RRB\u003e]vK2p6`fFfrS"
75
+ },
76
+ {
77
+ "name": "GITPOD_WORKSPACE_ID",
78
+ "value": "foobar"
79
+ },
80
+ {
81
+ "name": "GITPOD_INSTANCE_ID",
82
+ "value": "foobar"
83
+ },
84
+ {
85
+ "name": "GITPOD_THEIA_PORT",
86
+ "value": "23000"
87
+ },
88
+ {
89
+ "name": "THEIA_WORKSPACE_ROOT",
90
+ "value": "/workspace"
91
+ },
92
+ {
93
+ "name": "GITPOD_HOST",
94
+ "value": "gitpod.io"
95
+ },
96
+ {
97
+ "name": "GITPOD_WORKSPACE_URL",
98
+ "value": "foobar-foobarservice-gitpod.io"
99
+ },
100
+ {
101
+ "name": "THEIA_SUPERVISOR_ENDPOINT",
102
+ "value": ":22999"
103
+ },
104
+ {
105
+ "name": "THEIA_WEBVIEW_EXTERNAL_ENDPOINT",
106
+ "value": "webview-{{hostname}}"
107
+ },
108
+ {
109
+ "name": "THEIA_MINI_BROWSER_HOST_PATTERN",
110
+ "value": "browser-{{hostname}}"
111
+ },
112
+ {
113
+ "name": "GITPOD_GIT_USER_NAME",
114
+ "value": "usernameGoesHere"
115
+ },
116
+ {
117
+ "name": "GITPOD_GIT_USER_EMAIL",
118
+
119
+ },
120
+ {
121
+ "name": "foo",
122
+ "value": "bar"
123
+ },
124
+ {
125
+ "name": "GITPOD_INTERVAL",
126
+ "value": "30000"
127
+ },
128
+ {
129
+ "name": "GITPOD_MEMORY",
130
+ "value": "999"
131
+ },
132
+ {
133
+ "name": "GITPOD_HEADLESS",
134
+ "value": "true"
135
+ },
136
+ {
137
+ "name": "some-envvar",
138
+ "value": "foofoo"
139
+ }
140
+ ],
141
+ "resources": {
142
+ "limits": {
143
+ "cpu": "900m",
144
+ "memory": "1G"
145
+ },
146
+ "requests": {
147
+ "cpu": "899m",
148
+ "ephemeral-storage": "5Gi",
149
+ "memory": "999M"
150
+ }
151
+ },
152
+ "volumeMounts": [
153
+ {
154
+ "name": "vol-this-workspace",
155
+ "mountPath": "/workspace",
156
+ "mountPropagation": "HostToContainer"
157
+ },
158
+ {
159
+ "name": "daemon-mount",
160
+ "mountPath": "/.workspace",
161
+ "mountPropagation": "HostToContainer"
162
+ }
163
+ ],
164
+ "readinessProbe": {
165
+ "httpGet": {
166
+ "path": "/_supervisor/v1/status/content/wait/true",
167
+ "port": 22999,
168
+ "scheme": "HTTP"
169
+ },
170
+ "initialDelaySeconds": 4,
171
+ "timeoutSeconds": 1,
172
+ "periodSeconds": 1,
173
+ "successThreshold": 1,
174
+ "failureThreshold": 600
175
+ },
176
+ "terminationMessagePolicy": "File",
177
+ "imagePullPolicy": "IfNotPresent",
178
+ "securityContext": {
179
+ "capabilities": {
180
+ "add": [
181
+ "AUDIT_WRITE",
182
+ "FSETID",
183
+ "KILL",
184
+ "NET_BIND_SERVICE",
185
+ "SYS_PTRACE"
186
+ ],
187
+ "drop": [
188
+ "SETPCAP",
189
+ "CHOWN",
190
+ "NET_RAW",
191
+ "DAC_OVERRIDE",
192
+ "FOWNER",
193
+ "SYS_CHROOT",
194
+ "SETFCAP",
195
+ "SETUID",
196
+ "SETGID"
197
+ ]
198
+ },
199
+ "privileged": false,
200
+ "runAsUser": 33333,
201
+ "runAsGroup": 33333,
202
+ "runAsNonRoot": true,
203
+ "readOnlyRootFilesystem": false,
204
+ "allowPrivilegeEscalation": true
205
+ }
206
+ }
207
+ ],
208
+ "restartPolicy": "Never",
209
+ "dnsPolicy": "None",
210
+ "serviceAccountName": "workspace",
211
+ "automountServiceAccountToken": false,
212
+ "imagePullSecrets": [
213
+ {
214
+ "name": "dockerhub-gitpod"
215
+ },
216
+ {
217
+ "name": "eu.gcr.io-gitpod"
218
+ }
219
+ ],
220
+ "affinity": {
221
+ "nodeAffinity": {
222
+ "requiredDuringSchedulingIgnoredDuringExecution": {
223
+ "nodeSelectorTerms": [
224
+ {
225
+ "matchExpressions": [
226
+ {
227
+ "key": "gitpod.io/workload_imagebuild",
228
+ "operator": "In",
229
+ "values": [
230
+ "true"
231
+ ]
232
+ }
233
+ ]
234
+ }
235
+ ]
236
+ }
237
+ }
238
+ },
239
+ "schedulerName": "workspace-scheduler",
240
+ "tolerations": [
241
+ {
242
+ "key": "node.kubernetes.io/disk-pressure",
243
+ "operator": "Exists",
244
+ "effect": "NoExecute"
245
+ },
246
+ {
247
+ "key": "node.kubernetes.io/memory-pressure",
248
+ "operator": "Exists",
249
+ "effect": "NoExecute"
250
+ },
251
+ {
252
+ "key": "node.kubernetes.io/network-unavailable",
253
+ "operator": "Exists",
254
+ "effect": "NoExecute",
255
+ "tolerationSeconds": 30
256
+ }
257
+ ],
258
+ "dnsConfig": {
259
+ "nameservers": [
260
+ "1.1.1.1",
261
+ "8.8.8.8"
262
+ ]
263
+ },
264
+ "enableServiceLinks": false
265
+ },
266
+ "status": {}
267
+ }
268
+ }
0 commit comments