Welcome to the Linux Foundation Forum!

Unable to setup a working Haproxy Ingress

Options

Exercise 6.2: Configure Ingress Controller:
I've followed the instructions and got errors which I attempted to fix with the workingClusterRole.yaml and it failed as well.
then I was able to fix it with kubectl edit clusterrole, adding the following:

  • apiGroups:
    • coordination.k8s.io
      resources:
    • leases
      verbs:
    • get
    • create
    • update

However, even after that I still can't get the result expected in the lab, instead I curl the tester pod getting a 404 url not found

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
creationTimestamp: "2023-08-20T21:09:09Z"
generation: 2
name: tester
namespace: default
resourceVersion: "7394586"
uid: 0e69cd0c-b26c-4de7-85bb-212a3429db5e
spec:
rules:
- host: nginx.192.168.122.130.nip.io
http:
paths:
- backend:
service:
name: tester
port:
number: 80
path: /
pathType: Prefix
status:

loadBalancer: {}

apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2023-08-20T04:41:23Z"
labels:
app: tester
name: tester
namespace: default
resourceVersion: "7280721"
uid: ce83d168-ff01-4d19-9dbf-7ab222713024
spec:
clusterIP: 10.102.100.161
clusterIPs:
- 10.102.100.161
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: tester
sessionAffinity: None
type: ClusterIP
status:

loadBalancer: {}

The Master Node is labelled with ingress-controller role


Ip of master node 192.168.122.130

Wondering if there is a something I missed in the configuration?

Categories

Upcoming Training