mirror of https://github.com/portainer/k8s.git
|
||
---|---|---|
.ci | ||
.github/workflows | ||
charts/portainer | ||
deploy/manifests | ||
LICENSE | ||
README.md |
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