Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created March 14, 2021 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vfarcic/4886c4b4af6aa9469821dc12d42819cb to your computer and use it in GitHub Desktop.
Save vfarcic/4886c4b4af6aa9469821dc12d42819cb to your computer and use it in GitHub Desktop.
##################################
# Portainer #
# Container Management Made Easy #
# https://youtu.be/-mWUbDHTEkQ #
##################################
#########
# Setup #
#########
# Create a k8s cluster with NGINX Ingress controller
helm repo add portainer \
https://portainer.github.io/k8s/
helm repo update
git clone https://github.com/vfarcic/portainer-demo.git
cd portainer-demo
# Replace `[...]` with the base address used to access the cluster through the NGINX Ingress controller
export PORTAINER_ADDR=[...] # e.g., portainer.[IP].xip.io
cat values.yaml.orig \
| sed "s@portainer.acme.com@$PORTAINER_ADDR@g" \
| tee values.yaml
################
# Installation #
################
helm upgrade --install \
portainer portainer/portainer \
--namespace portainer \
--create-namespace \
--values values.yaml \
--wait
# Open it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment