How to deploy Portainer inside a Kubernetes environment.
 
 
Go to file
David Young 4a739a9d0e
Update GH action to auto-PR deployment manifest changes to gh-pages branch (#32)
2020-12-07 14:18:09 +13:00
.ci Support Portainer EE deployment 2020-11-24 13:02:36 +13:00
.github/workflows Update GH action to auto-PR deployment manifest changes to gh-pages branch (#32) 2020-12-07 14:18:09 +13:00
charts/portainer Release non-pre version of Chart 1.0.6 (#30) 2020-12-02 10:51:08 +13:00
deploy/manifests feat(manifests): update README 2020-12-02 08:15:39 +13:00
LICENSE Initial commit 2020-08-14 13:59:11 +12:00
README.md Fix misspelling of "Enterprise" (#31) 2020-12-02 17:32:39 +13:00

README.md

This repo contains helm and YAML for deploying Portainer into a Kubernetes environment. Follow the applicable instructions for your edition / deployment methodology below:

Deploying with Helm

Install the repository:

helm repo add portainer https://portainer.github.io/k8s/
helm repo update

Create the portainer namespace:

kubectl create namespace portainer

Community Edition

Install the helm chart:

Using NodePort on a local/remote cluster

helm install -n portainer portainer portainer/portainer

Using a cloud provider's loadbalancer

helm install -n portainer portainer portainer/portainer --set service.type=LoadBalancer

Using ClusterIP with an ingress

helm install -n portainer portainer portainer/portainer --set service.type=ClusterIP

For advanced helm customization, see the chart README

Enterprise Edition

Using NodePort on a local/remote cluster

helm install --set enterpriseEdition.enabled=true -n portainer portainer portainer/portainer

Using a cloud provider's loadbalancer

helm install  --set enterpriseEdition.enabled=true -n portainer portainer portainer/portainer --set service.type=LoadBalancer

Using ClusterIP with an ingress

helm install  --set enterpriseEdition.enabled=true -n portainer portainer portainer/portainer --set service.type=ClusterIP

For advanced helm customization, see the chart README

Deploying with manifests

If you're not into helm, you can install Portainer using manifests, by first creating the portainer namespace:

kubectl create namespace portainer

And then...

Community Edition

Using NodePort on a local/remote cluster

kubectl create namespace portainer
kubectl apply -n portainer -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer.yaml

Using a cloud provider's loadbalancer

kubectl create namespace portainer
kubectl apply -n portainer -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer-lb.yaml

Enterprise Edition

Using NodePort on a local/remote cluster

kubectl create namespace portainer
kubectl apply -n portainer -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer-ee.yaml

Using a cloud provider's loadbalancer

kubectl create namespace portainer
kubectl apply -n portainer -f https://raw.githubusercontent.com/portainer/k8s/master/deploy/manifests/portainer/portainer-lb-ee.yaml