k3s/cluster
Kubernetes Submit Queue 7fe25af6b1
Merge pull request #59005 from hyperbolic2346/mwilson/node-name-fix
Automatic merge from submit-queue (batch tested with PRs 59053, 59005). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Forcing get_node_name to continue searching for a node name.

There was a race condition where the kubelet was restarting and we were querying the api server for this node. In that case, we may get a valid list of nodes that doesn't include our node. This would cause the code to just raise an exception. Now we wait the full timeout before raising the exception.



**What this PR does / why we need it**:
Fixes a race condition on the get_node_name function inside the kubernetes-worker charm.
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
Fixed a race condition inside kubernetes-worker that would result in a temporary error situation.
```
2018-01-30 13:57:29 -08:00
..
addons Merge pull request #58162 from kawych/get_rights 2018-01-24 17:41:33 -08:00
centos cluster: remove centos dependency on saltbase 2018-01-16 09:56:49 -08:00
gce [GCE] Set --kubelet-preferred-address-types on apiserver by default 2018-01-29 19:23:32 -08:00
images sync code from copy destination 2018-01-20 14:48:33 +08:00
juju Forcing get_node_name to continue searching for a node name if the returned list of nodes doesn't include this one. 2018-01-29 20:27:35 -05:00
kubemark Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
kubernetes-anywhere
local
log-dump Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
pre-existing
skeleton cluster: remove kube-push 2018-01-13 08:08:48 -08:00
BUILD Use the pkg_tar wrapper from kubernetes/repo-infra 2018-01-18 17:10:16 -08:00
OWNERS
README.md
clientbin.sh Update helper scripts to find binaries in new bazel-bin paths 2017-12-23 13:13:09 -08:00
common.sh cluster: delete saltbase 2018-01-16 09:59:29 -08:00
get-kube-binaries.sh
get-kube-local.sh Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
get-kube.sh Remove salt support for providers that no longer exist. 2018-01-12 15:51:23 -08:00
kube-down.sh
kube-up.sh remove provides which has been deleted 2018-01-11 21:52:47 +08:00
kube-util.sh
kubeadm.sh
kubectl.sh
restore-from-backup.sh Revert k8s.gcr.io vanity domain 2017-12-22 14:36:16 -08:00
test-e2e.sh
test-network.sh
test-smoke.sh
update-storage-objects.sh Swap NetworkPolicy storage to networking.k8s.io/v1 2017-11-14 15:15:01 -05:00
validate-cluster.sh

README.md

Cluster Configuration

Deprecation Notice: This directory has entered maintenance mode and will not be accepting new providers. Please submit new automation deployments to kube-deploy. Deployments in this directory will continue to be maintained and supported at their current level of support.

The scripts and data in this directory automate creation and configuration of a Kubernetes cluster, including networking, DNS, nodes, and master components.

See the getting-started guides for examples of how to use the scripts.

cloudprovider/config-default.sh contains a set of tweakable definitions/parameters for the cluster.

The heavy lifting of configuring the VMs is done by SaltStack.

Analytics