Explain how to create a base64 Kubeconfig file to interact with a Kubernetes Cluster thought Runops.
It should be used in testing environments, like evaluating with minikube or a test Kubernetes Cluster.
This command will dump all configurations in case of multiple configurations in your local
All resources we create in this guide are isolated in the runops namespace. You can erase everything created here by deleting this namespace at any point.
- Create a Service Account for Runops:
- Configure the new service account with the permissions you want to set for the Runops Target you are creating. You can copy and paste this example with edit access, ensuring that you use the service account from step 1 was created:
You can update the kind to RoleBinding and the namespace to allow access to a single namespace. Also: updating the roleRef.name to view will allow read-only access instead of read and edit.
- Set up the following environment variables with access data needed for producing a new kubeconfig file:
- Generate a Kubeconfig file with these values:
- Base64 encode the generated kubeconfig and add the result to the KUBE_CONFIG_DATA variable of your Runops Target: