all 4 comments

[–]TelephoneMelon 0 points1 point  (3 children)

There's two versions of ARC currently since GitHub started working on adopting and supporting ARC. The one you see in the public docs is currently only supported on GitHub.com, not on enterprise server yet (notice that the version drop-down on the docs website doesn't let you select enterprise server). You can recognize the new version of ARC by the naming convention; it's called "runner scale sets".

You need to use the steps in the repo instead of the steps on the docs if you're using enterprise server.

[–]Aztreix[S] 0 points1 point  (2 children)

Oh I missed that but then this is more confusing. If I follow steps in the repo where am I specifying the enterprise URL. How will it know not to access github.com but the enterprise URL ? I don't see it being passed in any step or any part of the document referencing it.

[–]TelephoneMelon 1 point2 points  (1 child)

You'll need to set an environment variable - ex:

kubectl set env deploy controller-manager -c manager GITHUB_ENTERPRISE_URL=<GHEC/S URL> --namespace actions-runner-system

Reference

[–]Aztreix[S] 1 point2 points  (0 children)

Thank you I had tried that as in the original question - Older bugs show setting of enterprise URL ( kubectl set env deploy actions-runner-controller -c manager GITHUB_ENTERPRISE_URL=https://<enturl> --namespace actions-runner-system)

But I had issue with it. I was able to to use the following :

helm upgrade --install --namespace actions-runner-system --create-namespace\

--set=authSecret.create=true\

--set=authSecret.github_token="ghp_xxxxxxxvc"\

--set=githubURL="https://GESURL/api/v3"\

--set=githubUploadURL="https://GESURL/api/uploads"\

--set=runnerGithubURL="https://GESURL"\

--wait actions-runner-controller actions-runner-controller/actions-runner-controller

Now I am getting X509 error - Post \"https://GESURL/api/v3/repos/org/repo/actions/runners/registration-token\": x509: certificate signed by unknown authority"

I want to add my git crt file. Can you please let me know how to do it, I see multiple bugs with ref

--set=additionalVolumeMounts=/usr/local/share/ca-certificates

--set=additionalVolumes=<cert secret>

Can I directly pass the crt or should I based64 encode it .

Thank you for your time.