Commit Graph

669 Commits

Author SHA1 Message Date
Jon Huhn
e0d157b9a4 set skipPhases in Init and JoinConfiguration 2024-05-21 18:14:21 +00:00
Antonio Ojea
b939fa0f43 set nf_conntrack_tcp_be_liberal for nftables mode 2024-04-22 09:04:12 +00:00
Antonio Ojea
a5b2309373 kubeproxy mode const is lowercase 2024-04-22 08:40:31 +00:00
Antonio Ojea
296749aa2d support kube-proxy nftables mode 2024-04-11 14:47:54 +00:00
Kay Yan
724ea1a7ae Update pkg/cluster/internal/providers/nerdctl/provider.go
Add todo nerdctl handles concurrency better

Co-authored-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2024-04-07 08:24:17 +00:00
Kay Yan
a73cd978ae using no concrrent create container with nerdctl
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2024-04-03 06:10:31 +00:00
Benjamin Elder
58508bc576 nerdctl: fix if-return lint 2024-04-01 15:59:46 -07:00
Benjamin Elder
5f59a835fa fix if-return redundant if ...; err != nil check lint 2024-04-01 15:52:31 -07:00
Phil Estes
1759f35318 Determine which nerdctl implementation
When called via the library path, the nerdctl provider is
instantiated without a binary name. We still need to do
a lookup to determine if finch or nerdctl is the installed
binary to provide the local runtime command line

Signed-off-by: Phil Estes <estesp@gmail.com>
2024-03-25 14:34:06 -04:00
Kay Yan
974fa25b0d update docs for nerdctl support
Co-authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Signed-off-by: Kay Yan <kay.yan@daocloud.io>
2024-02-28 04:44:16 +00:00
Phil Estes
86c7c2e414 Initial provider for nerdctl/Finch
Adds implementation for a provider based on nerdctl. Several todos
in the code but the core functionality of creating/deleting clusters
is working and a simple application deployed works properly

Signed-off-by: Phil Estes <estesp@gmail.com>
2024-02-16 12:56:46 -05:00
Wouter
6a13c47996 Support multiple random ExtraPortMappings
When the default value, 0, is used for the HostPort in ExtraPortMappings
then Kind will determine a random HostPort to use for this mapping. The
validation only allowed a single instance of such a mapping, but now allows
multiple.

Also delay the closing of the randomly determined port until all random
ports have been determined to ensure the same port cannot be returned
multiple times by the operating system.
2024-02-09 02:47:09 +01:00
John Howard
18bb5af02f Remove exclude-from-external-load-balancers from single node clusters
Part of https://github.com/kubernetes-sigs/kind/issues/3506
2024-02-05 14:58:13 -08:00
Benjamin Elder
f52e77250f update haproxy image to latest build 2023-06-14 17:16:25 -07:00
Benjamin Elder
5588e0f186 move amwat to emeritus_approvers 2023-05-18 20:01:07 -07:00
Benjamin Elder
d16895a467 set cgroupns=private 2023-05-18 20:00:15 -07:00
Benjamin Elder
b63b495230 upgrade haproxy image to latest 2023-05-11 14:19:20 -07:00
Benjamin Elder
df2a59f3e2 Merge pull request #3157 from yanggangtony/delete-ioutil
Delete ioutil as it is Deprecated since Go 1.16
2023-05-11 10:00:06 -07:00
Antonio Ojea
4bc8c5892f podman: create ipv4 network if ipv6 is disabled
Signed-off-by: Antonio Ojea <aojea@google.com>
2023-04-24 21:51:46 +00:00
yanggang
6a7169806f Delete ioutil as it is Deprecated since Go 1.16
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-04-19 04:51:34 +08:00
Benjamin Elder
9fb3d908e4 bump haproxy image 2023-04-04 09:14:26 -07:00
yanggang
72d13903c5 fix error notes for interface Provider.GetAPIServerInternalEndpoint
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-04-03 15:42:20 +08:00
Lucas Ramage
6be3cfa9d0 Improve log output for delete cluster (#2934)
* Improve log output for delete cluster

* Revert logging removal of context from kubeconfig
2023-03-23 01:28:23 -07:00
Daniel Lipovetsky
47dfc9e840 fix: Limit HAProxy maximum concurrent connections
If the limit is not configured, HAProxy derives it from the file
descriptor limit. The higher the limit, the more memory HAProxy
allocates. That limit can be so high on modern Linux distros that
HAproxy allocates all available memory.
2023-03-04 15:53:17 -08:00
Antonio Ojea
153c0c517b bump haproxy to docker.io/kindest/haproxy:v20230227-d46f45b6 2023-02-27 21:00:40 +00:00
John Howard
1964100d41 Do it in post 2023-02-15 07:55:37 -08:00
John Howard
33c4eaf560 Add dnsSearch cluster option
Fixes https://github.com/kubernetes-sigs/kind/issues/3097
2023-02-14 13:45:31 -08:00
Benjamin Elder
b357fa4f86 bump haproxy image 2022-12-20 14:19:28 -08:00
Curt Bushko
3f6f231bee add --all-platforms flag to LoadImageArchive 2022-10-06 23:40:19 -04:00
Kubernetes Prow Robot
41b35032b3 Merge pull request #2911 from BenTheElder/safeyaml
switch to safetext/yamltemplate for yaml templating
2022-10-04 15:04:01 -07:00
Benjamin Elder
b1c16db489 mark StructuralData
this tells safetext that we *intend* to have input-based field keys here
2022-10-04 14:15:39 -07:00
Benjamin Elder
bd637d823d don't use index 2022-10-04 14:15:38 -07:00
Kubernetes Prow Robot
b241f7fc83 Merge pull request #2910 from BenTheElder/podman-overlap
check for new podman overlap error message
2022-09-22 00:27:04 -07:00
Benjamin Elder
965bde6c90 switch to safetext/yamltemplate for yaml templating 2022-09-20 15:10:28 -07:00
Benjamin Elder
341cb6a5b6 drop codepaths for Kubernetes versions < 1.15 2022-09-06 21:42:07 -07:00
Benjamin Elder
17e6fab594 check for new podman overlap error message 2022-09-06 11:04:12 -07:00
Waldek Herka
c6b929bd79 Extending the no_proxy env variable to automatically include all the nodes of the cluster (#2885)
* Extending the no_proxy to automatically include the control plane - issue #2884

* Refactoring the code to follow the existing conventions imposed by NodeNamer

* Adding the equivalent treatment to docker provisioner and adding the external load balancer and etc roles(as they may be created implicitly) to complete the picture

* Post-review: a bit of refactoring to bring the podman provisioner closer to what's done for docker
2022-08-22 01:15:43 -07:00
Waldek HERKA
0945078a17 Post-review corrections: removing bits unrelated to issue #2882 2022-08-17 09:42:33 +00:00
Waldek HERKA
dce9b27706 Post-review corrections: hiding the structure 2022-08-17 09:26:15 +00:00
Waldek HERKA
8f7586be55 Support for netavark backed podman(4.x+) and adding the control-plane to the no_proxy list 2022-08-17 07:44:09 +00:00
Benjamin Elder
c9f6a1ed2c go 1.19 gofmt 2022-08-08 14:31:50 -07:00
Benjamin Elder
13175b044a simplify template 2022-08-04 16:20:35 -07:00
Kubernetes Prow Robot
36c62825cd Merge pull request #2846 from BenTheElder/localstorageisolationrootless
disable localStorageCapacityIsolation for rootless in >= v1.25.0-alpha.3.440+0064010cddfa00
2022-08-04 07:35:46 -07:00
Benjamin Elder
968c8421dc disable localStorageCapacityIsolation for rootless in > v1.25.0-alpha.3.440+0064010cddfa00 2022-08-03 16:18:56 -07:00
Kubernetes Prow Robot
81790560be Merge pull request #2786 from harshanarayana/feature/GIT-2663/optimize-image-load
GIT-2663: optimized image load with re-tag support
2022-08-02 13:03:45 -07:00
Harsha Narayana
d1c2a79e2e GIT-2663: optimized image load with re-tag support
GIT-2663: sanitizeImage function to help generate fully qualified image names

GIT-2663: sanitizeImage function to help generate fully qualified image names

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: add comments for sanitizeImage function and add UTs

GIT-2663: cleanup image retag required check

GIT-2663: cleanup image retag required check
2022-07-08 20:07:42 +05:30
a-palchikov
0033147efd Fix the KubeletConfiguration template for < 1.13 w.r.t feature gates 2022-07-05 16:55:45 +02:00
Paco Xu
6fae657362 migrate to registry.k8s.io from k8s.gcr.io 2022-06-23 20:25:33 +00:00
Paco Xu
2f88c7a947 update pause to use v3.7 2022-06-23 20:25:33 +00:00
Benjamin Elder
d42009ae4b bump haproxy image 2022-06-07 14:46:03 -07:00