Skip to content

Instantly share code, notes, and snippets.

View onefoursix's full-sized avatar

Mark Brooks onefoursix

View GitHub Profile
#!/usr/bin/env bash
# This extracts a Service Account Token from a previously created
# ServiceAccount that has sufficient RBAC permissions to deploy
# a Control Agent. The token is then set in a kubeconfig file
# a non-admin user can use to deploy a Control Agent. cluster-admin
# role is required to execute this script
# This script is based entirely on innovia/kubernetes_add_service_account_kubeconfig.sh
# located at https://gist.github.com/innovia/fbba8259042f71db98ea8d4ad19bd708