Files
feedc0de fa128b0d53
Validate and deploy MetalLB configuration / Validate manifests (push) Successful in 17s
Validate and deploy MetalLB configuration / Deploy site configuration (push) Successful in 18s
Introduce CI for this Repo too
2026-09-04 16:04:52 +02:00

75 lines
1.5 KiB
YAML

# Bootstrap once with an administrator identity. CI owns only the existing
# site-specific MetalLB configuration, not the upstream installation or RBAC.
apiVersion: v1
kind: ServiceAccount
metadata:
name: metallb-config-deployer
namespace: metallb-system
automountServiceAccountToken: false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: metallb-config-deployer
namespace: metallb-system
rules:
- apiGroups:
- metallb.io
resources:
- ipaddresspools
resourceNames:
- default
verbs:
- get
- patch
- update
- apiGroups:
- metallb.io
resources:
- l2advertisements
resourceNames:
- l2
verbs:
- get
- patch
- update
- apiGroups:
- apps
resources:
- deployments
resourceNames:
- controller
verbs:
- get
- apiGroups:
- apps
resources:
- daemonsets
resourceNames:
- speaker
verbs:
- get
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: metallb-config-deployer
namespace: metallb-system
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: metallb-config-deployer
subjects:
- kind: ServiceAccount
name: metallb-config-deployer
namespace: metallb-system
---
apiVersion: v1
kind: Secret
metadata:
name: metallb-config-deployer-token
namespace: metallb-system
annotations:
kubernetes.io/service-account.name: metallb-config-deployer
type: kubernetes.io/service-account-token