This message was deleted.
# k3s
a
This message was deleted.
r
No, but I guess general k8s instructions should apply?
h
Where could I find best guidelines for running a devcontainer in a k8s cluster
r
@handsome-salesclerk-54324 It sounds like you want to run a container. Here's an example of running the
wget
command inside the
busybox
image in a one-off container.
Copy code
$ kubectl run --stdin --tty --rm busybox --image=<http://quay.io/quay/busybox|quay.io/quay/busybox> --restart=Never -- wget --quiet --output-document=- <http://eth0.me> 
If you don't see a command prompt, try pressing enter.
62.214.79.53
pod "busybox" deleted
ref: https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run
If, for example, you were to replace
wget
and everything after it with
sh
then you would have an interactive Bourne shell running in a container in your cluster.