KubeVirt RBAC Webhook v0.1.0
Installation
Install with a single command:
kubectl apply -f https://github.com/mhenriks/kubevirt-rbac-webhook/releases/download/v0.1.0/install.yamlOr install the latest version:
kubectl apply -f https://github.com/mhenriks/kubevirt-rbac-webhook/releases/latest/download/install.yamlPrerequisites
- Kubernetes cluster (v1.28+)
- KubeVirt installed
- cert-manager installed (for webhook TLS certificates)
What's Included
- ✅ ValidatingWebhookConfiguration
- ✅ Fine-grained ClusterRoles for VM management
- ✅ Webhook deployment with TLS
- ✅ RBAC permissions
- ✅ Service and networking configuration
Quick Start
- Install cert-manager (if not already installed):
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.0/cert-manager.yaml
kubectl wait --for=condition=ready pod -l app.kubernetes.io/instance=cert-manager -n cert-manager --timeout=60s- Install the webhook:
kubectl apply -f https://github.com/mhenriks/kubevirt-rbac-webhook/releases/download/v0.1.0/install.yaml- Verify the installation:
# Check webhook pod
kubectl get pods -n kubevirt-rbac-webhook-system
# Check ClusterRoles
kubectl get clusterroles | grep kubevirt.io:vm-
# Check webhook configuration
kubectl get validatingwebhookconfigurations | grep kubevirt-rbacUninstall
kubectl delete -f https://github.com/mhenriks/kubevirt-rbac-webhook/releases/download/v0.1.0/install.yamlDocumentation
Container Image
Multi-platform image (linux/amd64, linux/arm64, linux/s390x, linux/ppc64le):
ghcr.io/mhenriks/kubevirt-rbac-webhook:v0.1.0