Asking for help? Comment out what you need so we can get more information to help you!
Cluster information:
Kubernetes version:1.33
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:helm
Host OS:ubuntu
CNI and version:
CRI and version:
You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-api
annotations:
nginx.ingress.kubernetes.io/auth-tls-verify-client: “on”
nginx.ingress.kubernetes.io/auth-tls-secret: “default/my-ca-secret”
nginx.ingress.kubernetes.io/configuration-snippet: |
if ($ssl_client_s_dn !~ “CN=my-expected-client”) {
return 403;
}
spec:
rules:
- host: api.example.com
http:
paths:-
path: /secure-endpoint
pathType: Prefix
backend:
service:
name: my-service
port:
number: 80i just cannot seem to get any snippets working here for nginx ingress whatsoever i dont get an address
-