Kubernetes configuration and extras for an apps namespace
script to perform the following:
- create certs
- sign certs
- generate zip file for distribution
- describe user setup
This can be done by the admin but really users keys should never leave their own environment.
- openssl (command line util)
Share the following two commands with the user to have them generate a key.
openssl genrsa -out "${USER}.key" 4096
generates a key
openssl req -new -key "${USER}.key" -out "${USER}.csr" -subj "/CN=${USER}/O=developer"
generates a CSR for a user in the developer
group
$ export K8S_USER=jim
$ export K8S_NAMESPACE=apps
$ export K8S_ADMIN=0 # 0 for no admin rights, 1 for cluster admin
$ export USER_CSR=/tmp/jim.csr ## This is optional but encouraged, keys will be generated if no CSR is supplied
$ ./create-user-cert.sh