DEV Community

Scott
Scott

Posted on

Using KinD with Podman (kinp)

I've been using kind on ec2 for a while now because I was too lazy to work around issues I was having locally. I finally go around to writing a shell wrapper for kind today and would like to share.

If you have any issues please let me know!

Disclaimer: This has been tested to work on Fedora 33 only but should work on other systems (provided you have podman installed.

Install kinp

git clone https://github.com/rustysys-dev/kinp.git
cd kinp

# install main script to /usr/bin/kinp
# installs library script to /usr/lib/kinp/libkinp
sudo bash install
Enter fullscreen mode Exit fullscreen mode

Using kinp

kinp is used exactly as you would kind. That being said, kinp will download all dependencies before running (provided they do not already exist).

Dependencies include:

  • kubectl
  • kind
  • awscli (if AWS_ACCOUNT_ID env_var is set)

Create cluster

kinp create cluster
Enter fullscreen mode Exit fullscreen mode

Check cluster

kubectl get nodes
Enter fullscreen mode Exit fullscreen mode

Destroy cluster

kinp delete cluster
Enter fullscreen mode Exit fullscreen mode

Conclusion

There you have it Kubernetes in Podman! If you have any questions or comments please let me know!

Top comments (1)

Collapse
 
nikaskn profile image
Konstantinos N. Nikas

Thanks a lot, Scott!

Error message on wsl2(podman in ubuntu 20.04):

:/usr/share/containers/kinp$ kubectl get nodes
The connection to the server localhost:8080 was refused - did you specify the right host or port?

What would you suggest?