Skip to content

Instantly share code, notes, and snippets.

@silashansen
Created June 26, 2024 11:35
Show Gist options
  • Save silashansen/a8344a99052f77c7ac0dea23784425aa to your computer and use it in GitHub Desktop.
Save silashansen/a8344a99052f77c7ac0dea23784425aa to your computer and use it in GitHub Desktop.
Give access to a user in K10
# 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