Skip to content

Commit 60fafc7

Browse files
supersebDenise
authored andcommitted
Add extra ingress troubleshoot command
1 parent 3f1120f commit 60fafc7

File tree

1 file changed

+13
-1
lines changed
  • content/rancher/v2.x/en/installation/troubleshooting-ha/404-default-backend

1 file changed

+13
-1
lines changed

content/rancher/v2.x/en/installation/troubleshooting-ha/404-default-backend/_index.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ When you have made changes to `rancher-cluster.yml`, you will have to run `rke r
99

1010
### Possible causes
1111

12-
The nginx ingress controller is not able to serve the configured host in `rancher-cluster.yml`. This should be the FQDN you configured to access Rancher. The logging of the nginx ingress controller will show why it cannot serve the requested host. To view the logs, you can run the following command
12+
The nginx ingress controller is not able to serve the configured host in `rancher-cluster.yml`. This should be the FQDN you configured to access Rancher. You can check if it is properly configured by viewing the ingress that is created by running the following command:
13+
14+
```
15+
kubectl get ingress -n cattle-system -o wide
16+
```
17+
18+
Check if the `HOSTS` column is displaying the FQDN you configured in the template, and that the used nodes are listed in the `ADDRESS` column. If that is configured correctly, we can check the logging of the nginx ingress controller.
19+
20+
The logging of the nginx ingress controller will show why it cannot serve the requested host. To view the logs, you can run the following command
1321

1422
```
1523
kubectl --kubeconfig kube_config_rancher-cluster.yml logs -l app=ingress-nginx -n ingress-nginx
@@ -26,3 +34,7 @@ The used certificates do not contain the correct hostname. Generate new certific
2634
There is a process on the node occupying port 80, this port is needed for the nginx ingress controller to route requests to Rancher. You can find the process by running the command: `netstat -plant | grep \:80`.
2735

2836
Stop/kill the process and redeploy.
37+
38+
* `unexpected error creating pem file: no valid PEM formatted block found`
39+
40+
The base64 encoded string configured in the template is not valid. Please check if you can decode the configured string using `base64 -D STRING`, this should return the same output as the content of the file you used to generate the string. If this is correct, please check if the base64 encoded string is placed directly after the key, without any newlines before, in between or after. (For example: `tls.crt: LS01..`)

0 commit comments

Comments
 (0)