DEV Community

Scott
Scott

Posted on

3 1

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!

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

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?

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay