Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am oliverisaac on github.

  • I am oisaac (https://keybase.io/oisaac) on keybase.

  • I have a public key ASDh0gfZ2p651b0er65wFs9wE5qkwKuE0LwPjEuDBsvZXAo

@oliverisaac
oliverisaac / base64
Last active December 11, 2018 19:03 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi