This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script generates a new user certificate and kubeconfig file | |
# for a user in the cluster. The user certificate is signed by the | |
# kube-apiserver-client certificate authority. | |
# The script requires the user name as an argument. | |
# The script will generate the following files: | |
# - <user-name>-kube-config: kubeconfig file for the user | |
# | |
# After running the script, the user can use the kubeconfig file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install -y apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common \ | |
sudo |