-
Notifications
You must be signed in to change notification settings - Fork 2
/
values.ci.yaml
175 lines (147 loc) · 5.83 KB
/
values.ci.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
# Default values for workbench.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
### Kubernetes deployment options
ingress:
class: "nginx"
host: "workbench-ingress-nginx-controller.workbench.svc.cluster.local"
tls:
- hosts:
- "workbench-ingress-nginx-controller.workbench.svc.cluster.local"
### Workbench config and cutomization
config:
frontend:
domain: "https://workbench-ingress-nginx-controller.workbench.svc.cluster.local"
signin_url: "https://workbench-ingress-nginx-controller.workbench.svc.cluster.local/oauth2/start?rd=https%3A%2F%2Fworkbench-ingress-nginx-controller.workbench.svc.cluster.local%2Fmy-apps"
signout_url: "https://workbench-ingress-nginx-controller.workbench.svc.cluster.local/oauth2/sign_out?rd=https%3A%2F%2Fworkbench-ingress-nginx-controller.workbench.svc.cluster.local%2F"
backend:
# Point at internal Keycloak instance + imported realm
keycloak:
hostname: "https://keycloak.workbench.ndslabs.org/auth"
realmName: "workbench-dev"
clientId: "workbench-local"
clientSecret: ""
# Define our own domain and config params
domain: "workbench-ingress-nginx-controller.workbench.svc.cluster.local"
insecure_ssl_verify: "false" # default: true
# Define parameters about the created userapp
userapps:
home_storage:
enabled: true
storage_class: nfs
shared_storage:
enabled: false
ingress:
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
ingress.kubernetes.io/force-ssl-redirect: "true"
# Auth annotations for NGINX
nginx.ingress.kubernetes.io/auth-url: "https://workbench-ingress-nginx-controller.workbench.svc.cluster.local/oauth2/auth"
nginx.ingress.kubernetes.io/signin-url: "https://workbench-ingress-nginx-controller.workbench.svc.cluster.local/oauth2/start?rd=https%3A%2F%2Fworkbench-ingress-nginx-controller.workbench.svc.cluster.local%2Fmy-apps"
nginx.ingress.kubernetes.io/auth-response-headers: "x-auth-request-user, x-auth-request-email, x-auth-request-access-token, x-auth-request-redirect, x-auth-request-preferred-username"
class: nginx
# TODO: Legacy config options (currently ignored)
timeout: 30
inactivity_timeout: 480
### Optional dependency subcharts
# Enable this to run an NGINX ingress controller (if you aren't running another ingress controller)
ingress-nginx:
enabled: true
controller:
# If you have an existing TLS secret, you can uncomment this to specify it here
# Otherwise NGINX will generate a self-signed and use that instead
#extraArgs:
# default-ssl-certificate: workbench/ndslabs-tls
hostPort:
enabled: false
# Enable this to use an external NFS server to provision user volumes (e.g. nfs-condo)
nfs-client-provisioner:
enabled: false # WARNING: experimental
# Enable this to run a local NFS server (development only)
nfs-server-provisioner:
enabled: true
persistence:
enabled: true
storageClass: standard
# Enable this to run a local Keycloak instance (development only)
keycloak:
enabled: false
oauth2-proxy:
global:
storageClass: standard
serviceAccount:
create: false
name: workbench
initContainers:
- name: wait-for-redis
image: ghcr.io/groundnuty/k8s-wait-for:v1.6
imagePullPolicy: Always
args:
- "pod"
- "-lapp.kubernetes.io/component=master"
extraArgs:
# Keycloak OIDC config:
- --provider=keycloak-oidc # "oidc" works as well, but this gives us roles too
- --provider-display-name=Workbench Login
- --redirect-url=https://workbench-ingress-nginx-controller.workbench.svc.cluster.local/oauth2/callback
- --oidc-issuer-url=https://keycloak.workbench.ndslabs.org/auth/realms/workbench-dev
- --client-id=workbench-local
# Authorization config:
#- --email-domain=illinois.edu
- --whitelist-domain=workbench.svc.cluster.local # needed to use the "rd" query string parameter
- --cookie-domain=workbench.svc.cluster.local # forward your cookie automatically to subdomains
#- --cookie-samesite=lax
- --scope=email profile openid
#- --allowed-role=workbench-user
# Local Development Only:
#- --insecure-oidc-skip-issuer-verification=true
- --insecure-oidc-allow-unverified-email=true
#- --ssl-insecure-skip-verify=true
#- --ssl-upstream-insecure-skip-verify=true
- --force-json-errors=true
ingress:
enabled: true
ingressClassName: nginx
path: /oauth2/
pathtype: Prefix
hostname: workbench-ingress-nginx-controller.workbench.svc.cluster.local
tls:
- hosts:
- workbench-ingress-nginx-controller.workbench.svc.cluster.local
mongodb:
global:
storageClass: standard
enabled: true
autoimport:
enabled: true
annotations:
"helm.sh/hook": post-upgrade
"helm.sh/hook-delete-policy": before-hook-creation
env:
- name: FORCE
value: "true"
- name: MONGO_URI
value: "mongodb://workbench:[email protected]:27017/ndslabs?authSource=admin"
- name: GIT_REPO
value: "https://github.com/nds-org/ndslabs-specs"
- name: GIT_BRANCH
value: "develop"
architecture: standalone # WARNING: experimental
#replicaCount: 3
auth:
replicaSetKey: changeme
rootUser: workbench
rootPassword: workbench
# TODO: Test AWS + GKE PVs
persistent:
# Values can be "false" for no persistent storage, "aws" for awsElasticBlockStore,
# or "gce" for gcePersistentDisk
type: false
# If using awsElasticBlockStore enter the EBS volume id, if using gcePersistentDisk
# enter the persistent disk name
volume_id:
persistence:
resourcePolicy: keep
storage_class: "standard"
access_mode: "ReadWriteOnce" # default: ReadWriteOnce
size: "1Gi"