Hostname-only ingress example
Learn about configuring an Ingress resource using TLS files generated by CFM Operator.
This YAML snippet configures an Ingress resource for accessing the NiFi Web UI. It uses the TLS
files generated by a CFM Operator created Certificate as defined in
spec.security.ingressCertGen
. The supplied annotations are for the
ingress-nginx Ingress controller. The affinity settings enable a persistent session so that UI
interactions go to the same NiFi node in the cluster. The backend-protocol setting is needed
for when NiFi is configured to be secure, as it will reject any non-HTTPS connection
attempts.
spec:
uiConnection:
type: Ingress
ingressConfig:
ingressClassName: myIngressClass
ingressTLS:
- hosts:
- nifi.localhost
secretName: mynifi-ingress-cert
annotations:
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/affinity-mode: persistent
nginx.ingress.kubernetes.io/backend-protocol: HTTPS