Lab 11.2 "bad gateway" and the fix that worked for me
When following the steps in Lab 11.2, all of a sudden at Step 11. after "adding an annotation to the ingress pods for Linkerd" my previously working Ingress started replying with "bad gateway" error messages. The downgrading approach didn't work for me. Instead, below are the steps that did work for me.
These steps are applicable to Linkerd version 2.13.0
student@cp:~$ linkerd version Client version: stable-2.13.0 Server version: stable-2.13.0
The lab 11.2 exercise instructions use linkerd inject --ingress - to mesh the ingress pods. Whereas the Linked instructions for the ingress-nginx ingress describe a different approach that requires editing values.yaml in two places.
1. Setting kind: DaemonSet as per the lab instructions.
2. Setting podAnnotations which in my values.yaml looks like this:
# -- Annotations to be added to controller pods
##
podAnnotations:
linkerd.io/inject: enabled
After making these edits to values.yaml and completing step 5.
student@cp: ̃/ingress-nginx$ helm install myingress .
The ingress controllers will both be up and running and meshed and visible in Linkerd.
Next at Step 7. when applying the ingress rules, I used this ingress.yaml config:
student@cp:~/ingress-nginx$ cat ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-test
annotations:
nginx.ingress.kubernetes.io/service-upstream: "true"
namespace: default
spec:
ingressClassName: nginx
rules:
- host: www.external.com
http:
paths:
- backend:
service:
name: web-one
port:
number: 80
path: /
pathType: ImplementationSpecific
status:
loadBalancer: {}
The use of kubernetes.io/ingress.class: nginx is now deprecated so instead add the ingressClassName: nginx spec field as described in the ingress-nginx documentation.
The other change is nginx.ingress.kubernetes.io/service-upstream: "true" in the annotations.
I'm not certain if one or a combinations of the options gets Lab 11.2 working, but all together they worked for me.
Comments
-
Thanks for the notes, I stuck at the linkerd injection part as well. The curl cmd gives bad gateway error after the injection. I followed your instruction and made it through the lab without errors.
0 -
This can be a good opportunity for support to re-evaluate 11.2 lab guide as the current lab guide doesn't work.
0 -
I re-do the exercise and thanks a lot for the finding! madtechsupport
0
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)
