Skip to content

Instantly share code, notes, and snippets.

@edwardtheharris
Last active November 28, 2024 04:14
Show Gist options
  • Save edwardtheharris/99f045842a5c30120595075bd4fc1001 to your computer and use it in GitHub Desktop.
Save edwardtheharris/99f045842a5c30120595075bd4fc1001 to your computer and use it in GitHub Desktop.
containerd run calicoctl
#!/bin/bash
ctr run --rm -t docker.io/calico/ctl:v3.29.1 calico calicoctl --help
ctr run --env DATASTORE_TYPE=kubernetes --env KUBECONFIG=/kube.conf --mount type=bind,src=/etc/kubeadm/admin.conf,dst=/kube.conf,options=rbind:ro --net-host --rm -t docker.io/calico/ctl:v3.29.1 calico calicoctl get nodes --allow-version-mismatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment