{"id":30799505,"url":"https://github.com/zkfmapf123/k8s-github-action","last_synced_at":"2026-02-10T21:32:40.072Z","repository":{"id":299075162,"uuid":"1001930590","full_name":"zkfmapf123/k8s-github-action","owner":"zkfmapf123","description":"github-action use k8s","archived":false,"fork":false,"pushed_at":"2025-06-15T14:42:11.000Z","size":358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-05T20:03:26.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zkfmapf123.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-14T10:48:45.000Z","updated_at":"2025-06-15T14:42:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c1768db-4389-4405-a0ef-be8a5f5295b3","html_url":"https://github.com/zkfmapf123/k8s-github-action","commit_stats":null,"previous_names":["zkfmapf123/k8s-github-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zkfmapf123/k8s-github-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fk8s-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fk8s-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fk8s-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fk8s-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zkfmapf123","download_url":"https://codeload.github.com/zkfmapf123/k8s-github-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zkfmapf123%2Fk8s-github-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29317956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"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":[],"created_at":"2025-09-05T19:50:52.563Z","updated_at":"2026-02-10T21:32:40.065Z","avatar_url":"https://github.com/zkfmapf123.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# K8S Github Action Runners\n\n## ...\n\n- [x] Github Action use K8S\n- [ ] 요청 시 Action Pod / Node Scale-out\n- [ ] Github Action 병렬처리\n    - [ ] Karpenter 깊게 이해하기\n    - [ ] Github Action 요청이 많을때 자체적으로 Action 이 늘어날순없을까? ( Action : Pod = 1: 1 )\n    - [ ] Action Deployment를 Replica를 늘리면 Karpenter가 자체적으로 늘어나게 할 수 있을까?\n\n## Environments\n\n- EKS\n- Node Spec (t3.small)\n    - 2 CPU\n    - 2 MEM\n- Karpenter\n\n## Namespace / Secret 생성\n\n```sh\nkubectl create namespace action\n\nkubectl create secret generic github-runner-secret \\\n  --namespace action \\\n  --from-literal=token=YOUR_GITHUB_TOKEN\n```\n\n## Karpetner 설정\n\n- ttlSecondsAfterEmpty: 30 ## 인스턴스가 비워지면 30초후 삭제\n\n## 설정방법 (Action Runner)\n\n![1](./public/1.png)\n\n![2](./public/2.png)\n\n![3](./public/3.png)\n- Secret에 토큰 저장하기\n\n![4](./public/4.png)\n![5](./public/5.png)\n\n## Trouble Shooting...\n\n### EC2 Node Issue\n\n- Node Status가 NotReady\n- EC2 Instance Profile이 없어서 -\u003e Kubelet이 EKS Control Plane에 접근 불가\n- \u003cb\u003eInstanceProfile을 직접 지정\u003c/b\u003e\n\n![ts-1](./public/ts-1.png)\n![ts-2](./public/ts-2.png)\n\n```sh\n\n## karpenter log 분석\nkubectl -n karpenter logs deployment/karpenter\n\n## karpenter.yaml\nprovider:\n    instanceProfile: eks-karpenter-action-instance-profile\n```\n\n### EC2 NodePool 없음 (진행 중)\n\n- 6개의 노드가 실패 후 -\u003e karpenter가 nodeclaim을 기준으로 노드를 생성하려고 시도\n\n```sh\n  Warning  FailedScheduling  14s   default-scheduler  0/6 nodes are available: 6 Insufficient cpu. preemption: 0/6 nodes are available: 6 No preemption victims found for incoming pod.\n  Normal   Nominated         13s   karpenter          Pod should schedule on: nodeclaim/default-tn8fg\n```\n\n- k describe nodeclaims.karpenter.sh \u003cnode-claim\u003e\n\n![ts-4](./public/ts-4.png)\n\n- nodeClaim 에 구성된 노드가 EKS 클러스터에 \u003cb\u003ejoin\u003c/b\u003e 되지 않았음 (Node not registerd with cluster)\n- nodeClaim으로 구성된 Ec2에 들어가서 보면 아래와 같은 에러가 발생하고 있음\n```sh\n 1498 csi_plugin.go:887] Failed to contact API server when waiting for CSINode publishing: Unauthorized\n```\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fk8s-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzkfmapf123%2Fk8s-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzkfmapf123%2Fk8s-github-action/lists"}