Initial configuration
If you have completed the Quick Start, Portainer-IDP is installed and has its Edge Admin credential. Before developers can deploy, an administrator needs to set up a few things: who gets which role, which repository manifests are committed to, and which clusters and namespaces teams may deploy into.
Administrators can follow this setup on the Getting started page under Admin, which ticks each step off as it's done. See Admin.
Everything in Portainer-IDP is set up in this order, and each step needs the one before it:
In Portainer
The following steps are completed within Portainer itself, as an administrator.
Set up users and teams
Portainer-IDP shares Portainer's authentication, so anyone who uses it needs a Portainer account. Give developers ordinary Portainer accounts. They do not need edge rights; Portainer-IDP deploys on their behalf.
Grouping people into Teams makes the rest easier, because Portainer-IDP's access lists accept teams as well as users.
Assign environment roles
Each user's role in Portainer-IDP comes from the environment roles you assign in Portainer, to the user or one of their teams, on each Kubernetes environment or its environment group. For example, an Operator in Portainer is a Limited Operator in Portainer-IDP, who can scale, restart and roll back but not deploy.
See Roles and access control for the full mapping.
In Portainer-IDP
The following steps are performed in Portainer-IDP as an administrator.
Set your Git commit identity
Everyone who deploys needs a Git commit identity, including administrators. It's the personal access token Portainer-IDP commits manifests with, so commits are made as you. Open the account menu, choose Settings, and fill in your provider, username and token. See Git commit identity.
Check your clusters
Open Admin > Cluster Readiness. It checks each environment for an ingress controller, load balancer support, a default storage class, healthy nodes and GPUs, and whether Sealed Secrets is installed. Fix what it reports before developers deploy.
While you're here, install Sealed Secrets on each environment that will hold secrets. The first time you do, you'll be asked where system applications live in Git. See Cluster Readiness.
Create a Git repository
Open Git Repositories and choose Add Git Repository. Enter the repository URL and provider, give Portainer read access, and turn on Shared with everyone so developers can use it. Choose Test connection, then Add Git Repository.
See Git Repositories for the details.
Create deploy targets
Open Deploy Targets and choose New deploy target. Give it a name developers will recognize, such as production-eu, pick its environments, choose the Git repository, branch and folder its manifests live in, and add a namespace for each team.
On each namespace, add the people or teams who may deploy into it under Who may use it. That also shows them the deploy target and lets them deploy onto it, into that namespace only.
See Deploy Targets for the details.
Set a base domain
If applications should get their own hostnames, open the deploy target's Ingress tab and set a Base domain, with wildcard DNS pointing at the cluster. A catalog application called myapp on a target with the base domain apps.example.com is then reachable at myapp.apps.example.com. Without a base domain, applications are exposed on a NodePort.
Invite developers
Ask everyone to set their Git commit identity, then point them at Deploy.
Optional configuration
Curate Helm charts. Choose which chart repositories developers may use, and add pinned charts to the catalog with locked values. See Helm Charts.
Allow source hosts. Choose which Git hosts Source Deploy may read public repositories from. See Settings.
Last updated
Was this helpful?