@@ -68,18 +68,18 @@ jupyterhub:
68
68
securityContext:
69
69
runAsUser: 0
70
70
volumeMounts:
71
- - name: home
72
- mountPath: /home/jovyan
73
- subPath: "{username}"
74
- # Here so we can chown it appropriately
75
- - name: home
76
- mountPath: /home/jovyan/shared-readwrite
77
- subPath: _shared
78
- - name: postgres-db
79
- mountPath: /var/lib/postgresql/data
80
- # postgres recommends against mounting a volume directly here
81
- # So we put data in a subpath
82
- subPath: data
71
+ - name: home
72
+ mountPath: /home/jovyan
73
+ subPath: "{username}"
74
+ # Here so we can chown it appropriately
75
+ - name: home
76
+ mountPath: /home/jovyan/shared-readwrite
77
+ subPath: _shared
78
+ - name: postgres-db
79
+ mountPath: /var/lib/postgresql/data
80
+ # postgres recommends against mounting a volume directly here
81
+ # So we put data in a subpath
82
+ subPath: data
83
83
storage:
84
84
extraVolumes:
85
85
- name: postgres-db
@@ -111,27 +111,27 @@ jupyterhub:
111
111
memory : 64Mi
112
112
cpu : 0.01
113
113
env :
114
- # Configured using the env vars documented in https://hub.docker.com/_/postgres/
115
- # Postgres is only listening on localhost, so we can trust all connections that come to it
116
- - name : POSTGRES_HOST_AUTH_METHOD
117
- value : " trust"
118
- # The name of the default user in our user image is jovyan, so the postgresql superuser
119
- # should also be called that
120
- - name : POSTGRES_USER
121
- value : " jovyan"
122
- securityContext :
123
- runAsUser : 1000
124
- volumeMounts :
125
- # Mount the user homedirectory in the postgres db container as well, so postgres commands
126
- # that load data into the db from disk work
127
- - name : home
128
- mountPath : /home/jovyan
129
- subPath : " {username}"
130
- - name : postgres-db
131
- mountPath : /var/lib/postgresql/data
132
- # postgres recommends against mounting a volume directly here
133
- # So we put data in a subpath
134
- subPath : data
114
+ # Configured using the env vars documented in https://hub.docker.com/_/postgres/
115
+ # Postgres is only listening on localhost, so we can trust all connections that come to it
116
+ - name : POSTGRES_HOST_AUTH_METHOD
117
+ value : " trust"
118
+ # The name of the default user in our user image is jovyan, so the postgresql superuser
119
+ # should also be called that
120
+ - name : POSTGRES_USER
121
+ value : " jovyan"
122
+ securityContext :
123
+ runAsUser : 1000
124
+ volumeMounts :
125
+ # Mount the user homedirectory in the postgres db container as well, so postgres commands
126
+ # that load data into the db from disk work
127
+ - name : home
128
+ mountPath : /home/jovyan
129
+ subPath : " {username}"
130
+ - name : postgres-db
131
+ mountPath : /var/lib/postgresql/data
132
+ # postgres recommends against mounting a volume directly here
133
+ # So we put data in a subpath
134
+ subPath : data
135
135
` ` `
136
136
137
137
## Cleanup created disks after use
0 commit comments