a163c26860
The IUCLabs terraform repos plan/apply from GitHub Actions, but the existing scale sets only reach public :443 and Vault, so they cannot reach the Consul state backend or the internal provider endpoints.
- add `iuclabs-infra` scale set (runs-on `iuclabs-infra`, max 2 runners)
- add `infra` hook mode allowing only IUCLabs/terraform-{git,vault,artifactapi,authentik,binarylane}
- allow egress to Consul, Vault, traefik-internal/external, rke2-ingress-nginx, authentik-server and public :443
- extend runner hook tests for the infra mode
Reviewed-on: #591
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
25 lines
440 B
YAML
25 lines
440 B
YAML
---
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
resources:
|
|
- namespace.yaml
|
|
- vaultauth.yaml
|
|
- vaultstaticsecret.yaml
|
|
- networkpolicy.yaml
|
|
- rbac.yaml
|
|
|
|
components:
|
|
- components/iuclabs-k8s
|
|
- components/iuclabs-infra
|
|
- components/iuclabs-release
|
|
|
|
generatorOptions:
|
|
disableNameSuffixHash: true
|
|
|
|
configMapGenerator:
|
|
- name: runner-hooks
|
|
namespace: iuclabs-runners
|
|
files:
|
|
- job-started.sh
|