
GitHub Actions runner, is a CI/CD system for managing jobs in software projects hosted on GitHub. Runners can be installed in three levels: enterprise, organization, and repository.
In this tutorial, you will learn how to install and use GitHub Actions runner into Vultr Kubernetes Engine.
To follow through this tutorial, you need the following:
kubectl CLI installed and configured in your machineAccess your VKE configuration file by following the steps below:
Login to your Vultr account and navigate to Products > Kubernetes > {Your cluster}>Overview.
Click on the Download Configuration button to download your kubeconfig file.
Install a cert-manager in your VKE cluster using the command below:
Generate a Personal Access Token (PAT) for ARC for GitHub authentication.
To configure and deploy ARC on your VKE k8s using kubectl, follow the steps below:
Deploy the ARC using the command below:
As at the time of writing this, the latest version is v0.26.0. Customize the version to your desired ARC version.
Configure the Personal Access Token using the token you saved earlier in the tutorial.
Replace the PAT_TOKEN with your GitHub PAT token.
Create a runnerdeployment.yaml file and copy the following YAML contents into it:
The runnerdeployment.yaml file is used to create a self-hosted runner and configure it to run against your GitHub repository.
Note: Replace "FREDERICO23/arc-runner" with your repository name.
Apply the runnerdeployment.yaml file to your K8s cluster as follows:
Confirm if the installation was successful using the command below:
Expected Output:
Check the pods status:
Expected Output:
You've finished installing GitHub Actions runner on your VKE. You can now go to your repository settings and check if the runner exists.
To use the previously installed runner, you need a GitHub Actions workflow.
Create a .github/workflows folder on your repo where the runner is installed. 2. Inside the folder, .github/workflows, create a hello-world.yml file and paste the following GitHub Actions Demo content in it.
Save and commit the file.
On your repo directory, click the Actions tab. You will see the recently created Hello World workflow listed.
You have finished installing GitHub Action Runner in Vultr Kubernetes Engine (VKE) cluster using kubectl and learned how to use it to manage your workflows. You can now create and manage CD/CI projects using the GitHub Actions runner and VKE.
0 Comments
Be the first to comment and share your perspective with the community.