Files
holos/docs/provisioner/gcloud/entrypoint
Jeff McCune 0771bd6b6c Configure namespaces in the provisioner cluster
The provisioner cluster is a worker-less autopilot cluster that provides
secrets to other clusters in the platform.  The `eso-creds-refresher`
Job in the holos-system namespace of each other cluster refreshes
service account tokens for SecretStores.

This patch adds the IAM structure for the Job implemented by Namespace,
ServiceAccount, Role, and RoleBinding api objects.
2024-02-19 21:37:13 -08:00

19 lines
346 B
Bash
Executable File

#! /bin/bash
#
set -xeuo pipefail
cd "$HOME"
gcloud config set disable_usage_reporting true
gcloud auth login --cred-file $GOOGLE_APPLICATION_CREDENTIALS
export KUBECONFIG="${HOME}/kubeconfig.seed"
# Log into k8s.
gcloud container clusters get-credentials holos --region=us-central1
# Check access.
kubectl version --output=yaml
sleep 3600