To disable the TLS section in a NevisIngress resource in Kubernetes, you generally need to remove or omit the tls section from the resource manifest. The exact approach can depend on the version and configuration of the Nevis Ingress Controller you are using, but the principle is the same as with standard Kubernetes Ingress resources.
Example: Disabling TLS
Suppose your current NevisIngress resource looks like this:
apiVersion: nevis.nevissec.com/v1
kind: NevisIngress
metadata:
name: my-ingress
spec:
rules:
- host: myapp.example.com
http:
paths:
- path: /
backend:
serviceName: my-service
servicePort: 80
tls:
- hosts:
- myapp.example.com
secretName: my-tls-secret
To disable TLS, simply remove the tls section:
apiVersion: nevis.nevissec.com/v1
kind: NevisIngress
metadata:
name: my-ingress
spec:
rules:
- host: myapp.example.com
http:
paths:
- path: /
backend:
serviceName: my-service
servicePort: 80
# No 'tls' section here
Additional Notes
- No TLS section means the Ingress will only listen on HTTP (port 80), not HTTPS (port 443).
- If you are using annotations or custom fields specific to Nevis, make sure none of them enforce TLS.
- If you are using a Helm chart or automation, ensure the values file does not set any TLS-related values.
Apply the Change
After editing your manifest, apply it with:
kubectl apply -f your-nevisingress.yaml
Troubleshooting
- If you still see HTTPS endpoints, check for other Ingress resources or global settings in your Nevis Ingress Controller.
- Some controllers may require a restart or reload after config changes.
If you have a specific NevisIngress CRD version or additional custom fields, please share your manifest for more tailored advice!