Commit Graph

841 Commits

Author SHA1 Message Date
Vinayak Goyal
5d8c89b164 Run control-plane as non root in kube-up. 2021-05-05 14:46:28 -07:00
Jeremy Edwards
daa5be1d01 GCE Windows: Do not install docker when containerd CRI is selected. 2021-05-05 21:06:33 +00:00
David Porter
e02ff0687e Remove node termination handler addon 2021-04-29 14:42:23 -07:00
Antonio Ojea
6787d464ca fix cluster util.sh unbound variable 2021-03-09 09:18:23 +01:00
Amit Watve
d65a46c9c9 Target the correct project while adding master kubeconfig metadata. 2021-03-03 00:47:43 -08:00
Jeremy Edwards
82417fe763 Add GCE Kubernetes option to enable Windows DSR. 2021-02-17 01:34:36 +00:00
Joakim Roubert
8bf2836e41 Fix remaining shellcheck issues in cluster/gce/util.sh
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-10 10:07:45 +01:00
Joakim Roubert
ec9065f2c1 Update after review comment 2021-02-09 09:54:55 +01:00
Joakim Roubert
c33672b010 Update after review comment
Change-Id: Icc2281b98a0240e177f6d8b625a8ddc4f4161b79
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-02-09 09:50:51 +01:00
Joakim Roubert
251c4111d5 Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch splits declaration and assignment for local variables where
shellcheck triggers risk of shadowing warnings. Some missing exports
also added, and an unused variable was removed.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2021-02-09 09:50:51 +01:00
Joakim Roubert
ba7e23620a Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch uses shell internals instead of sed and awk where suitable
and also uses lower/upper classes for tr instead of a-z and A-Z.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2021-01-30 09:32:07 +01:00
Kubernetes Prow Robot
b77c886043
Merge pull request #94456 from joakimr-axis/joakimr-axis_util.sh_shellcheckdisables
Fix some shellcheck warnings/errors in cluster/gce/util.sh
2021-01-28 22:49:40 -08:00
Peter Hornyack
21592c23e1 GCE Windows: add 20H2; install docker when nodes are started 2021-01-22 09:58:22 -08:00
Jeremy Edwards
3b8f32dd90 Install pigz for GCE Windows Nodes. 2020-12-09 06:38:59 +00:00
Joakim Roubert
f9ca218872 Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch adds shellcheck disables where we deliberately want to
have the current code that shellcheck triggers on.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-11-17 08:05:54 +01:00
wojtekt
eb63da77ea Allow for configuring etcd progress notify interval on GCE 2020-10-29 15:43:51 +01:00
Kubernetes Prow Robot
557885d5d7
Merge pull request #91788 from rahulkjoshi/detect-local-mode
Add option to specify detect-local-mode during cluster configuration
2020-10-26 10:25:02 -07:00
Rahul Joshi
889446810c Add configuration options to specify --detect-local-mode on kube-proxy. 2020-10-23 12:12:59 -07:00
Jefftree
0e5d057755 Rename flags 2020-10-22 08:43:28 -07:00
Jefftree
ed52ad3f25 Add SETUP_KONNECTIVITY_SERVICE flag 2020-10-22 08:43:28 -07:00
Jefftree
7820b05467 Separate network proxy flag for apiserver egress and starting pods 2020-10-22 08:43:27 -07:00
Kubernetes Prow Robot
a4a7b574b3
Merge pull request #94465 from joakimr-axis/joakimr-axis_util.sh_arrays
Fix some shellcheck warnings/errors in cluster/gce/util.sh
2020-10-09 20:34:59 -07:00
Kubernetes Prow Robot
446da13de1
Merge pull request #94975 from zshihang/hash
replace sha1 with sha512
2020-10-06 13:00:42 -07:00
Joakim Roubert
2868e07b98 Update after code review
Change-Id: I89b66f2bdcb68be7eee325e6246183638d3983b3
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2020-10-06 08:40:05 +02:00
Joakim Roubert
62ee0f5a1a Update cluster/gce/util.sh
Co-authored-by: Aaron Crickenberger <spiffxp@google.com>
2020-10-06 08:37:12 +02:00
Joakim Roubert
e924c3568e Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch fixes the use of arrays.

Change-Id: I6c7f7eaf89387ed96c7b2ddf4fbb4627ec2c6075
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-10-06 08:37:12 +02:00
Kubernetes Prow Robot
3f7e26dece
Merge pull request #95242 from jingxu97/sep/gate
Add gate to install CSI proxy
2020-10-05 15:16:42 -07:00
Kubernetes Prow Robot
add19e4680
Merge pull request #95168 from jingxu97/sep/image
Update Windows image patch version
2020-10-05 15:16:32 -07:00
Jing Xu
d02f3a84e1 Add gate to install CSI proxy
Add a gate ENABLE_CSI_PROXY to enable/disable csi proxy installation.
The default value is true
2020-10-02 16:37:08 -07:00
Kubernetes Prow Robot
deebe6619a
Merge pull request #94457 from joakimr-axis/oakimr-axis_util.sh_cat
Fix some shellcheck warnings/errors in cluster/gce/util.sh
2020-10-01 14:39:19 -07:00
Jing Xu
ef3e4391c4 Update Windows image patch version
Update Windows image version to the latest one. This one includes a fix
for unix domain socket
2020-09-29 22:46:38 -07:00
Shihang Zhang
e99dbbde62 replace sha1 with sha512 2020-09-23 11:27:20 -07:00
Kubernetes Prow Robot
1bb1702a45
Merge pull request #94458 from joakimr-axis/joakimr-axis_util.sh_calc
Fix some shellcheck warnings/errors in cluster/gce/util.sh
2020-09-22 12:23:30 -07:00
Aldo Culquicondor
2ae4eeb3ea Mount kubelet and container runtime rootdir on LSSD
When environment variable NODE_LOCAL_SSD_EPHEMERAL=true,
create a RAID 0 array on all attached SSDs to mount:

- kubelet root dir
- container runtime root dir
- pod logs dir

Those directories account for all ephemeral storage.
An array is not created when there is only one SSD.

Change-Id: I22137f1d83fc19e9ef58a556d7461da43e4ab9bd
Signed-off-by: Aldo Culquicondor <acondor@google.com>
2020-09-14 14:32:28 -04:00
Joakim Roubert
82db7cf4f5 Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch adds quotes for those yaml-quote arguments that do not
already have it.

Change-Id: Iee0fb79e41aa4aff7de0df93a25aee781e574934
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-09-11 08:29:55 +02:00
Joakim Roubert
36d056a29b Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch adds whitespace handling for the $file variable(s).

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-09-03 12:02:50 +02:00
Joakim Roubert
3f3958deea Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch cleans up the use of arithmetic shell functionality.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-09-03 11:34:03 +02:00
Joakim Roubert
e773c5d19b Fix some shellcheck warnings/errors in cluster/gce/util.sh
This patch removes superfluous use of cat.

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-09-03 09:07:06 +02:00
Kubernetes Prow Robot
dbf6c456a2
Merge pull request #91835 from jingxu97/June/csi
Add csi-proxy installation into node setup script
2020-07-02 06:41:00 -07:00
Jing Xu
57d0dc540d Add csi-proxy installation into node setup script
This PR follows the same step to install and start csi-proxy as kubelet
binary
2020-07-01 15:08:29 -07:00
Michael Dresser
902a4db5fc Fixes an unnecessary failure during kube-up
Also corrects bucket creation to use the project env var
2020-06-30 21:05:55 +00:00
Kubernetes Prow Robot
4a91ecb976
Merge pull request #91863 from knabben/kubelet-memcg-notification
Moving Kubelet kernel-memgc-notification to configuration file
2020-06-25 00:20:37 -07:00
Amim Knabben
c39cf28ed3 Moving Kubelet kernel-memgc-notification to configuration file 2020-06-24 06:44:00 -04:00
Joakim Roubert
db9d6d0bff util.sh: Replace wait-until-stable with wait-until --stable
This change follows the recommendation from the CI logs:

"WARNING: `gcloud compute instance-groups managed wait-until-stable` is
deprecated. Please use `gcloud compute instance-groups managed
wait-until --stable` instead."

Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2020-06-23 13:30:52 +02:00
Kubernetes Prow Robot
87e6ec493c
Merge pull request #90223 from caesarxuchao/remove-unused-var
Remove unused network proxy variables and functions
2020-06-19 11:36:14 -07:00
Chao Xu
06d034f3c8 remove unnecessary certs generation 2020-06-16 23:47:10 -07:00
Jing Xu
953597134b Add WINDOWS_CONTAINER_RUNTIME env vairable
Now the default value of container runtime for linux is changed to
containerd. However, containerd is not ready to be used in Windows node.
THis PR adds a new env varabile to handle container runtime setup for
windows nodes. This way, linux and windows can set up their owe container runtime.
By default, linux uses containerd while windows uses dockerd
2020-06-12 17:22:12 -07:00
Antoni Zawodny
b1bd5113d4 Propagate KUBECTL_PRUNE_WHITELIST_OVERRIDE to master kube-env 2020-05-26 15:58:15 +02:00
Tim Hockin
9213616a23 Add better debug when GCE cluster turnups fail 2020-05-07 19:43:32 -07:00
Kubernetes Prow Robot
e494b0788b
Merge pull request #89543 from bartekzurawski/fix-kube-up-gce-private-restart
Set ip alias route on kubernetes-master during booting
2020-04-24 09:38:07 -07:00
Bartek Żurawski
3e4744c736 Set ip alias route on kubernetes-master during booting 2020-04-15 00:03:05 +02:00
Kubernetes Prow Robot
4ae223fbff
Merge pull request #84904 from clarklee92/FixShellCheck
Fix shell check
2020-04-06 19:09:58 -07:00
Mateusz Matejczyk
9639464e43 Propagate CONCURRENT_SERVICE_SYNCS to node env 2020-04-02 14:38:41 +02:00
Peter Hornyack
55df85ba37 Update GCE Windows node images with March's Windows updates 2020-03-27 15:44:08 -07:00
Kubernetes Prow Robot
08ce946e09
Merge pull request #89257 from jprzychodzen/fix-create
Util script - move variables setting for replicated master to outer if
2020-03-26 14:10:36 -07:00
Yu Liao
50c0827856 infra_container is passed in as env variable 2020-03-20 10:50:25 -07:00
Jakub Przychodzeń
f48268d13b Util script - move variables setting for replicated master to outer if 2020-03-20 12:42:44 +01:00
Jefftree
06abedb063 Allow both GRPC and http-connect mode to be toggled 2020-03-05 16:16:59 -08:00
Davanum Srinivas
8f764b113e
Support for adding test-handler for containerd 2020-02-10 20:43:40 -05:00
Davanum Srinivas
da024f9a57
Ability to override versions of containerd/runc 2020-02-08 20:20:15 -05:00
Yu Liao
81252a6d78 added env var WINDOWS_CNI_STORAGE_PATH and WINDOWS_CNI_VERSION 2020-02-07 12:44:13 -08:00
Davanum Srinivas
ee3f897ca7
update network-y stuff for supporting ubuntu/bionic as master
On bionic, we don't have eth0 hard coded. example below, so we use `ip
route` to figure out the default ethernet interface
```
dims@kubernetes-master:~$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1460 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 42:01:0a:80:00:23 brd ff:ff:ff:ff:ff:ff
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default
    link/ether 02:42:b2:4e:dd:86 brd ff:ff:ff:ff:ff:ff
```

Also, bionic uses systemd-resolver by default and adds entries in
/etc/resolv.conf that CoreDNS does not link. So follow the
recommendation in the documentation to specify resolv.conf explicitly
2020-02-02 19:23:10 -05:00
Peter Hornyack
cc7799a437 Update GCP Windows node image versions
- Makes Windows Server 2019 the default version for Windows clusters on
  GCP, since 1809 will be EOL in a few months.
- Adds Windows Server version 1909 as a Windows node choice.
- Use Windows images with updates from January 2020.
- Cleans up the code that sets the node image.
2020-01-31 10:29:39 -08:00
Stephen Augustus
96f2588b61 cni: Update CNI download URLs to use new GCS bucket (k8s-artifacts-cni)
Signed-off-by: Stephen Augustus <saugustus@vmware.com>
2020-01-29 02:32:22 -05:00
Koonwah Chen
cfd61e801b Add env var(CNI_TAR_PREFIX) for cni install.
cni release has changed the prefix, add a var to make this configurable.
2020-01-22 15:14:31 -08:00
Janek Łukaszewicz
a9e5fd6623 Revert "Revert "Add an option to specify kubelet flags for heapster node.""
This reverts commit 00ea8c4f9e.
2020-01-14 12:53:25 +01:00
Kubernetes Prow Robot
127c47caf4
Merge pull request #85512 from serathius/remove-cluster-monitoring
Remove cluster-monitoring
2019-12-17 21:05:57 -08:00
Nikolaos Moraitis
00ea8c4f9e
Revert "Add an option to specify kubelet flags for heapster node." 2019-12-11 11:19:13 +01:00
Marek Siarkowicz
31fb04fa98 Remove cluster-monitoring
Heapster is deprecated and no longer supported
2019-12-09 11:25:20 +01:00
Kubernetes Prow Robot
616fce7839
Merge pull request #85797 from oxddr/taint-heapster
Add an option to specify kubelet flags for heapster node.
2019-12-06 07:20:50 -08:00
Janek Łukaszewicz
39cb8222c7 Add an option to specify kubelet flags for heapster node.
Useful in scalability tests, where we don't want test pods (e.g. Kubemark hollow
nodes) to be scheduled on heapster node.
2019-12-06 12:44:26 +01:00
Peter Hornyack
cff9751112 Update GCE Windows startup scripts for TPM-based authentication
"Shielded" nodes have a virtual TPM attached which is used for
generating the client certificate, instead of using a bootstrap
kubeconfig. Determining which to use happens during node startup based
on the instance metadata.
2019-12-04 13:57:59 -08:00
Lantao Liu
ee2418c7aa Move hostdns.conf out of cni directory. 2019-11-27 11:48:58 -08:00
Lantao Liu
e66f4ca537 Add containerd windows support on GCE for test. 2019-11-27 11:48:58 -08:00
Xing Yang
3324722e07 VolumeSnapshot CRD v1beta1: Enable VolumeSnapshotDataSource feature gate and update e2e tests 2019-11-11 02:34:24 +00:00
clarklee92
a2efefc820 Fix shell check
https://github.com/koalaman/shellcheck/wiki/SC2068
https://github.com/koalaman/shellcheck/wiki/SC2086
https://github.com/koalaman/shellcheck/wiki/SC2164
Signed-off-by: clarklee92 <clarklee1992@hotmail.com>
2019-11-08 10:39:34 +08:00
Benjamin Elder
83c56a0373
remove hack/e2e.go 2019-11-03 19:36:59 -05:00
Kubernetes Prow Robot
6170296b66
Merge pull request #84383 from prameshj/patch-3
Use DNS_SERVER_IP as --cluster-dns in all cases.
2019-10-29 15:38:52 -07:00
prameshj
328f8dfe12 Use DNS_SERVER_IP as --cluster-dns in all cases.
NodeLocalDNS addon listens on both DNS_SERVER_IP as well as LOCAL_DNS_IP. So cluster-dns flag can continue to be DNS_SERVER_IP in all cases.
Documented the various variables in the yaml.
2019-10-29 12:38:46 -07:00
Kubernetes Prow Robot
a8e819746d
Merge pull request #83442 from serathius/remove-prometheus-addon
Remove prometheus addon
2019-10-29 01:34:43 -07:00
Kubernetes Prow Robot
b084336460
Merge pull request #81073 from mborsz/cnat
Few improvements to Cloud NAT
2019-10-23 05:08:14 -07:00
Maciej Borsz
7ee8a02eee Add mtls support to add/remove-replica 2019-10-22 14:59:16 +02:00
Maciej Borsz
afbe1898e7 Few improvements to cloud nat 2019-10-22 13:58:46 +02:00
Marek Siarkowicz
887e84e330 Remove Prometheus addon and it's tests
Prometheus addon was developed for exterimental and test purpose only.
As readme states it should not be used by anyone.
2019-10-03 14:15:58 +02:00
Jacek Kaniuk
46e7a14227 Ability to set up additional, bigger nodes during tests 2019-10-03 12:20:06 +02:00
Kubernetes Prow Robot
3a50184421
Merge pull request #82380 from robscott/endpointslice-e2e-tests
Starting EndpointSlice Controller when all Alpha gates are enabled in cluster up
2019-09-05 17:54:57 -07:00
Rob Scott
dc0c81a5f1
Ensuring endpointslice controller starts up as part of cluster up when all alpha feature gates are enabled 2019-09-05 09:16:13 -07:00
Zang Li
2a3ab18654 Add dns capability to GCE window cluster 2019-09-04 18:45:25 -07:00
Kubernetes Prow Robot
282b992e0c
Merge pull request #81074 from mborsz/ilb
Experimental ILB support
2019-08-09 06:25:26 -07:00
Maciej Borsz
cc4094d916 Experimental ILB support 2019-08-09 12:38:15 +02:00
Kubernetes Prow Robot
18b6ff3d65
Merge pull request #81106 from YangLu1031/updateImageVersion
Update the Windows server core 1809 image to July version 0709
2019-08-08 17:58:18 -07:00
Yang Lu
8bd0860c5c Update the Windows node image 1809 version to 0709 2019-08-07 12:36:04 -07:00
Walter Fender
ebb65c5f4c Get network-proxy working with GCE.
Got the proxy-server coming up in the master.
Added certs and have it comiung up with those certs.
Added a daemonset to run the network-agent.
Adding support for agent running as a sameon set on every node.

Added quick hack to test that proxy server/agent were correctly
tunneling traffic to the kubelet.

Added more WIP for reading network proxy configuration.
Get flags set correctly and fix connection services.
Adding missing ApplyTo
Added ConnectivityService.
Fixed build directives. Added connectivity service configuration.
Fixed log levels.
Fixed minor issues for feature turned off.
Fixed boilerplate and format.
Moved log dialer initialization earlier as per Liggits suggestion.
Fixed a few minor issues in the configuration for GCE.
Fixed scheme allocation
Adding unit test.
Added test for direct connectivity service.

Switching to injecting the Lookup method rather than using a Singleton.
First round of mikedaneses feedback.
Fixed deployment to use yaml and other changes suggested by MikeDanese.

Switched network proxy server/agent which are kebab-case not camelCase.
Picked up DIAL_RSP fix.
Factored in deads2k feedback.
Feedback from mikedanese
Factored in second round of feedback from David.
Fix path in verify.
Factored in anfernee's feedback.
First part of lavalamps feedback.
Factored in more changes from lavalamp and mikedanese.

Renamed network-proxy to konnectivity-server and konnectivity-agent.
Fixed tolerations and config file checking.
Added missing strptr
Finished lavalamps requested rename.
Disambiguating konnectivity service by renaming it egress selector.

Switched feature flag to KUBE_ENABLE_EGRESS_VIA_KONNECTIVITY_SERVICE
2019-08-06 23:09:49 -07:00
Maciej Borsz
20d5bb4afe Add MASTER_NODE_LABELS 2019-07-03 09:39:14 +02:00
Kubernetes Prow Robot
5ee329c799
Merge pull request #77271 from krzysied/gce_instance_parallel
Creating instance groups in parallel
2019-07-02 05:45:08 -07:00
Kubernetes Prow Robot
ed1f9748b1
Merge pull request #78727 from mborsz/script
Modify kube-up to support cluster without nodes.
2019-07-01 09:43:21 -07:00
Kubernetes Prow Robot
3f221551b6
Merge pull request #78728 from mborsz/firewall
Modify firewall rules names to make them shorter.
2019-07-01 07:23:34 -07:00
Maciej Borsz
5f10c284c8 Modify kube-up to support cluster without nodes. 2019-07-01 15:29:45 +02:00
Wei Huang
6f10758446
followup of 79262 to cleanup PodPriority leftover 2019-06-28 14:19:26 -07:00
Kubernetes Prow Robot
ed9f340add
Merge pull request #79305 from paivagustavo/clean-up-self-set-node-labels
Clean up self-set node labels
2019-06-27 11:37:21 -07:00