LAB 10.1 Ingress not accessible on port 80
My environment:

Comments
-


Doesn't work as expected using the master node IP using port 80

Works with Cluster IP using port 30024:
and Works with EP IP
0 -
My apologies @serewicz. I had accidentally posted the question without getting the additional information.
All of this is after creating the secondapp deployment, exposing via node port as in 10.1 lab, creating the ingress.rbac.yaml, then creating the traefik-ds.yaml, then the ingress.rule.yaml provided. The pieces all seem to be there. Could it be that I don't have a public IP listed with I use kubectl get nodes on these local vms? Do I need to do something else to expose over the node's ip of 192.168.1.210 on the master node?
0 -
I'm able to see these running

All three pods look fine in logs

Looks like the ingress-test is pointing to the endpoint created when exposing the secondapp deployment in the lab

Thank you for your help. I really appreciate it.
0 -
I am running these on a local Ubuntu 18.04 server that is hosting the virtual nodes through KVM. All the commands are being ran on the k8s-master node.
0 -
Running ufw status shows that the firewall is inactive on the nodes.
0 -
Correct I meant the firewall is disabled on the VM nodes that make up the kubernetes cluster although it is the same on the physical server hosting the VMs. The networking is configured as such that the VMs are on my local network as well and not a NAT'd virtual network. Just to clarify how I can reach the NGINX page thus far.
From the Physical Server or any machine on my network I can curl to the k8s-master node (192.168.1.210) using the NodePort port 30728 created from exposing the deployment in the lab. I can also access this in the browser using machines on my network
This also work from on the k8s-master vmcurl -H "Host: example.com" http://192.168.1.210:30728From the k8s-master VM I can also use the secondapp service clusterip to reach on port 80
curl -H "Host: example.com" http://10.101.141.180
or the Endpoint created by the service can be used to reach on port 80
curl -H "Host: www.example.com" http://192.168.107.198/
I just cannot access on port 80 on my VM's 192.168.1.210 ip which is the ip on my local network.
0 -
Hi @crumdev ,
I have seen similar issues reported in the forum. You may be experiencing them because your Pod subnet and Nodes subnet overlap. Calico by default uses 192.168.0.0/16 subnet for Pod networking. From your detailed outputs, it seems that your Node IPs fall within that same range. Within your iptables this may cause some confusion with traffic routing rules.
What I remember that worked in such situations, was to ensure that the IP ranges do not overlap for Pods and Nodes.
Regards,
-Chris0 -
Thank you @chrispokorni. I will try to reconfigure with a different non-overlapping subnet range. Since this is just a lab would there be any harm in using a smaller range like /24
0 -
A smaller range should work just fine. As long as the two ranges do not overlap, and the configuraion in
calico.yamlis consistent with the property set in thekubeadm-config.yamlfile when you initialize the master node, you should be good to go.Regards,
-Chris0 -
I have similar problem during ex 7.2, except my nodes ip ranges do not overlap with calico ranges. I can see kubernetes api page on port 6443 but I cannot access secondapp server on prt 80. (I can see it at calico IP).
I have some DNS forwarding implemented on my end, but I don't think the artificial header has anything to do with.
What should I look for?
Thank you in advance!
0 -
My yaml files looks correct, I have no firewall problem, but I noticed I have no ingress pod running:
kubectl describe --namespace=kube-system pod traefik-ingress-controller-ltgn9
Name: traefik-ingress-controller-ltgn9
Namespace: kube-system
Priority: 0
Node: kw1/10.1.10.31
Start Time: Wed, 29 Apr 2020 21:48:49 +0000
Labels: controller-revision-hash=5cd9d9799d
k8s-app=traefik-ingress-lb
name=traefik-ingress-lb
pod-template-generation=1
Annotations:
Status: Running
IP: 10.1.10.31
IPs:
IP: 10.1.10.31
Controlled By: DaemonSet/traefik-ingress-controller
Containers:
traefik-ingress-lb:
Container ID: docker://c4340c03cefd1d8a8d3f754cd747e7b555c78d698bfcbe813577a1dec6b5cb23
Image: traefik
Image ID: docker-pullable://traefik@sha256:ad4442a6f88cf35266542588f13ae9984aa058a55a518a87876e48c160d19ee0
Ports: 80/TCP, 8080/TCP
Host Ports: 80/TCP, 8080/TCP
Args:
--api
--kubernetes
--logLevel=INFO
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Thu, 30 Apr 2020 00:19:16 +0000
Finished: Thu, 30 Apr 2020 00:19:16 +0000
Ready: False
Restart Count: 34
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from traefik-ingress-controller-token-rqwrs (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
traefik-ingress-controller-token-rqwrs:
Type: Secret (a volume populated by a Secret)
SecretName: traefik-ingress-controller-token-rqwrs
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/disk-pressure:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/network-unavailable:NoSchedule
node.kubernetes.io/not-ready:NoExecute
node.kubernetes.io/pid-pressure:NoSchedule
node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unschedulable:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Pulling 13m (x33 over 153m) kubelet, kw1 Pulling image "traefik"
Warning BackOff 3m36s (x698 over 153m) kubelet, kw1 Back-off restarting failed container0 -
Hi Stefan,
Please read carefully the exercise. It seems you may have missed some of the key details needed to spec the traefik image.
Regards,
-Chris0 -
Ok , now I change the container image value to traefik:v1.7 on traefik-ds.yaml and the pods started, I can access the server on my nodeIP port 80, and I get the nginx welcome page from curl using the required header.
Stefan
0 -
Hi Stefan,
I am glad that you were able to find all the needed configuration options in the lab exercise, and that the resources worked as expected once you followed the instructions as presented in the lab.
Regards,
-Chris0
Categories
- All Categories
- 177 LFX Mentorship
- 177 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 4 Cloud & Containers Training
- 1 Cybersecurity Training
- 2 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 2 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 769 Linux Distributions
- 81 Debian
- 68 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 955 Programming and Development
- 310 Kernel Development
- 627 Software Development
- 983 Software
- 375 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
- 1.4K LFS258 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)