Skip to content

Instantly share code, notes, and snippets.

@taking
Last active July 25, 2023 02:55
Show Gist options
  • Save taking/eace48b17841237d6de2f5d76854dd55 to your computer and use it in GitHub Desktop.
Save taking/eace48b17841237d6de2f5d76854dd55 to your computer and use it in GitHub Desktop.

portainer Installation with Helm

  • portainer on Kubernetes

Prerequisites

  • Kubernetes 1.20+
  • Helm 3.2.0+
  • Storage Class

Reference

helm update

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

install

helm upgrade portainer portainer/portainer \
    --install \
    --create-namespace \
    --namespace portainer \
    --set service.type=LoadBalancer \
    --set enterpriseEdition.enabled=true \
    --set persistence.size=2Gi \
    --set tls.force=true
@taking
Copy link
Author

taking commented Jul 21, 2023

internal_ip="$(hostname -I | awk {'print $1'})"

kubectl annotate service portainer -n  portainer "metallb.universe.tf/address-pool=production-public-ips"
kubectl annotate service portainer -n  portainer "metallb.universe.tf/allow-shared-ip=key-to-share-${internal_ip}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment