{"id":27488269,"url":"https://github.com/narayanareddy11/setup-k8s-runner","last_synced_at":"2026-05-07T11:32:02.261Z","repository":{"id":282235454,"uuid":"947909906","full_name":"narayanareddy11/setup-k8s-runner","owner":"narayanareddy11","description":"Two steps to Set up a Kubernetes pod as Self-hosted runner for GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-04-07T10:45:03.000Z","size":5843,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-17T03:51:03.602Z","etag":null,"topics":["kubernetes","kubernetes-deployment","self-hosted","yaml"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/narayanareddy11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-13T12:48:07.000Z","updated_at":"2025-04-07T10:45:06.000Z","dependencies_parsed_at":"2025-04-16T20:03:19.135Z","dependency_job_id":"af436501-4cb0-4c48-a5ce-4b079d9ef29e","html_url":"https://github.com/narayanareddy11/setup-k8s-runner","commit_stats":null,"previous_names":["narayanareddy11/setup-k8s-runner"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/narayanareddy11/setup-k8s-runner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayanareddy11%2Fsetup-k8s-runner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayanareddy11%2Fsetup-k8s-runner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayanareddy11%2Fsetup-k8s-runner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayanareddy11%2Fsetup-k8s-runner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narayanareddy11","download_url":"https://codeload.github.com/narayanareddy11/setup-k8s-runner/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narayanareddy11%2Fsetup-k8s-runner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubernetes","kubernetes-deployment","self-hosted","yaml"],"created_at":"2025-04-16T19:55:49.717Z","updated_at":"2026-05-07T11:32:02.233Z","avatar_url":"https://github.com/narayanareddy11.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"### Set up a Kubernetes pod as Self-hosted runner for GitHub Actions. \n---\n\n### 1. Clone the Repository to VS Code\nClone the repository using the following command:\n  ```bash \n    git clone https://github.com/narayanareddy11/setup-k8s-runner.git\n   ```\n\n### 2. Update the GitHub Personal Access Token\n1. Go to your GitHub account settings.\n2. Navigate to **Developer settings** \u003e **Personal access tokens** \u003e **Tokens (classic)**.\n3. Generate a new token with the required permissions:\n    - Set the expiration to **30 days**.\n    - Select the scope to include **all repositories**.\n4. Replace the old token in your configuration files or environment variables.\n\n![GitHub Personal Access Token Settings](https://docs.github.com/assets/images/help/settings/personal-access-tokens.png)\n\n### 3. Update Base64 Encoded Values in `secret.yaml`\n1. Use the following command to encode your token or other sensitive data:\n    ```bash\n    echo -n \"ghp_your_generated_token\" | base64\n    ```\n2. Open the `secret.yaml` file in your preferred text editor.\n\n3. ocate the `data` section and Replace the old base64 value with the new one generated in step 1:\n    ```yaml\n    data: \n      TOKEN: \"your-new-base64-encoded-value\"\n\n    ```\n### 4. Update GitHub Username and Repository Name Secret in `ge-deployment.yaml`\n1. Open the `ge-deployment.yaml` file in your preferred text editor.\n2. Locate the section where the GitHub username and repository name secrets are defined.\n3. Update the secret for the GitHub username:\n    ```yaml\n    - name: GITHUB_USERNAME\n      value: \"your-new-username\"\n    ```\n4. Update the secret for the repository name:\n    ```yaml\n    - name: REPOSITORY_NAME\n      value: \"your-new-repository-name\"\n    ```\n\n### 5. Deploy the Self-Hosted Runner Using `kubectl`\n1. Ensure you have `kubectl` installed and configured to interact with your Kubernetes cluster.\n2. Navigate to the directory containing your Kubernetes manifests:\n    ```bash\n    cd /home/narayana/Desktop/setup-k8s-runner\n    ```\n3. Apply the manifests to deploy the runner:\n    ```bash\n    kubectl apply -f selfthosted-runner\n    ```\n4. Verify that the pods are running:\n    ```bash\n    kubectl get pods\n    ```\n5. Check the logs of the runner pod to ensure it is registered successfully:\n    ```bash\n    kubectl logs \u003crunner-pod-name\u003e\n    ```\n\n### 6. Verify the Runner Registration in Github\n1. After applying the changes, navigate to your GitHub repository.\n2. Go to **Settings** \u003e **Actions** \u003e **Runners**.\n3. Verify that the Kubernetes runner is listed as an active runner.\n\n![Kubernetes Runner Registered](runner.png)\n---  \n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayanareddy11%2Fsetup-k8s-runner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarayanareddy11%2Fsetup-k8s-runner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarayanareddy11%2Fsetup-k8s-runner/lists"}