Skip to content

Runnig neurodesk from Jupyterhub (K8s) #472

Closed Answered by stebo85
xhejtman asked this question in Q&A
Discussion options

You must be logged in to vote

you need to enable capabilities needed for apptainer/singularity through Apparmor in Kubernetes:

AppArmor.yaml:

apiVersion: v1
kind: Namespace
metadata:
  name: apparmor
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: apparmor-profiles
  namespace: apparmor
data:
  # Filename singleuser maps to the definition of the singleuser profile.
  singleuser: |-
    profile singleuser flags=(attach_disconnected,mediate_deleted) {
      file,
      network,
      capability,
      umount, mount,
      signal (receive),
      signal (send) peer=singleuser,
      ptrace peer=singleuser,

      deny /proc/mem rwklx,
      deny /proc/kmem rwklx,
      deny /proc/kcore rwklx,
      deny /proc/sysrq-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stebo85
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants