doc: show kustomization

This commit is contained in:
2025-10-15 12:16:30 +02:00
parent 30e0debf95
commit 46a2c5cdaa
+26
View File
@@ -58,3 +58,29 @@ The webhook is deployed using standard Kubernetes manifests:
- Service - Service
- MutatingWebhookConfiguration - MutatingWebhookConfiguration
- ImagePullSecret (to be injected into pods) - ImagePullSecret (to be injected into pods)
## Production Configuration
For production use, you should create a configmap with your specific configuration. Create a kustomization.yaml file like this:
```yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: imagepullsecrets-system
resources:
- imagepullsecret.yaml
configMapGenerator:
- name: imagepullsecrets-webhook-config
envs:
- imagepullsecret.env
options:
disableNameSuffixHash: true
```
And create an `imagepullsecret.env` file with your environment variables:
```env
REGISTRY_MAPPINGS=harbor.yourdomain.com:regcred-harbor
IGNORED_REGISTRIES=k8s.gcr.io,gcr.io,quay.io,docker.io
SOURCE_NAMESPACE=imagepullsecrets-system
```