As a CSP customer, I want want to get a kubeconfig in order to access the central API (securely) so that I can use it. Most likely implemented by using an kubectl exec auth plugin that does OAuth2 Device Auth Flow. ## Definition of Ready: - [ ] User Story is small enough to be finished within one sprint - [ ] User Story is clear and understood by the whole team - [ ] Acceptance criteria are defined - [ ] Acceptance criteria are clear and understood by the whole team ## Definition of Done: - [ ] All acceptance criteria are met - [ ] Changes have been reviewed - [ ] CI tests have run successfully - [ ] Documentation has been updated - [ ] Release Notes have been updated
Activity
joshmue commentedon Aug 7, 2023
Used https://github.com/int128/kubelogin (with some inspiration from a post) to login to testbed in gx-scs.
Rough steps:
joshmue-kubectlclient in keycloak (enable default scopesmicroprofile-jwtandemail, set redirect URL)k8s-viewergroup and role in keycloak, associating with userClusterRoleBindingin place. For example:~/.kube/config)userssection in copied kubeconfigKUBECONFIGto new non-admin kubeconfig locationkubectl get podsand follow on-screen directionsjoshmue commentedon Aug 27, 2024
Depends on target deployment cluster and CSP infrastructure, is a general topic.