k3s/cluster
Kubernetes Submit Queue a555044125
Merge pull request #67139 from NetApp/dev-random-fix-67091
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Fix an issue about generation of secret key with invalid key size in gce

Replace /dev/random to /dev/urandom to avoid generation of secret key with invalid key size.



**What this PR does / why we need it**:
In GCE env, AESGCM encryption of secrets by default generates a secret key with /dev/random which sometime generates a key with invalid size.
This cause the cluster/kube-up.sh to fail in gce environment.

This PR replaces /dev/random with  /dev/urandom to have a secret key generated consistently with right size.

**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 #67091

**Special notes for your reviewer**:

**Release note**:

```release-note
cluster/gce: generate consistent key sizes in config-default.sh using /dev/urandom instead of /dev/random  
```
2018-09-05 17:13:43 -07:00
..
addons Merge pull request #68161 from tallclair/runtimeclass-addon 2018-09-05 14:51:41 -07:00
centos Supplementary information for common flags and add restart second config 2018-08-21 11:06:44 +08:00
gce Merge pull request #67139 from NetApp/dev-random-fix-67091 2018-09-05 17:13:43 -07:00
images Add Labels to various OWNERS files 2018-08-21 13:59:08 -04:00
juju Fix missed cloud-request-sent flags 2018-08-27 12:56:25 +00:00
kubemark GC kubemark image after cluster starts up 2018-08-31 18:56:36 +02:00
kubernetes-anywhere Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
local Remove duplicated detect-master for local 2018-08-15 19:04:40 +00:00
log-dump Bump logexporter version 2018-08-30 12:13:31 +02:00
pre-existing Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
skeleton cluster: delete some kube-push remanents 2018-08-31 14:48:31 -07:00
BUILD Add unit test for configure-helper. 2018-04-23 12:18:57 -07:00
OWNERS Add spiffxp to OWNERS files in bash-heavy dirs 2018-08-31 14:01:16 -07:00
README.md
clientbin.sh enable e2e test on Arm64 2018-08-13 16:34:25 +08:00
common.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
get-kube-binaries.sh
get-kube-local.sh fix create-kubelet-kubeconfig. 2018-08-10 16:07:49 +08:00
get-kube.sh
kube-down.sh Exit gce kube-up.sh early if openssl is LibreSSL 2018-07-26 14:48:51 -07:00
kube-up.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
kube-util.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
kubeadm.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
kubectl.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
restore-from-backup.sh Remove references to the Debian-based Container-VM image 2018-07-03 17:05:31 -07:00
test-e2e.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
test-network.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
test-smoke.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
update-storage-objects.sh Update all script to use /usr/bin/env bash in shebang 2018-04-19 13:20:13 +02:00
validate-cluster.sh Fix validate-cluster.sh for clusters with more than 500 nodes. 2018-08-21 15:19:41 +02:00

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