To disable the TLS section in a NevisIngress resource in Kubernetes, follow these steps:
1. Edit the NevisIngress Resource
Remove the tls section from the resource definition. This ensures no TLS configuration is applied.
Example:
apiVersion: nevis.ch/nevis-ingress
kind: NevisIngress
metadata:
name: example-nevisingress
spec:
# Remove the entire 'tls' section below
# tls:
# - secretName: your-tls-secret
# hosts:
# - your.domain.com
rules:
- host: your.domain.com
http:
paths:
- path: /
backend:
serviceName: your-service
servicePort: 80
2. Remove TLS-Related Annotations
Ensure there are no annotations enforcing TLS/HTTPS redirects. Check for and remove annotations like:
annotations:
nevis.ch/force-ssl-redirect: "true" # Remove or set to "false"
kubernetes.io/tls-acme: "true" # Remove if present
3. Apply the Updated Configuration
kubectl apply -f your-nevisingress.yaml
4. Verify Changes
5. Adjust Load Balancer/Ingress Controller Settings
If using a cloud load balancer or global ingress settings:
- Ensure no default TLS is enforced at the controller level.
- Modify the Nevis Ingress Controller's Helm values or deployment manifest to avoid global TLS enforcement.
Key Notes:
- HTTP Traffic: After removing TLS, traffic will be served over HTTP (port 80).
- Security Consideration: Disabling TLS is not recommended for production. Use only in development or internal environments.
- Nevis Version Specifics: Consult your Nevis documentation for version-specific behaviors, as annotations/features may vary.
By following these steps, the TLS configuration for the specified NevisIngress resource will be disabled.