diff --git a/deploy/G5k/K3S/script.ipynb b/deploy/G5k/K3S/script.ipynb index b39526b4dc7bea7abb863442de4f7d3b0bda2f43..5a3aabb27a7f3f86d92fd871f61ed294df5b9d8f 100644 --- a/deploy/G5k/K3S/script.ipynb +++ b/deploy/G5k/K3S/script.ipynb @@ -365,15 +365,22 @@ "with en.actions(roles=roles[\"master\"]) as a:\n", " # Install Chaos Mesh\n", " #a.raw(\"kubectl apply -f https://charts.chaos-mesh.org/chaos-mesh-v2.1.0.tgz\")\n", - " \n", + "\n", " # Install Helm chart for Chaos Mesh\n", " a.raw(\"helm --kubeconfig /etc/rancher/k3s/k3s.yaml repo add chaos-mesh https://charts.chaos-mesh.org\")\n", " a.raw(\"helm --kubeconfig /etc/rancher/k3s/k3s.yaml repo update\")\n", - " a.raw(\"helm --kubeconfig /etc/rancher/k3s/k3s.yaml install chaos-mesh chaos-mesh/chaos-mesh --set chaosDaemon.runtime=containerd --set chaosDaemon.containerdSocket=/run/containerd/containerd.sock -n default\")\n", + " a.raw(\"helm --kubeconfig /etc/rancher/k3s/k3s.yaml install chaos-mesh chaos-mesh/chaos-mesh -n chaos-mesh --create-namespace\\\n", + " --set chaosDaemon.runtime=containerd \\\n", + " --set chaosDaemon.socketPath=/run/k3s/containerd/containerd.sock \\\n", + " --set chaosDaemon.extraVolumes[0].name=fuse-device \\\n", + " --set chaosDaemon.extraVolumes[0].hostPath.path=/dev/fuse \\\n", + " --set chaosDaemon.extraVolumes[0].hostPath.type=CharDevice \\\n", + " --set chaosDaemon.extraVolumeMounts[0].name=fuse-device \\\n", + " --set chaosDaemon.extraVolumeMounts[0].mountPath=/dev/fuse \\\n", + " --set chaosDaemon.securityContext.privileged=true\")\n", " a.raw(\"kubectl apply -f rbac.yaml\")\n", " a.raw(\"kubectl create token account-default-admin-eechh\")\n", - " a.raw('kubectl patch svc chaos-dashboard -n default -p \\'{\"spec\": {\"ports\": [{\"name\": \"http\", \"protocol\": \"TCP\", \"port\": 2333, \"targetPort\": 2333, \"nodePort\": 30312}]}}\\'')\n", - "\n" + " a.raw('kubectl patch svc chaos-dashboard -n chaos-mesh -p \\'{\"spec\": {\"ports\": [{\"name\": \"http\", \"protocol\": \"TCP\", \"port\": 2333, \"targetPort\": 2333, \"nodePort\": 30312}]}}\\'')" ] }, {