You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi so Im trying to run self hosted runners on my local Kubernetes environment. I'm able to configure the runners for repository and organization level but struggling to set it up for enterprise level. I know for enterprise level we should only use classic PAT to connect to Github and have a set of required permissions on the token.
Here are the permissions that I have set on my PAT(I know a lot of them are unnecessary but I just had them on in case it would solve my problem)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi so Im trying to run self hosted runners on my local Kubernetes environment. I'm able to configure the runners for repository and organization level but struggling to set it up for enterprise level. I know for enterprise level we should only use classic PAT to connect to Github and have a set of required permissions on the token.
Here are the permissions that I have set on my PAT(I know a lot of them are unnecessary but I just had them on in case it would solve my problem)
Here is my runner-deployment.yaml
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: k8s-runners-new
namespace: actions
spec:
template:
spec:
enterprise: cars
labels:
- my-custom-runner
2023-07-01T21:15:26Z ERROR runner Failed to get new registration token {"runner": "k8s-runners-new-p97ld-xf22q", "error": "failed to create registration token: POST https://api.github.com/enterprises/cars/actions/runners/registration-token: 404 Not Found []"}
github.com/actions/actions-runner-controller/controllers/actions%2esummerwind%2enet.(*RunnerReconciler).updateRegistrationToken
github.com/actions/actions-runner-controller/controllers/actions.summerwind.net/runner_controller.go:456
github.com/actions/actions-runner-controller/controllers/actions%2esummerwind%2enet.(*RunnerReconciler).processRunnerCreation
github.com/actions/actions-runner-controller/controllers/actions.summerwind.net/runner_controller.go:292
github.com/actions/actions-runner-controller/controllers/actions%2esummerwind%2enet.(*RunnerReconciler).Reconcile
github.com/actions/actions-runner-controller/controllers/actions.summerwind.net/runner_controller.go:147
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:122
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:323
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:274
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:235
2023-07-01T21:15:26Z DEBUG events Updating registration token failed {"type": "Warning", "object": {"kind":"Runner","namespace":"actions","name":"k8s-runners-new-p97ld-xf22q","uid":"03170dc3-3832-4e23-97cb-9c8869324620","apiVersion":"actions.summerwind.dev/v1alpha1","resourceVersion":"44994"}, "reason": "FailedUpdateRegistrationToken"}
I also have the following policies set on enterprise level

Thank you!!!
Beta Was this translation helpful? Give feedback.
All reactions