-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a troubleshooting docs page (#305)
* add troubleshooting explanation
- Loading branch information
Showing
4 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,12 @@ | ||
# Get support | ||
# How to get support | ||
|
||
Support for Canonical Kubernetes is available in a variety of ways: | ||
|
||
- Engagement with the [Canonical Kubernetes Community] | ||
- Understanding common [Troubleshooting Techniques] | ||
- Professional support services with [Ubuntu Support] | ||
|
||
<!--LINKS --> | ||
[Canonical Kubernetes Community]: ../reference/community | ||
[Troubleshooting Techniques]: ../reference/troubleshooting | ||
[Ubuntu Support]: https://ubuntu.com/support |
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,37 @@ | ||
# Troubleshooting | ||
|
||
This page provides techniques for troubleshooting common Canonical Kubernetes | ||
issues. | ||
|
||
## Kubectl error: "dial tcp 127.0.0.1:6443: connect: connection refused" | ||
|
||
### Problem | ||
|
||
The [kubeconfig file] generated by the `k8s kubectl` CLI can not be used to | ||
access the cluster from an external machine. The following error is seen when | ||
running `kubectl` with the invalid kubeconfig: | ||
|
||
```bash | ||
... | ||
E0412 08:36:06.404499 517166 memcache.go:265] couldn't get current server API group list: Get "https://127.0.0.1:6443/api?timeout=32s": dial tcp 127.0.0.1:6443: connect: connection refused | ||
The connection to the server 127.0.0.1:6443 was refused - did you specify the right host or port? | ||
``` | ||
### Explanation | ||
A common technique for viewing a cluster kubeconfig file is by using the | ||
`kubectl config view` command. | ||
The `k8s kubectl` command invokes an integrated `kubectl` client. Thus | ||
`k8s kubectl config view` will output a seemingly valid kubeconfig file. | ||
However, this will only be valid on cluster nodes where control plane services | ||
are available on localhost endpoints. | ||
### Solution | ||
Use `k8s config` instead of `k8s kubectl config` to generate a kubeconfig file | ||
that is valid for use on external machines. | ||
<!-- LINKS --> | ||
[kubeconfig file]: https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/ |