In Kubernetes, every namespace needs its own image pull secret to fetch private container images. Manually creating and updating these secrets across dozens of namespaces becomes:
Define a single ClustRegCred
custom resource with your registry credentials and target
namespaces.
The operator then:
apiVersion: registry.example.com/v1
kind: ClustRegCred
metadata:
name: sample-clustregcred
spec:
registry: https://index.docker.io/v1/
username: your-user
password: your-pass
secretName: my-image-pull-secret
namespaces:
- project-alpha
- project-beta
Future enhancements and alternative âsecret injectionâ patterns under consideration:
Have other ideas? Let me know!