billions-kilobyte-26686
07/16/2025, 6:08 PMapiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
name: main-http
namespace: demo-hw
annotations:
<http://traefik.ingress.kubernetes.io/router.entrypoints|traefik.ingress.kubernetes.io/router.entrypoints>: web
<http://traefik.ingress.kubernetes.io/router.middlewares|traefik.ingress.kubernetes.io/router.middlewares>: traefik-custom-redirect-to-https-not-permanent@kubernetescrd
spec:
ingressClassName: traefik
rules:
- host: <http://demo-hw.logilibre-vert.ch|demo-hw.logilibre-vert.ch>
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: main
port:
number: 8080
https
apiVersion: <http://networking.k8s.io/v1|networking.k8s.io/v1>
kind: Ingress
metadata:
name: main-https
namespace: demo-hw
annotations:
<http://traefik.ingress.kubernetes.io/router.entrypoints|traefik.ingress.kubernetes.io/router.entrypoints>: websecure
<http://traefik.ingress.kubernetes.io/router.tls.certresolver|traefik.ingress.kubernetes.io/router.tls.certresolver>: default
spec:
ingressClassName: traefik
rules:
- host: <http://demo-hw.logilibre-vert.ch|demo-hw.logilibre-vert.ch>
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: main
port:
number: 8080
tls:
- hosts:
- <http://demo-hw.logilibre-vert.ch|demo-hw.logilibre-vert.ch>
Can someone provide me a working example ?creamy-pencil-82913
07/16/2025, 6:09 PMcreamy-pencil-82913
07/16/2025, 6:09 PMcreamy-pencil-82913
07/16/2025, 6:10 PMbillions-kilobyte-26686
07/16/2025, 6:10 PMkubectl get ingresss
gives !creamy-pencil-82913
07/16/2025, 6:10 PMcreamy-pencil-82913
07/16/2025, 6:10 PMbillions-kilobyte-26686
07/16/2025, 6:10 PMcreamy-pencil-82913
07/16/2025, 6:10 PMbillions-kilobyte-26686
07/16/2025, 6:11 PMkubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
main-http traefik <http://demo-hw.logilibre-vert.ch|demo-hw.logilibre-vert.ch> 192.168.0.22 80 4d11h
main-https traefik <http://demo-hw.logilibre-vert.ch|demo-hw.logilibre-vert.ch> 192.168.0.22 80, 443 4d11h
billions-kilobyte-26686
07/16/2025, 6:12 PMbillions-kilobyte-26686
07/16/2025, 6:15 PMcreamy-pencil-82913
07/16/2025, 6:18 PM<http://traefik.ingress.kubernetes.io/router.entrypoints|traefik.ingress.kubernetes.io/router.entrypoints>
> See entry points for more information.
> traefik.ingress.kubernetes.io/router.entrypoints: ep1,ep2
If you want it to use multiple entry points, you should specify both of them in the annotation on the ingress resource. This is covered in the docs.billions-kilobyte-26686
07/18/2025, 8:46 AMsparse-vr-27407
07/21/2025, 11:21 AMkubectl describe -n demo-hw <your-ingress-resource>
That should give some text summary what is going on with those Ingress-es. The speciality of using the API service and declarative approach is that when you get an "OK" response from kubectl, that only means the API call went through and your request passed local and server-side validations, and stored for future processing. Even if that processing happens the next moment later.
If anything goes sideways during the reactions to your manifest creation, there is no channel to get back that error message to the caller. You can get the list of the events, use "describe" on the resources, use "get" on the resources or if its a pod, then you can get the logs and/ or kubectl exec -ti
to the pod itself for debugging.