Kubernetes Prow Robot
1d8828ce70
Merge pull request #128091 from saschagrunert/cni-plugins
...
Update cni-plugins to v1.6.0
2024-10-27 03:01:06 +00:00
Sotiris Salloumis
4e0581ee21
Configure topology manager option in local-up-cluster
...
This commit allows the configuration of topology manager
option with the use of environment variable, following
same approach as done for configuring cpumanager policy
options.
2024-10-23 13:11:10 +02:00
Kevin Hannon
2ab0d5b371
update local up cluster with latest swap changes
2024-10-19 10:46:13 -04:00
Sascha Grunert
237c7e38bd
Update cni-plugins to v1.6.0
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-10-18 11:06:54 +02:00
Jefftree
f998b34c36
Add option to configure leader elect in local up cluster
2024-10-01 15:39:18 +00:00
Davanum Srinivas
1dc29b74b9
Avoid collecting dmesg when running as daemon
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2024-09-23 21:32:05 -04:00
Sascha Grunert
931b9b3a70
Update cni-plugins to v1.5.1
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-08-28 12:58:36 +02:00
Aaron Prindle
780cfa572b
feat: add EMULATED_VERSION env var and --emulated-version flag params to k8s binaries flags in hack/local-up-cluster.sh
2024-08-20 21:18:34 +00:00
Patrick Ohly
8cb4a19450
hack/local-up-cluster.sh: adapt to stricter --cors-allowed-origins
...
https://github.com/kubernetes/kubernetes/pull/112809 tightened what regular
expressions are allowed and now requires that they start matching with a double
dash.
2024-06-26 18:52:03 +02:00
HirazawaUi
d98561fb26
fix local-up-cluster.sh to fail
2024-06-23 20:11:55 +08:00
bzsuni
61a35c2186
update cni from 1.4.1 to 1.5.0
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io >
2024-05-25 10:33:52 +08:00
Sascha Grunert
a35b75ee57
Update cni-plugins to v1.4.1
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2024-03-12 12:06:52 +01:00
Sotiris Salloumis
ce8bd8584e
Configure cpumanager policy options in local-up-cluster
...
CPU Manager policy options cannot be configured with
KUBELET_FLAGS. They need to be included in kubelet
configuration instead.
This commit allows the configuration with the use
of three enviroment variables, following same approach
as done for enabling feature gates.
2024-03-01 11:38:02 +01:00
Kubernetes Prow Robot
7bea14097b
Merge pull request #122612 from mtardy/remove-scdeny
...
auth: remove SecurityContextDeny admission plugin
2024-02-12 08:37:13 -08:00
Masashi Honma
9027049f2c
local-up-cluster.sh: Use config file instead of flags for kubelet
...
Because /tmp/kubelet.log shows trailing log.
Flag --container-runtime-endpoint has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Signed-off-by: Masashi Honma <masashi.honma@gmail.com >
2024-02-02 09:39:05 +09:00
Jordan Liggitt
6ae264464c
Make local-up-cluster non-verbose by default
2024-01-19 08:27:28 -08:00
Jordan Liggitt
1192f313b8
Fix local-up-cluster on darwin
2024-01-18 08:51:45 -08:00
Davanum Srinivas
ddbf3ab662
local-up-cluster: use the newly built library always
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2024-01-11 08:13:21 -05:00
Mahe Tardy
73bec0f6d9
api: remove SecurityContextDeny admission plugin
2024-01-05 15:11:18 +00:00
Kubernetes Prow Robot
7db7824d85
Merge pull request #122178 from saschagrunert/cni-plugins
...
Update cni-plugins to v1.4.0
2024-01-04 18:00:07 +01:00
Sascha Grunert
1ae5594fb2
Update cni-plugins to v1.4.0
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2023-12-13 09:33:31 +01:00
Davanum Srinivas
48671a3a20
explicitly stop/start docker to fix up local-up-cluster.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-12-06 20:54:08 -05:00
Jordan Liggitt
819d1903a2
Add support for authorization-config to local-up-cluster
2023-11-08 14:36:05 -06:00
HirazawaUi
c1a0aa08e3
Add cni plugin auto Arch and OS selection
2023-09-09 20:33:12 +08:00
Kevin Hannon
5dbec5c715
local debugging should utilize the same defaults as prod
2023-08-29 16:38:24 -04:00
Sascha Grunert
7933368460
Update CNI plugins to v1.3.0
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2023-08-17 09:50:53 +02:00
Itamar Holder
f37aec6c57
Add LIMITED_SWAP env var to enable limited swap
...
Signed-off-by: Itamar Holder <iholder@redhat.com >
2023-07-14 14:52:27 +03:00
ziyin.lu
687ca0e0bb
fix(script): handle wait_for_success failed condition
...
In the wait_node_ready function, two steps are performed:
1.Check if the node exists
2.Wait for the node to enter the ready state
If one step fails, the second step should not continue, wasting 300 seconds.
2023-06-20 08:22:26 -04:00
Jordan Liggitt
1b206399f6
fix using stale binaries in local-up-cluster
2023-05-22 20:03:58 -04:00
Davanum Srinivas
9346237712
Update docker/containerd/runc versions and capture more logs
...
- use apt to install fresh stuff
- print versions of the components
- throw on debug for docker log
- capture dmesg log
- bump kernel logging
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-05-17 12:38:52 -04:00
Davanum Srinivas
196e2f041b
Update the cgroups v2 toleration in local-up-cluster
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-05-12 17:40:38 -04:00
Davanum Srinivas
1168b11875
Stabilize local-up-cluster in our CI
...
- if binaries are already present skip building them
- install missing packages like nftables and kmod
- work better when cgroups v2 is present
- update to newer CNI version (v1.2.0)
- Ensure we wait for coredns to stabilize
- Grab docker log as well (this has containerd logs too)
Used tips from:
- https://kubernetes.io/docs/tasks/administer-cluster/dns-debugging-resolution/
Tested locally in an environment as close to CI as possible:
- https://gist.github.com/dims/3c83730c99f61e36b8dd2d61abe68fe7
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-05-12 09:16:19 -04:00
Davanum Srinivas
5aca41af50
[local-up-cluster] Use the kubectl we built
...
Also wait for the Node to be ready!
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2023-05-04 07:19:23 -04:00
Rodrigo Campos
d212041d51
hack/local-up-cluster.sh: Remove old dynamic certs
...
When running this script more than once on Debian and Ubuntu, we fail to
chown -R the CERT_DIR due to this file owned by root and the CERT_DIR
owned by the unprivileged user running the script.
Let's remove the file, that is something we can always do, before
generating the certs. This fixes the problem on Debian and Ubuntu local
setups.
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
2023-04-11 20:09:47 +02:00
Kubernetes Prow Robot
c072cae4d0
Merge pull request #108838 from nckturner/webhook-framework
...
Webhook framework for cloud controller manager
2023-03-14 20:28:14 -07:00
Kubernetes Prow Robot
1586138519
Merge pull request #115750 from saschagrunert/otel-beta
...
Graduate `KubeletTracing` feature to beta
2023-03-14 16:34:33 -07:00
Nick Turner
86f4136003
Webhook framework for cloud controller manager
...
Provides framework for CCMs to host webhooks.
2023-03-14 23:28:05 +00:00
Kubernetes Prow Robot
a3ad4d7623
Merge pull request #114017 from calvin0327/cleanup-containerruntime-options
...
cleanup container runtime options
2023-03-09 21:33:06 -08: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
Rodrigo Campos
5f568d51be
hack/local-up-cluster.sh: Cleaup on SIGINT
...
Currently we only cleanup on exit. Let's trap SIGINT (ctrl-c) too, so we
always cleanup everything.
Otherwise if we ctrl-c is easy to leave something running, specially if
we ctrl-c while the cleanup function is running. And when we leave
something running and don't reused the certs ($REUSE_CERTS), that is the
default, something is left running and it fails with weird ways as we
can't auth with the new certs.
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com >
2023-03-08 17:37:50 +01:00
Sascha Grunert
a28385ebe2
Graduate KubeletTracing feature to beta
...
We now graduate `KubeletTracing` to beta, which means we enable the
feature gate per default.
Part of https://github.com/kubernetes/enhancements/issues/2831
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2023-02-14 10:05:35 +01:00
Richard Kovacs
bef16e817b
Fix lint errors at local-up-cluster.sh
2023-01-18 12:20:33 +01:00
Richard Kovacs
89539e80dc
Fix lint errors at local-up-cluster.sh
2023-01-18 11:15:38 +01:00
Richard Kovacs
be4b3c5abd
Use proper mktmp command in local-up-cluster.sh
2023-01-18 10:58:41 +01:00
Richard Kovacs
63982fc1fd
Display generated config file locations on successful local-up-cluster.sh execution
2023-01-12 18:06:14 +01:00
Richard Kovacs
457537a211
Make tmp dir configurable and dynamic at local-up-cluster.sh
2023-01-12 14:57:38 +01:00
Sascha Grunert
f04bb71878
Tracing: sample always in hack/local-up-cluster.sh
...
If the feature gate `KubeletTracing` is enabled, then we should default
to a sample rate of 1 million per million, which will sample everything:
https://github.com/open-telemetry/opentelemetry-go/blob/aa868d5/sdk/trace/sampling.go#L107-L110
This helps to easier spin-up a cluster with tracing enabled by exporting
`FEATURE_GATES="KubeletTracing=true"`.
Related docs: https://k8s.io/docs/concepts/cluster-administration/system-traces/#kubelet-traces
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2022-11-29 13:12:19 +01:00
Moshe Levi
c337d7b6f9
fix local-up-cluster.sh to run on other arch than amd64
...
tested on arm64
Signed-off-by: Moshe Levi <moshele@nvidia.com >
2022-11-03 21:39:09 +02:00
Wei Huang
3115c5ba59
update scheduler config version to v1
2022-10-22 09:06:55 -07:00
Benjamin Elder
239b3338e9
idiomatically check for empty variable
2022-10-20 16:22:10 -07:00