- Create a serviceaccount for namespace kube-system (let us say gitlab is the name of the serviceaccount)
- kubectl -n kube-system get sa gitlab -o yaml
- You will find the token from the step 2. Let us say the name of that token is gitlab-token-5g769 kubectl -n kube-system get secret gitlab-token-5g769 -o yaml
- Decode the base 64 ca.crt value and then convert it to ca.pem, you can use openssl command line or some online converter
- Decode the token too using base 64
- Now offer the ca and pem values to gitlab during adding of k8s.
Tuesday, June 23, 2020
Add kubernetes cluster to gitlab
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment