Created
June 26, 2024 11:35
-
-
Save silashansen/a8344a99052f77c7ac0dea23784425aa to your computer and use it in GitHub Desktop.
Give access to a user in K10
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
# Step 1: Use the kasten UI to create a role (<role>) | |
# Create service account for those who needs access | |
kubectl create serviceaccount <user> --namespace kasten-io | |
# For the namespace that the user needs access to: | |
kubectl create rolebinding backup_manager1 --namespace <namespace> \ | |
--clusterrole=<role> \ | |
--serviceaccount=kasten-io:<user> | |
# Create token for the user who needs access | |
kubectl create token <user> \ | |
--namespace=kasten-io \ | |
--duration=24h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment