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!

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

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?

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay