File tree Expand file tree Collapse file tree 4 files changed +6
-25
lines changed Expand file tree Collapse file tree 4 files changed +6
-25
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,6 @@ metadata:
4
4
name : {{ include "rstudio.fullname" . }}
5
5
labels :
6
6
{{- include "rstudio.labels" . | nindent 4 }}
7
- annotations :
8
- authproxy.stakater.com/enabled : " true"
9
- authproxy.stakater.com/source-service-name : {{ .Release.Name }}-service
10
- authproxy.stakater.com/upstream-url : " http://localhost:8787/"
11
- authproxy.stakater.com/client-id : {{ .Values.oidc.client_id }}
12
- authproxy.stakater.com/client-secret : {{ .Values.oidc.client_secret }}
13
- authproxy.stakater.com/listen : " :80"
14
- authproxy.stakater.com/discovery-url : {{ tpl .Values.oidc.discovery_url . }}
15
- authproxy.stakater.com/oauth-uri : " {{ .Values.ingress.access_path }}oauth"
16
- authproxy.stakater.com/gatekeeper-image : keycloak/keycloak-gatekeeper:7.0.0
17
7
spec :
18
8
replicas : {{ .Values.replicaCount }}
19
9
selector :
@@ -60,16 +50,16 @@ spec:
60
50
value : " true"
61
51
ports :
62
52
- name : http
63
- containerPort : 80
53
+ containerPort : 8787
64
54
protocol : TCP
65
55
livenessProbe :
66
56
httpGet :
67
57
path : /
68
- port : 8787
58
+ port : http
69
59
readinessProbe :
70
60
httpGet :
71
61
path : /
72
- port : 8787
62
+ port : http
73
63
resources :
74
64
{{- toYaml .Values.resources | nindent 12 }}
75
65
volumeMounts :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ metadata:
13
13
{{- include "rstudio.labels" . | nindent 4 }}
14
14
{{- with .Values.ingress.annotations }}
15
15
annotations :
16
- {{- tpl ( toYaml .) $ | nindent 4 }}
16
+ {{- toYaml . | nindent 4 }}
17
17
{{- end }}
18
18
spec :
19
19
{{- if .Values.ingress.tls }}
34
34
{{- range .paths }}
35
35
- path : {{ . }}
36
36
backend :
37
- serviceName : {{ $fullName }}-service
37
+ serviceName : {{ $fullName }}
38
38
servicePort : {{ $svcPort }}
39
39
{{- end }}
40
40
{{- end }}
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
2
kind : Service
3
3
metadata :
4
- name : {{ include "rstudio.fullname" . }}-service
4
+ name : {{ include "rstudio.fullname" . }}
5
5
labels :
6
6
{{- include "rstudio.labels" . | nindent 4 }}
7
7
spec :
Original file line number Diff line number Diff line change @@ -38,13 +38,9 @@ service:
38
38
port : 80
39
39
40
40
ingress :
41
- access_path : /rstudio/
42
41
enabled : true
43
42
annotations :
44
43
nginx.ingress.kubernetes.io/rewrite-target : /$2
45
- nginx.ingress.kubernetes.io/configuration-snippet : |
46
- # This extra rewrite restores the original url because keycloak gatekeeper expects the non-rewritten path
47
- rewrite "{{ .Values.ingress.access_path }}oauth(/|$)(.*)" {{ .Values.ingress.access_path }}oauth/$2 break;
48
44
# kubernetes.io/ingress.class: nginx
49
45
# kubernetes.io/tls-acme: "true"
50
46
hosts :
@@ -74,11 +70,6 @@ tolerations: []
74
70
75
71
affinity : {}
76
72
77
- oidc :
78
- client_id : " rstudio"
79
- client_secret : " some_secret"
80
- discovery_url : " http://cloudman-keycloak-http.cloudman.svc.cluster.local/auth/realms/master"
81
-
82
73
persistence :
83
74
enabled : true
84
75
name : rstudio-pvc
You can’t perform that action at this time.
0 commit comments