Commit Graph

857 Commits

Author SHA1 Message Date
Davanum Srinivas
fc555839d7
Allow installing newer containerd/runc on COS
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-03-16 21:16:32 +01:00
Davanum Srinivas
df92ad9bcb
Run autoscaler as non root in kube-up
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-02-24 19:04:35 -05:00
Maciej Borsz
27dfe93f53 Use value(name) in gcloud compute instance-groups managed list-instances 2023-11-14 13:57:54 +00:00
Andrew Sy Kim
e411fd340c cluster/gce: add webhook to replace PersistentVolumeLabel admission controller
Signed-off-by: Andrew Sy Kim <andrewsy@google.com>
2023-10-31 18:52:22 +00:00
Lukasz Szaszkiewicz
517efd6442 cluster/gce: set KUBE_WATCHLIST_INCONSISTENCY_DETECTOR when requested by a CI job
when the KUBE_WATCHLIST_INCONSISTENCY_DETECTOR environment variable was set
then the reflector performs a data consistency check.

The consistency check is meant to be enforced only in the CI, not in production.
The check ensures that data retrieved by the watch-list api call
is exactly the same as data received by the standard list api call.

note that the new env var is set in the same places
the ENABLE_CACHE_MUTATION_DETECTOR is set.
2023-10-26 09:41:48 +02:00
Jakub Przychodzeń
93e3b07e11 [cluster/gce] Add KCM specific args
Add possibility to add flags to KCM, without adding flags to CCM
2023-09-08 11:12:05 +00:00
Davanum Srinivas
3f8f14397e
Set external credential provider to true by default in kube-up.sh
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2023-09-03 15:39:53 -04:00
Antonio Ojea
8f6a79b29f use external cloud provider by default with gce
This change enables the external cloud provider by default for GCE
infrastructure. It is the result of several squashed commits, these are
their commit messages:

* no longer need to enable endpoinslices controller since GA
* use external by default
* DisableKubeletCloudCredentialProviders
* temp test feature gates
2023-08-31 15:13:29 -04:00
Kubernetes Prow Robot
c1d4ec0677
Merge pull request #118537 from SataQiu/fix-cluster-gce-20230607
replace node-role.kubernetes.io/master taint with node-role.kubernetes.io/control-plane for gce kubelet flags
2023-07-05 10:40:57 -07:00
Kubernetes Prow Robot
fa78f28f0a
Merge pull request #117522 from pawbana/auth-provider-gcp-windows
Added support for image credential provider for windows and arm64 on gce
2023-06-15 17:48:38 -07:00
SataQiu
ed429c4388 replace node-role.kubernetes.io/master taint with node-role.kubernetes.io/control-plane for gce kubelet flags 2023-06-07 23:24:04 +08:00
Ricky Sadowski
8580c116d5 fix: use dl.k8s.io, not kubernetes-release bucket
This PR updates changes related references to the legacy
release bucket, excluding CHANGELOG updates.

Signed-off-by: Ricky Sadowski <richard.j.sadowski@gmail.com>
2023-05-13 10:57:41 +00:00
Kubernetes Prow Robot
f82a6ac72d
Merge pull request #115043 from bobbypage/image-family
cluster/gce: Fetch image from image family
2023-05-03 08:54:13 -07:00
Paweł Banaszewski
859690d72a Added support for image credential provider for windows and arm64 on gce 2023-04-28 21:28:26 +00:00
Francesco Romani
b430464df0 gce: podresources: don't disable on windows
Now that podresources socket has been fixed on windows,
we can re-enable on GCE CI.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2023-03-14 22:39:56 +01:00
Kubernetes Prow Robot
c2ad27aaa2
Merge pull request #115619 from jprzychodzen/cluster-kcm-ccm
[GCE] [cluster] Split run controllers per controller-manager
2023-03-14 09:39:34 -07:00
Arnaud Meukam
033f4b1772
Stop clear non-existant retention policy rule
This command is now not necessary and create some noise on the trail
logs.
See: https://github.com/kubernetes/k8s.io/pull/4902

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2023-03-13 11:35:10 +01:00
Paco Xu
a1def4b9c0 pod-infra-container-image: update comments as it will be removed in couple more releases
Signed-off-by: Paco Xu <paco.xu@daocloud.io>
2023-03-09 11:14:32 +08:00
Arnaud Meukam
471985557a
remove retention policy for staging buckets
Follow-up of:
  - https://github.com/kubernetes/kubernetes/pull/115634

The current retention policy prevent creation or update of new objects
until the existing one are deleted based on the retention period.

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2023-03-02 19:15:29 +01:00
Arnaud Meukam
bf08cc38da
Add retention policy to staging buckets
Related to:
  - https://github.com/kubernetes/k8s.io/issues/4691

Ensure new staging bucketst are regional and apply lifecycle policy to
the objects of each staging bucket.

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2023-03-01 17:25:38 +01:00
Jakub Przychodzeń
544456608f Split run controllers per controller-manager 2023-02-08 14:40:04 +00:00
David Porter
a3b44b574f cluster/gce: Fetch image from image family
Currently, we hardcode the exact image to use in cluster/gce. This is
problematic as the image gets stale very frequently and has old versions
of components such as containerd, kernel, and CVE issues.

Instead, fetch the latest image from the image family. This will ensure
the image will stay up to date. Each image change in image family is
expected to be minor. Switching to a new LTS milestone will require
updating the image family set.

Also add new kube-up environment variables to allow controlling the image
family used, namely:

* IMAGE_FAMILY - default image family to use
* MASTER_IMAGE_FAMILY - image family for master to use (defaults to
  IMAGE_FAMILY if unset)
* NODE_IMAGE_FAMILY - image family for node to use (defaults to
  IMAGE_FAMILY if unset)

Signed-off-by: David Porter <david@porter.me>
2023-01-13 17:34:56 -08:00
Walter Fender
99156b5bdc Turn on CCM in kube-up when cloudprovider=external
Currently if we disable cloud provider by the following
CLOUD_PROVIDER_FLAG=external
KUBE_FEATURE_GATES=DisableCloudProviders=true,DisableKubeletCloudCredentialProviders=true
we can no longer schedule workloads due to taints and a lack of
node configuration.
This pulls a CCM image from K/cloud-provider-gcp to run tests.
This is a pre-step for taking the above feature gates to beta.
It does not address the last known good dependency issue.
Specifically the CCM image is built on top of client-go and staging.
However this image will be an "old" verison of those libraries.
So it does not test if those libraries work in the CCM.

Fix shellcheck errors.
Add CCM_FEATURE_GATES for testing.
Switching to extended regex from perl regex.
Adding instrumentation to cluster configuration.
Improved regex to not greedily get key-value pairs.
Fixed issue with error on regex no line match.
Switch credentialprovider version to v1alpha1
2022-11-03 10:38:23 -07:00
Benjamin Elder
4c7189f54b fix SC2267 GNU xargs -i is deprecated in favor of -I{} in cluster/gce/util.sh
see: https://www.shellcheck.net/wiki/SC2267
2022-10-19 23:46:18 -07:00
Arnaud Meukam
9987e4635f
Test startup: make staging bucket regional
Make GCS buckets created by the e2e tests regional.
There are by default multi-regional in US location. The change is
introduced to minimize GCS global cost.
GCS new pricing changed since Oct 1, 2022. See https://cloud.google.com/storage/pricing-announce

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2022-10-05 06:34:04 +02:00
Maciej Borsz
7af94d7e95 Remove ssh firewall only when we delete network 2022-09-29 07:25:20 +00:00
Walter Fender
56eb2bcff4 Honor the CLOUD_PROVIDER_FLAG flag.
We were not passing the flag from deploying machine to the machine
being deployed to. Now passing the flag.
2022-09-23 19:03:01 -07:00
Artur Żyliński
f35799f6b1 Fix: Refactor firewall-rules list to read-array 2022-09-12 10:20:50 +02:00
Kubernetes Prow Robot
5fa65e989b
Merge pull request #111495 from ndixita/node-e2e-gcp-cred-provider
Configure and install out-of-tree gcp credential provider
2022-08-23 21:20:00 -07:00
Kubernetes Prow Robot
da558e44ca
Merge pull request #111906 from tosi3k/apiserver-godebug
Add a possibility of setting GODEBUG env var for kube-apiserver binary
2022-08-23 20:08:45 -07:00
Dixita Narang
d1deca1cb4 Configure and install out-of-tree gcp credential provider 2022-08-23 00:59:17 +00:00
Antoni Zawodny
a8fb0cab49 Add a possibility of setting GODEBUG env var for kube-apiserver binary 2022-08-18 11:19:52 +02:00
Brian Pursley
c2238b46a2 Change cluster/gce/util to wait for firewall rule creation
Add kube::util::wait-for-jobs in create-network() to wait
for background firewall rule creation, and if any fail, log
a message and exit with the failed job's return code.
2022-08-03 17:23:27 -04:00
Rupeng Liu
89b76dd156 Add Windows Server 2022 support for GKE 2022-06-01 17:47:40 +00:00
Jordan Liggitt
a44192b955 Remove PodSecurityPolicy cluster config 2022-05-04 16:00:56 -04:00
Davanum Srinivas
83e205ae47
fix typo for pause image env var in kube-up
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-04 06:41:03 -05:00
Davanum Srinivas
abdcbb8235
Enable specifying pause image in containerd config.toml
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-03-02 11:51:06 -05:00
Kubernetes Prow Robot
06e107081e
Merge pull request #104732 from mengjiao-liu/remove-flag-experimental-check-node-capabilities-before-mount
kubelet: Remove the deprecated flag `--experimental-check-node-capabilities-before-mount`
2022-02-24 07:56:30 -08:00
Kubernetes Prow Robot
e14ace9287
Merge pull request #107806 from mauriciopoppe/csi-proxy-additional-flags-kube-up
Env var for additional flags sent to the csi-proxy binary
2022-02-17 16:15:00 -08:00
Kubernetes Prow Robot
a3207872a3
Merge pull request #107481 from shu-mutou/deprecate-dashboard-addon
Remove dashboard cluster addon
2022-02-10 05:35:48 -08:00
Kubernetes Prow Robot
8d01b02c60
Merge pull request #107096 from hakman/remove_non-masquerade-cidr
Remove deprecated flag --non-masquerade-cidr in kubelet
2022-02-08 12:42:50 -08:00
Kubernetes Prow Robot
7bffb3b2ca
Merge pull request #106241 from jdnurme/cloud-provider-env-var
Added env variable for cloud-provider
2022-02-07 20:40:53 -08:00
Mauricio Poppe
29e8e3af85 Env var for additional flags sent to the csi-proxy binary 2022-01-27 00:01:33 +00:00
Ciprian Hacman
d01e9cedb1 Clean up logic for deprecated flag --container-runtime in scripts
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-20 11:19:08 +02:00
Ciprian Hacman
21809043b5 Remove deprecated flag --non-masquerade-cidr in kubelet
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-19 09:17:26 +02:00
Shu Muto
676972235a Remove dashboard from cluster scripts 2022-01-18 14:48:49 +09:00
cyclinder
07999dac70 Clean up dockershim flags in the kubelet
Signed-off-by: cyclinder <qifeng.guo@daocloud.io>
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-01-14 16:02:50 +02:00
JD Nurme
30fabbc0cb updated flag name 2022-01-06 19:51:17 +00:00
Mengjiao Liu
beda4cafb6 kubelet: Remove the deprecated flag --experimental-check-node-capabilities-before-mount 2022-01-06 11:47:11 +08:00
Jordan Liggitt
8139b3d89f Drop unused auto-install invocation 2021-12-06 14:48:14 -05:00