Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications.
Create an Agent for the VCS
The first step is create a new Agent which will be communicate with your configured VCS.
Navigate to the Agents Settings.
click Create agent
You should now see setup instructions for the agent.
For now, disregard the docker instructions and continue to the next step.
Run the Agent
Before running the agent, use the following command to confirm that your Kubernetes environment is up and running:
kubectl get pods
We can now run a standalone pod. Make sure to run the
kubectl command with the correct environment variables for
kubectl run agent --image=codeclimate/velocity-agent --env="AGENT_ID=agent" --env="AGENT_TOKEN=token"
This command creates a new K8s pod with the required environment variables, and starts running on it on the K8s infrastructure.
Retrieve the pod logs to confirm that it's working as expected:
kubectl logs agent
You can now create your Services, Deployment, Network Policies, and Volumes.