stack/kustomizations/ingress-nginx/kustomization.yaml

39 lines
848 B
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: ingress-nginx
commonLabels:
app.kubernetes.io/name: ingress-nginx
resources:
- controller/
- webhook/
- namespace.yaml
- tcp-services-cm.yaml
configMapGenerator:
- name: ingress-nginx-controller
options:
disableNameSuffixHash: true
replacements:
- source:
kind: Certificate
fieldPath: metadata.namespace
targets:
- select:
kind: ValidatingWebhookConfiguration
fieldPaths:
- metadata.annotations.[cert-manager.io/inject-ca-from]
options:
delimiter: /
- source:
kind: Service
fieldPath: metadata.namespace
name: ingress-nginx-controller-admission
targets:
- select:
kind: Certificate
name: ingress-nginx-admission
fieldPaths:
- spec.dnsNames.1
options:
delimiter: .
index: 1