Currently Kubernetes services are created in single stack mode by default, defaulting to primary address family of the cluster.
This is a mutating webhook admission controller that adds ipFamilyPolicy: PreferDualStack
to all newly created services if the field is not explicitely specified, making dual-stack the default.
kubectl apply -f https://raw.githubusercontent.com/tibordp/prefer-dual-stack-webhook/master/deploy.yaml
Before | Afrer |
---|---|
```bash
> kubectl apply -f - < |
```bash
> kubectl apply -f - < |
Admission controller webhook boilerplate adapted from douglasmakey/admissioncontroller by Douglas Makey Mendez Molero.