File tree Expand file tree Collapse file tree 5 files changed +43
-4
lines changed Expand file tree Collapse file tree 5 files changed +43
-4
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,11 @@ rules:
17
17
verbs : ["use"]
18
18
resourceNames :
19
19
- {{ .Release.Namespace }}-ns-registry-facade
20
+ - apiGroups : [""]
21
+ resources : ["nodes"]
22
+ verbs :
23
+ - get
24
+ - list
25
+ - update
26
+ - patch
20
27
{{- end -}}
Original file line number Diff line number Diff line change 53
53
{{ include "gitpod.container.tracingEnv" $this | indent 8 }}
54
54
- name : GRPC_GO_RETRY
55
55
value : " on"
56
+ - name : NODENAME
57
+ valueFrom :
58
+ fieldRef :
59
+ fieldPath : spec.nodeName
56
60
volumeMounts :
57
61
- name : cache
58
62
mountPath : " /mnt/cache"
71
75
- name : https-certificates
72
76
mountPath : " /mnt/certificates"
73
77
{{- end }}
78
+ lifecycle :
79
+ postStart :
80
+ exec :
81
+ command :
82
+ - /bin/bash
83
+ - -c
84
+ - kubectl label --overwrite nodes ${NODENAME} gitpod.io/registry-facade_ready_ns_${KUBE_NAMESPACE}=true
85
+ preStop :
86
+ exec :
87
+ command :
88
+ - /bin/bash
89
+ - -c
90
+ - kubectl label nodes ${NODENAME} gitpod.io/registry-facade_ready_ns_${KUBE_NAMESPACE}-
74
91
{{ include "gitpod.kube-rbac-proxy" $this | indent 6 }}
75
92
volumes :
76
93
- name : cache
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
2
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
3
3
4
- kind : RoleBinding
4
+ kind : ClusterRoleBinding
5
5
apiVersion : rbac.authorization.k8s.io/v1
6
6
metadata :
7
- name : registry-facade
7
+ name : {{ .Release.Namespace }}-ns- registry-facade
8
8
labels :
9
9
app : {{ template "gitpod.fullname" . }}
10
10
component : registry-facade
@@ -13,6 +13,7 @@ metadata:
13
13
subjects :
14
14
- kind : ServiceAccount
15
15
name : registry-facade
16
+ namespace : {{ .Release.Namespace }}
16
17
roleRef :
17
18
kind : ClusterRole
18
19
name : {{ .Release.Namespace }}-ns-registry-facade
Original file line number Diff line number Diff line change @@ -288,6 +288,19 @@ spec:
288
288
path : " /"
289
289
initialDelaySeconds : 5
290
290
periodSeconds : 10
291
+ lifecycle :
292
+ postStart :
293
+ exec :
294
+ command :
295
+ - /bin/bash
296
+ - -c
297
+ - kubectl label --overwrite nodes ${NODENAME} gitpod.io/ws-daemon_ready_ns_${KUBE_NAMESPACE}=true
298
+ preStop :
299
+ exec :
300
+ command :
301
+ - /bin/bash
302
+ - -c
303
+ - kubectl label nodes ${NODENAME} gitpod.io/ws-daemon_ready_ns_${KUBE_NAMESPACE}-
291
304
livenessProbe :
292
305
httpGet :
293
306
port : 9999
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 Gitpod GmbH. All rights reserved.
2
2
# Licensed under the MIT License. See License-MIT.txt in the project root for license information.
3
3
4
- kind : RoleBinding
4
+ kind : ClusterRoleBinding
5
5
apiVersion : rbac.authorization.k8s.io/v1
6
6
metadata :
7
- name : ws-daemon-rb
7
+ name : {{ .Release.Namespace }}-ns- ws-daemon-rb
8
8
labels :
9
9
app : {{ template "gitpod.fullname" . }}
10
10
component : ws-daemon
@@ -13,6 +13,7 @@ metadata:
13
13
subjects :
14
14
- kind : ServiceAccount
15
15
name : ws-daemon
16
+ namespace : {{ .Release.Namespace }}
16
17
roleRef :
17
18
kind : ClusterRole
18
19
name : {{ .Release.Namespace }}-ns-ws-daemon
You can’t perform that action at this time.
0 commit comments