Skip to content

Commit

Permalink
set securityContext for containers #21
Browse files Browse the repository at this point in the history
  • Loading branch information
goseind committed Feb 6, 2023
1 parent 7affdb7 commit 87153ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion iac/tf/cluster/jhub/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ hub:
proxy:
service:
type: LoadBalancer
loadBalancerIP: 137.138.226.78 # ref.: openstack loadbalancer create --name kube_service_8d85602e-7816-4153-b85b-ea86586e47c1_jhub_proxy-public --vip-network-id 798d00f3-2af9-48a0-a7c3-a26d909a2d64
loadBalancerIP: 137.138.226.35 # may change if LB needs to be created manually due to bug ref.: openstack loadbalancer create --name kube_service_8d85602e-7816-4153-b85b-ea86586e47c1_jhub_proxy-public --vip-network-id 798d00f3-2af9-48a0-a7c3-a26d909a2d64
annotations:
loadbalancer.openstack.org/network-id: "798d00f3-2af9-48a0-a7c3-a26d909a2d64"
service.beta.kubernetes.io/openstack-internal-load-balancer: "true"
loadbalancer.openstack.org/cascade-delete: "false"

singleuser:
extraPodConfig:
securityContext:
fsGroupChangePolicy: "OnRootMismatch" # value is not set, which causes containers to crash
storage:
dynamic:
storageClass: manila-meyrin-cephfs
4 changes: 4 additions & 0 deletions iac/tf/cluster/main-helm.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ resource "helm_release" "jupyterhub-chart" {
"${file("jhub/config.yaml")}"
]

# set {
# name = "hub.podSecurityContext.fsGroupChangePolicy"
# value = "OnRootMismatch"
# }
}

# Reana
Expand Down

0 comments on commit 87153ad

Please sign in to comment.