-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small Update to troubleshooting document #3346
Merged
Merged
Changes from 21 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
508bd70
Updatng troubleshooting document
jasonwilliams14 bfa460b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 3a5480b
Updating troubleshooting section guides
jasonwilliams14 7403bcf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 701c172
Apply suggestions from code review
jasonwilliams14 fb4a515
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 96a8544
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 e6e8650
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 b02b41b
Update docs/content/troubleshooting/troubleshoot-configmap-policy.md
jasonwilliams14 cf66958
Update docs/content/troubleshooting/troubleshoot-configmap-policy.md
jasonwilliams14 efcf129
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 d407cc3
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 e5fe3f6
Update docs/content/troubleshooting/troubleshoot-virtualserver-virtua…
jasonwilliams14 7a6b1b3
Update docs/content/troubleshooting/troubleshoot-configmap-policy.md
jasonwilliams14 a56a8e2
Update docs/content/troubleshooting/troubleshoot-virtualserver-virtua…
jasonwilliams14 8514081
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 eadd7bc
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 288f478
Update docs/content/troubleshooting/troubleshoot-ingress-controller.md
jasonwilliams14 a674e81
Update docs/content/troubleshooting/troubleshoot-ingress.md
jasonwilliams14 298df23
Merge branch 'main' into doc/troubleshooting-update
ADubhlaoich 77c0614
Apply suggestions from code review
ADubhlaoich 241b5e1
Restructure, rename and rewrite various troubleshooting documents
ADubhlaoich 8be78b8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] b209d7b
Change instances of names, improve grammar and phrasing.
ADubhlaoich 7fdfa54
Merge branch 'doc/troubleshooting-update' of github.com:nginxinc/kube…
ADubhlaoich 3da7a53
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 9d17651
Merge branch 'main' into doc/troubleshooting-update
ADubhlaoich c2cfbb8
Remove test content from draft TransportServer document
ADubhlaoich b64240a
Merge branch 'doc/troubleshooting-update' of github.com:nginxinc/kube…
ADubhlaoich 850b372
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0ca8516
Merge branch 'main' into doc/troubleshooting-update
ADubhlaoich 55d7b9d
Merge branch 'main' into doc/troubleshooting-update
ADubhlaoich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
docs/content/troubleshooting/troubleshoot-configmap-policy.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Checking the Events of a Policy Resource | ||
After you create or update a Policy resource, you can use `kubectl describe` to check whether or not the Ingress Controller accepted the Policy: | ||
|
||
`kubectl describe pol webapp-policy` | ||
. . . | ||
Events: | ||
Type Reason Age From Message | ||
---- ------ ---- ---- ------- | ||
Normal AddedOrUpdated 11s nginx-ingress-controller Policy default/webapp-policy was added or updated | ||
Note that in the events section, we have a Normal event with the AddedOrUpdated reason, which informs us that the policy was successfully accepted. | ||
|
||
However, the fact that a policy was accepted doesn’t guarantee that the NGINX configuration was successfully applied. To confirm that, check the events of the VirtualServer and VirtualServerRoute resources that reference that policy. | ||
|
||
Checking the Events of the ConfigMap Resource | ||
After you update the ConfigMap resource, you can immediately check if the configuration was successfully applied by NGINX: | ||
|
||
`kubectl describe configmap nginx-config -n nginx-ingress` | ||
Name: nginx-config | ||
Namespace: nginx-ingress | ||
Labels: <none> | ||
. . . | ||
Events: | ||
Type Reason Age From Message | ||
---- ------ ---- ---- ------- | ||
Normal Updated 11s (x2 over 26m) nginx-ingress-controller Configuration from nginx-ingress/nginx-config was updated | ||
Note that in the events section, we have a Normal event with the Updated reason, which informs us that the configuration was successfully applied. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Checking the Events of an Ingress Resource | ||
After you create or update an Ingress resource, you can immediately check if the NGINX configuration for that Ingress resource was successfully applied by NGINX: | ||
|
||
`kubectl describe ing cafe-ingress` | ||
Name: cafe-ingress | ||
Namespace: default | ||
. . . | ||
Events: | ||
Type Reason Age From Message | ||
---- ------ ---- ---- ------- | ||
Normal AddedOrUpdated 12s nginx-ingress-controller Configuration for default/cafe-ingress was added or updated | ||
Note that in the events section, we have a Normal event with the AddedOrUpdated reason, which informs us that the configuration was successfully applied. |
Empty file.
19 changes: 19 additions & 0 deletions
19
docs/content/troubleshooting/troubleshoot-virtualserver-virtualserverroute.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Checking the Events of a VirtualServer and VirtualServerRoute Resources | ||
After you create or update a VirtualServer resource, you can immediately check if the NGINX configuration for that resource was successfully applied by NGINX: | ||
|
||
`kubectl describe vs cafe` | ||
. . . | ||
Events: | ||
Type Reason Age From Message | ||
---- ------ ---- ---- ------- | ||
Normal AddedOrUpdated 16s nginx-ingress-controller Configuration for default/cafe was added or updated | ||
Note that in the events section, we have a Normal event with the AddedOrUpdated reason, which informs us that the configuration was successfully applied. | ||
|
||
Checking the events of a VirtualServerRoute is similar: | ||
|
||
`kubectl describe vsr coffee` | ||
. . . | ||
Events: | ||
Type Reason Age From Message | ||
---- ------ ---- ---- ------- | ||
Normal AddedOrUpdated 1m nginx-ingress-controller Configuration for default/coffee was added or updated |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think something was supposed to go in this file 🙂