Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.19 KB

07_dex_mgmt.md

File metadata and controls

39 lines (26 loc) · 1.19 KB

Configure Dex on Management Server

Set configuration parameters

The scripts to prepare the YAML to deploy dex depend on a parameters to be set. Ensure the following are set in params.yaml:

# the DNS CN to be used for dex service
management-cluster.dex-fqdn: dex.mgmt.tkg-aws-lab.winterfell.live
# the default auth server url from Okta
okta.auth-server-fqdn: dev-866321145.okta.com
# the client id and secret from the app you created in Okta for Dex
okta.dex-app-client-id: 123adsfsadf3234r
okta.dex-app-client-secret: 123adsfsadf3234r

Prepare Manifests and Deploy Dex

Prepare the YAML manifests for the related dex K8S objects. Manifests will be output into generated/$MANAGMEMENT_CLUSTER_NAME/dex/ in case you want to inspect.

We can currently use the base aws yaml for any environment.

./scripts/generate-and-apply-dex-yaml.sh

This script will check at the end that the Dex certificate is valid, which depends on the Let's Encrypt / Acme challenge to be resolved, that can take a couple of minutes.

Final validation Step

Check to see dex pod is ready

kubectl get po -n tanzu-system-auth

Go to Next Step

Install Tanzu Observability