I am learning kubernetes and I am running into some issues with k3d.
Also English is not my first language, my apologies for any mistakes I could have done.
I want to host a wordpress website in a k3d cluster and reach it using an url but it currently not working and I really do not know why… It seems like the Traefik service is unable to find endpoints.
I have followed this tutorial https://kubernetes.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/ after creating a cluster with the command ‘k3d cluster create mycluster’.
Aslo I added an Ingress :
Ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wordpress-ingress
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
spec:
rules:
- host: mydomain.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: wordpress
port:
number: 80
And I added this file in the kustomization.yaml file.
Here are the logs from traefik:
time=”2024-05-01T14:36:59Z” level=info msg=”Configuration loaded from flags.” time=”2024-05-01T14:37:03Z” level=error msg=”Skipping service: no endpoints found” namespace=default serviceName=wordpress providerName=kubernetes servicePort=”&ServiceBackendPort{Name:,Number:80,}” ingress=wordpress-ingress time=”2024-05-01T14:37:03Z” level=error msg=”Skipping service: no endpoints found” servicePort=”&ServiceBackendPort{Name:,Number:80,}” namespace=default serviceName=wordpress providerName=kubernetes ingress=wordpress-ingress
time=”2024-05-01T14:37:07Z” level=error msg=”Skipping service: no endpoints found” namespace=default serviceName=wordpress servicePort=”&ServiceBackendPort{Name:,Number:80,}” providerName=kubernetes ingress=wordpress-ingress
Here is the result of kubectl get endpoints wordpress :
NAME ENDPOINTS AGE
wordpress 10.42.0.11:80 58m
The DNS record has been down more than 2 days ago. I obtain a ‘timeout error’ when I try to reach ‘mydomain.com’ (not actually the name) with my web browser.
Can someone help me with this please?
QuentinDeAbreu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.