2021-02-22 23:52:23 +00:00
---
title: Install the Pinniped Supervisor
description: Install the Pinniped Supervisor service in a Kubernetes cluster.
cascade:
layout: docs
menu:
docs:
name: Install Supervisor
2021-05-25 23:15:45 +00:00
weight: 60
2021-02-22 23:52:23 +00:00
parent: howtos
---
2021-12-15 20:48:55 +00:00
2021-02-22 23:52:23 +00:00
This guide shows you how to install the Pinniped Supervisor, which allows seamless login across one or many Kubernetes clusters.
2021-07-28 20:02:23 +00:00
In the examples below, you can replace *{{< latestversion >}}* with your preferred version number.
You can find a list of Pinniped releases [on GitHub ](https://github.com/vmware-tanzu/pinniped/releases ).
2021-12-15 20:48:55 +00:00
## Prerequisites
You should have a Kubernetes cluster with working HTTPS ingress or load balancer capabilities. Unlike the Concierge app, which can
only run on [supported Kubernetes cluster types ]({{< ref "supported-clusters" >}} ), the Supervisor app can run on almost any Kubernetes cluster.
The Supervisor app controls authentication to Kubernetes clusters, so access to its settings and internals should be protected carefully.
Typically, the Supervisor is installed on a secure Kubernetes cluster which is only accessible by administrators,
separate from the clusters for which it is providing authentication services which are accessible by application
developers or devops teams.
2021-02-22 23:52:23 +00:00
## With default options
2021-07-28 20:02:23 +00:00
### Using kapp
2021-02-22 23:52:23 +00:00
2021-07-28 20:02:23 +00:00
1. Install the latest version of the Supervisor into the `pinniped-supervisor` namespace with default options using [kapp ](https://carvel.dev/kapp/ ):
2021-02-22 23:52:23 +00:00
2021-07-28 20:02:23 +00:00
- `kapp deploy --app pinniped-supervisor --file https://get.pinniped.dev/{{< latestversion >}}/install-pinniped-supervisor.yaml`
2021-02-22 23:52:23 +00:00
2021-07-28 20:02:23 +00:00
### Using kubectl
2021-02-22 23:52:23 +00:00
2021-07-28 20:02:23 +00:00
1. Install the latest version of the Supervisor into the `pinniped-supervisor` namespace with default options:
2021-02-22 23:52:23 +00:00
2021-07-28 18:55:41 +00:00
- `kubectl apply -f https://get.pinniped.dev/{{< latestversion >}}/install-pinniped-supervisor.yaml`
2021-05-25 21:52:32 +00:00
2021-02-22 23:52:23 +00:00
## With custom options
Pinniped uses [ytt ](https://carvel.dev/ytt/ ) from [Carvel ](https://carvel.dev/ ) as a templating system.
2021-07-28 20:02:23 +00:00
1. Install the `ytt` and `kapp` command-line tools using the instructions from the [Carvel documentation ](https://carvel.dev/#whole-suite ).
2021-02-22 23:52:23 +00:00
1. Clone the Pinniped GitHub repository and visit the `deploy/supervisor` directory:
- `git clone git@github.com:vmware-tanzu/pinniped.git`
- `cd pinniped/deploy/supervisor`
2021-07-14 17:59:51 +00:00
1. Decide which release version you would like to install. All release versions are [listed on GitHub ](https://github.com/vmware-tanzu/pinniped/releases ).
2021-07-28 20:02:23 +00:00
1. Checkout your preferred version tag, e.g. `{{< latestversion >}}` :
2021-07-14 17:59:51 +00:00
2021-07-28 18:55:41 +00:00
- `git checkout {{< latestversion >}}`
2021-07-14 17:59:51 +00:00
2021-02-22 23:52:23 +00:00
1. Customize configuration parameters:
2021-08-25 21:33:48 +00:00
- See the [default values ](http://github.com/vmware-tanzu/pinniped/tree/main/deploy/supervisor/values.yaml ) for documentation about individual configuration parameters.
2023-06-07 23:07:43 +00:00
For example, you can change the number of Supervisor pods by setting `replicas` or install into a non-default namespace using `into_namespace` .
2021-08-25 21:33:48 +00:00
- In a different directory, create a new YAML file to contain your site-specific configuration. For example, you might call this file `site/dev-env.yaml` .
In the file, add the special ytt comment for a values file and the YAML triple-dash which starts a new YAML document.
Then add custom overrides for any of the parameters from [`values.yaml` ](http://github.com/vmware-tanzu/pinniped/tree/main/deploy/supervisor/values.yaml ).
Override the `image_tag` value to match your preferred version tag, e.g. `{{< latestversion >}}` ,
to ensure that you use the version of the server which matches these templates.
Here is an example which overrides the image tag, the default logging level, and the number of replicas:
```yaml
#@data/values
---
image_tag: {{< latestversion > }}
log_level: debug
replicas: 1
```
- Parameters for which you would like to use the default value should be excluded from this file.
- If you are using a GitOps-style workflow to manage the installation of Pinniped, then you may wish to commit this new YAML file to your GitOps repository.
2021-02-22 23:52:23 +00:00
1. Render templated YAML manifests:
2021-08-25 21:33:48 +00:00
- `ytt --file . --file site/dev-env.yaml`
By putting the override file last in the list of `--file` options, it will override the default values.
2021-02-22 23:52:23 +00:00
1. Deploy the templated YAML manifests:
2021-08-25 21:33:48 +00:00
`ytt --file . --file site/dev-env.yaml | kapp deploy --app pinniped-supervisor --file -`
2021-05-25 21:52:32 +00:00
2023-10-04 16:42:16 +00:00
## Supported Node Architectures
The Pinniped Supervisor can be installed on Kubernetes clusters with available `amd64` or `arm64` linux nodes.
2023-04-03 23:22:21 +00:00
## Other notes
_Important:_ Configure Kubernetes authorization policies (i.e. RBAC) to prevent non-admin users from reading the
resources, especially the Secrets, in the Supervisor's namespace.
2021-07-27 00:18:44 +00:00
## Next steps
2021-05-25 23:15:45 +00:00
2021-07-21 19:10:47 +00:00
Next, [configure the Supervisor as an OIDC issuer ]({{< ref "configure-supervisor" >}} )!