nutritious-application-85076
07/05/2022, 12:00 PMhttp 404
? I can access the service using kubectl port-foward
and address <http://localhost:7007/catalog>
miniature-advantage-69986
07/05/2022, 1:27 PMnutritious-application-85076
07/05/2022, 1:33 PMingress-nginx
and where I changed the ingressClass and added <http://traefik.ingress.kubernetes.io/router.entrypoints|traefik.ingress.kubernetes.io/router.entrypoints>: web
miniature-advantage-69986
07/05/2022, 2:01 PMkubectl create namespace nginx
# create a deployment
kubectl --namespace nginx create deployment nginx --image=nginx
# now create a service
kubectl --namespace nginx expose deployment nginx --port=80 --target-port=80 --name nginx
# now create the ingress
kubectl --namespace nginx create ingress nginx --rule="nginx.localhost/=nginx:80"
nutritious-application-85076
07/05/2022, 3:09 PMminiature-advantage-69986
07/05/2022, 3:29 PMIP=$(kubectl get node -l <http://node.kubernetes.io/instance-type=k3s|node.kubernetes.io/instance-type=k3s> -o json | jq -r '.items[0].status.addresses[] | select(.type=="InternalIP").address')
nutritious-application-85076
07/05/2022, 3:40 PMkubectl -n kube-system logs traefik-d497b4cb6-hfxgm
time="2022-07-05T15:13:46Z" level=info msg="Configuration loaded from flags."
<http://ingress.networking.k8s.io/my-backstage|ingress.networking.k8s.io/my-backstage> edited
kind: Ingress
metadata:
annotations:
<http://traefik.ingress.kubernetes.io/router.entrypoints|traefik.ingress.kubernetes.io/router.entrypoints>: web
name: my-backstage
namespace: backstage
spec:
ingressClassName: traefix
rules:
- host: <http://backstage.192.168.205.2.sslip.io|backstage.192.168.205.2.sslip.io>
http:
paths:
- backend:
service:
name: my-backstage
port:
number: 7007
path: /
pathType: Prefix
miniature-advantage-69986
07/05/2022, 3:50 PMkubectl -n kube-system logs -l app=traefik
{"level":"info","msg":"Updated status on ingress nginx/nginx","time":"2022-07-05T14:53:25Z"}
{"level":"info","msg":"Server configuration reloaded on :443","time":"2022-07-05T14:53:25Z"}
{"level":"info","msg":"Server configuration reloaded on :9100","time":"2022-07-05T14:53:25Z"}
{"level":"info","msg":"Server configuration reloaded on :80","time":"2022-07-05T14:53:25Z"}
{"level":"info","msg":"Updated status on ingress nginx/whoami","time":"2022-07-05T15:44:48Z"}
{"level":"info","msg":"Server configuration reloaded on :443","time":"2022-07-05T15:44:48Z"}
{"level":"info","msg":"Server configuration reloaded on :9100","time":"2022-07-05T15:44:48Z"}
{"level":"info","msg":"Server configuration reloaded on :80","time":"2022-07-05T15:44:48Z"}
nutritious-application-85076
07/05/2022, 3:50 PM<http://app.kubernetes.io/instance|app.kubernetes.io/instance>: traefik
miniature-advantage-69986
07/05/2022, 3:51 PMnutritious-application-85076
07/05/2022, 3:51 PMminiature-advantage-69986
07/05/2022, 3:54 PMnutritious-application-85076
07/05/2022, 3:56 PMminiature-advantage-69986
07/05/2022, 4:02 PMkubectl -n kube-system get pods --show-labels
i get this:
NAME READY STATUS RESTARTS AGE LABELS
...
traefik-799bbc5bd6-8gktn 1/1 Running 8 35d app=traefik,chart=traefik-1.81.001,grafzahl=counted,heritage=Helm,pod-template-hash=799bbc5bd6,release=traefik
Maybe you have a typo in the used label, i do not have a label with <http://app.kubernetes.io/instance=traefik|app.kubernetes.io/instance=traefik>
nutritious-application-85076
07/05/2022, 4:04 PMtraefik-d497b4cb6-hfxgm 1/1 Running 0 50m <http://app.kubernetes.io/instance=traefik,app.kubernetes.io/managed-by=Helm,app.kubernetes.io/name=traefik,helm.sh/chart=traefik-10.19.300,pod-template-hash=d497b4cb6|app.kubernetes.io/instance=traefik,app.kubernetes.io/managed-by=Helm,app.kubernetes.io/name=traefik,helm.sh/chart=traefik-10.19.300,pod-template-hash=d497b4cb6>
r-d
and now I can see the logs. Maybe I don have enough memory/cpu on my mac to run the r-d VM