Self-hosted Github Actions Runners on kubernetes
When using Action Runner Controller (ARC) to run self-host your GitHub Actions Runners. You need to ensure that the Service and Pod CIDRs of the kind cluster created by argocd-diff-preview
don't overlap with your host cluster's CIDRs.
The default CIDRs are:
Service | CIDR |
---|---|
Service | 10.96.0.0/16 |
Pod | 10.244.0.0/16 |
To configure kind:
- Create a file in your repo, for instance
hack/kind.yaml
, with the following content: - Add the flag
--kind-options '--config /base-branch/hack/kind.yaml'
toargocd-diff-preview
.- name: Generate Diff run: | docker run \ --network=host \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $(pwd)/main:/base-branch \ -v $(pwd)/pull-request:/target-branch \ -v $(pwd)/output:/output \ -e TARGET_BRANCH=${{ github.head_ref }} \ -e REPO=${{ github.repository }} \ dagandersen/argocd-diff-preview:v0.1.8 --kind-options '--config /base-branch/hack/kind.yaml'