reccommend using install-pinniped-concierge-crds.yaml, then install-pinniped-concierge-resources.yaml. Previously we recommended install-pinniped-concierge-crds (a subset), then install-pinniped-concierge (everything concierge related, including the crds). This works fine for install, but not uninstall. Instead we should use a separate yaml file that contains everything in install-pinniped-concierge but *not* in install-pinniped-concierge-crds. We have been generating this file in CI since a5ced4286b6febc7474b7adee34eeb1b62ec82b7 but we haven't released since then so we haven't been able to recommend its use.
4.5 KiB
title | description | cascade | menu | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Install the Pinniped Concierge | Install the Pinniped Concierge service in a Kubernetes cluster. |
|
|
This guide shows you how to install the Pinniped Concierge. You should have a [supported Kubernetes cluster]({{< ref "../reference/supported-clusters" >}}).
In the examples below, you can replace {{< latestversion >}} with your preferred version number. You can find a list of Pinniped releases on GitHub.
With default options
Warning: the default Concierge configuration may create a public LoadBalancer Service on your cluster if that is the default on your cloud provider. If you'd prefer to customize the annotations or load balancer IP address, see the "With custom options" section below.
Using kapp
-
Install the latest version of the Concierge into the
pinniped-concierge
namespace with default options using kapp:kapp deploy --app pinniped-concierge --file https://get.pinniped.dev/{{< latestversion >}}/install-pinniped-concierge.yaml
Using kubectl
-
Install the latest version of the Concierge CustomResourceDefinitions:
kubectl apply -f https://get.pinniped.dev/{{< latestversion >}}/install-pinniped-concierge-crds.yaml
This step is required so kubectl can validate the custom resources deployed in the next step.
-
Install the latest version of the Concierge into the
pinniped-concierge
namespace with default options:kubectl apply -f https://get.pinniped.dev/{{< latestversion >}}/install-pinniped-concierge-resources.yaml
With custom options
Pinniped uses ytt from Carvel as a templating system.
-
Install the
ytt
andkapp
command-line tools using the instructions from the Carvel documentation. -
Clone the Pinniped GitHub repository and visit the
deploy/concierge
directory:git clone git@github.com:vmware-tanzu/pinniped.git
cd pinniped/deploy/concierge
-
Decide which release version you would like to install. All release versions are listed on GitHub.
-
Checkout your preferred version tag, e.g.
{{< latestversion >}}
.git checkout {{< latestversion >}}
-
Customize configuration parameters:
-
See the default values for documentation about individual configuration parameters. For example, you can change the number of Concierge pods by setting
replicas
or apply custom annotations to the impersonation proxy service usingimpersonation_proxy_spec
. -
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
.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:
#@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.
-
-
Render templated YAML manifests:
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. -
Deploy the templated YAML manifests:
ytt --file . --file site/dev-env.yaml | kapp deploy --app pinniped-concierge --file -
Next steps
Next, configure the Concierge for [JWT]({{< ref "configure-concierge-jwt.md" >}}) or [webhook]({{< ref "configure-concierge-webhook.md" >}}) authentication, or [configure the Concierge to use the Supervisor for authentication]({{< ref "configure-concierge-supervisor-jwt" >}}).