Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP; changes to try to support using a persistent to back storage for… #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/jupyterhub/manifests/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ data:
### Spawner Options
###################################################
c.JupyterHub.spawner_class = KubeFormSpawner
c.KubeSpawner.user_storage_class = 'standard'
c.KubeSpawner.user_storage_pvc_ensure = True
c.KubeSpawner.singleuser_image_spec = 'gcr.io/kubeflow/tensorflow-notebook'
c.KubeSpawner.cmd = 'start-singleuser.sh'
c.KubeSpawner.args = ['--allow-root']
Expand Down
31 changes: 30 additions & 1 deletion components/jupyterhub/manifests/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ rules:
- apiGroups: ["*"]
resources: ["pods"]
verbs: ["*"]

---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
namespace: default
name: volume-claims
rules:
- apiGroups:
- ""
resources:
- persistentvolumeclaims
verbs: ["*"]

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand All @@ -35,4 +49,19 @@ subjects:
roleRef:
kind: Role
name: edit-pod
apiGroup: rbac.authorization.k8s.io
apiGroup: rbac.authorization.k8s.io

---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: default-volume-claims
namespace: default
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: Role
name: volume-claims
apiGroup: rbac.authorization.k8s.io