Configuration
During the first setup step, users can select the name of the automation as well as the name of the new task. In the second stepData Source Settings, the URL of the Kubernetes API server must be provided together with the API access token as well as the name of the according Kubernetes cluster.
Obtaining the API Token
Follow these steps to determine the necessary access token:- Open a terminal or command prompt and navigate to the directory where you want to create the Qbilon configuration file.
- Create a new file named
qbilon-config.yamland open it in a text editor. - Copy the following content into the
qbilon-config.yamlfile: - Save the
qbilon-config.yamlfile. - In the terminal or command prompt, navigate to the directory where you saved the
qbilon-config.yamlfile. - Execute the following command to apply the configuration to your Kubernetes cluster:
kubectl apply -f qbilon-config.yaml
- Once the configuration is applied successfully, execute the following command to create a token for the qbilon-service-account:
kubectl create token qbilon-cluster-reader --duration=999999h
- This command generates a token for the
qbilon-cluster-reader, and the--duration=999999hflag sets the token validity to a long duration (999999 hours in this example). - The token is now generated and can be used to authenticate qbilon with the Kubernetes cluster. Also, the public URL of the Kubernetes control plane is required.
Clean-up
If you no longer require the Qbilon connection and want to remove the associated resources, just follow these steps:- Open a terminal or command prompt.
- Execute the following command to delete the Qbilon namespace:
kubectl delete namespace qbilon. - This command deletes the namespace along with all the resources created within it, including the service account, role, and role binding.
