Post

Portainer 2.0 -- Now with more Kubernetes!

What’s new in Portainer 2.0? Well, a ton.With the release of Portainer 2 you now have the option to install Kubernetes.This makes installing, managing, and deploying Kubenetes really easy.In this step by step tutorial, we’ll start with nothing and end up with a fully working Portainer 2 server running Kubernetes.We’ll set up k3s using k3d, install kubectl, and then spin up Portainer.As an added bonus, we’ll also run a Minecraft server in Kubernetes as a proof of work.Double bonus, we’ll cover how to pronounce kubectl…

📺 Watch Video

Let’s get started

Here are the commands used in the video.Be sure to use them appropriately.

Install ubuntu

https://ubuntu.com/

Install Docker

To install docker, see this post

Install kubectl

https://kubernetes.io/docs/tasks/tools/install-kubectl/

1
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
1
chmod +x ./kubectl
1
sudo mv ./kubectl /usr/local/bin/kubectl
1
kubectl version --client

Install k3d

https://github.com/rancher/k3d

1
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash

Install k3s

1
k3d cluster create portainer --api-port 6443 --servers 1 --agents 1 -p "30000-32767:30000-32767@server:0"
1
k3d cluster create portainer --api-port 6443 --servers 1 --agents 1 -p "30000-32767:30000-32767@server:0"

Install Portainer

https://github.com/portainer/k8s

1
2
kubectl create namespace portainer
kubectl apply -n portainer -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer.yaml
1
2
3
4
The Portainer UI is hosted on port `30777`


      Example: `http://192.168.0.1:30777`

⚙️ See all the hardware I recommend at https://l.technotim.live/gear

🚀 Don’t forget to check out the 🚀Launchpad repo with all of the quick start source files

This post is licensed under CC BY 4.0 by the author.