Commit Graph

172 Commits

Author SHA1 Message Date
Ciprian Hacman c95f297c06 azure: Fix subscription ID check 2025-07-26 20:43:16 +03:00
Ciprian Hacman d08c94e54e azure: Use `kops` as the default admin user 2025-07-21 07:00:07 +03:00
Ciprian Hacman 54d0510fc7 Use Ubuntu 24.04 (Noble) as the default distro for K8s 1.32+ 2025-01-12 11:43:36 +02:00
Antonio Ojea f2c239dd81 add kindnet network plugin
add kindnet as an experimental network addon

containerd adds the requirement to use the loopback cni plugin,
kindnet provides that capability and containerd does not require it
since containerd/containerd/pull/10238

Change-Id: I1397a90186885b02e98b5ffa444fe629c1046757
2025-01-08 01:09:37 +00:00
justinsb a65bb16a38 metal: support `kops toolbox enroll` on a control-plane machine
In particular, we want to build the full cluster and instance group.

The control plane does not yet start, because etcd is not configured correctly.
2024-08-31 07:14:47 -04:00
justinsb 7f58570a04 metal: stub out functions to enable cluster creation
Start adding the minimal implementation such that we can `kops create cluster`
2024-08-29 22:39:48 -04:00
justinsb 3646a610b1 refactor: Move GetCloudProvider to cluster
This lets us use labels (or annotations), meaning we can experiment
with different clouds without changing the API.

We also add initial (experimental/undocumented) support for exposing a "Metal" provider.
2024-08-26 08:20:37 -04:00
justinsb 56d9abb9f1 Raise errors earlier if we cannot parse the kube version
If we check this later, in some code-paths we can only panic (because
some code paths assume this check has already been done)
2024-06-20 10:33:02 -04:00
Peter Rifel 2bf59688c2
Migrate instance types to aws-sdk-go-v2 2024-04-13 16:01:41 -04:00
Peter Rifel f0c0c29121
Migrate EC2 Networking resource types to aws-sdk-go-v2 2024-04-13 16:01:39 -04:00
Peter Rifel 0dcbf23df2
Migrate aws-sdk-go/aws to aws-sdk-go-v2/aws 2024-03-31 16:56:31 -05:00
Ciprian Hacman 4ae8f3c28e azure: Fix subnet name 2024-02-17 15:57:19 +02:00
Peter Rifel ac13fa610c
Move DNS topology setup earlier in cluster creation
This is needed because setting the bastion public name field depends on the DNS topology.
We were incorrectly setting bastion.publicName for dns=none clusters because the dns=none field wasn't yet set on the cluster.
2024-02-10 14:17:35 -06:00
Ciprian Hacman 8af20ba79f Use dns=none for newly created clusters including for AWS and GCE 2024-01-19 06:15:22 +02:00
Ciprian Hacman 997b1fd308 scale-test: Add feature flag for creating a single nodes instance group 2024-01-02 14:06:08 +02:00
Ciprian Hacman ef85e29286 Use dns=none for newly created clusters except for AWS and GCE 2023-10-07 15:46:27 +03:00
Ciprian Hacman 828995728b Optimize subnets asignment to IGs for clusters with multiple CIDRs 2023-09-17 07:25:55 +03:00
upodroid 20e7a5aad4 disable metadata-proxy on k8s version older than 1.29 2023-09-09 16:18:51 +01:00
Ciprian Hacman 6fbc9e58a2 aws: Add option to provide multiple instance types on cluster creation 2023-09-02 17:01:02 +03:00
Ciprian Hacman 4e0e28a32b aws: Create subnets for additional network CIDRs 2023-08-26 10:18:44 +03:00
John Gardiner Myers 57b0d8e9cd v1alpha3: Move configBase to configStore.base 2023-07-22 15:57:35 -07:00
John Gardiner Myers 9b64707159 Ignore no-longer-used topology fields in ClusterSpec 2023-07-19 08:48:38 -07:00
John Gardiner Myers 245cd64a3a Get VFSContext from caller in LoadChannel() 2023-07-17 21:45:43 -07:00
Kubernetes Prow Robot 2a0cc8a7dc
Merge pull request #15627 from hakman/azure_dns_none
azure: Add support for dns=none
2023-07-16 04:27:05 -07:00
Kubernetes Prow Robot ef284b11e5
Merge pull request #14960 from johngmyers/vfscontext
Add VFSContext to various clientsets
2023-07-15 14:55:05 -07:00
Ciprian Hacman 83d14d4343 azure: Add support for dns=none 2023-07-13 09:04:06 +03:00
John Gardiner Myers d926989600 v1alpha3: Rename GCE networking to GCP 2023-07-09 16:48:26 -07:00
Ciprian Hacman d9cb80aecb aws: Don't set instance metadata for bastions in other clouds 2023-07-08 18:19:40 +03:00
John Gardiner Myers 11304807f2 Hold reference to VFSContext from simple.Clientset 2023-07-06 19:41:45 -07:00
Ciprian Hacman 50454d8cfc azure: Enable support for public load balancer 2023-06-30 21:14:15 +03:00
Ciprian Hacman 246da5a548 Add create cluster flag for specifying the list of etcd clusters 2023-06-27 17:14:09 +03:00
John Gardiner Myers 0dfac69d83 Remove support for Weave networking 2023-06-22 23:03:24 -07:00
Ciprian Hacman 5901a8ae30 Use Ubuntu 22.04 (Jammy) as the default distro for K8s 1.27+ 2023-06-07 14:52:25 +03:00
justinsb b80d166254 Default to dns=none for hetzner and digitalocean
For new clusters only, default to dns=none on hetzner and
digitalocean.

Hetzner previously used dns=private (with the same behaviour), but
dns=none is more specific.

DigitalOcean previously defaulted to peer-to-peer gossip, but dns=none
is simpler and requires fewer permissions.
2023-06-01 11:14:06 -04:00
justinsb ca67b1ca1e Refactor: rename IsGossip -> UsesLegacyGossip
We want to be able to use "dns=none" (without peer-to-peer gossip)
even for clusters that have the k8s.local extension.  These were
previously called "gossip clusters", but really that is an
implementation; what actually matters to users is that they don't rely
on writing records into a DNS zone (such as Route53).
2023-05-22 21:50:16 -04:00
Kubernetes Prow Robot ca3b53c00a
Merge pull request #15095 from infonova/use-clustername-in-cinder-csi-plugin
Pass actual cluster name to cinder-csi-plugin
2023-02-13 09:33:29 -08:00
ederst cd50ee00ac Pass actual cluster name to cinder-csi-plugin
This passes the acutal cluster name to the cinder-csi-plugin, so that
the plugin will add the name as metadata to the backing volume in
OpenStack.

Effectively, the change will help to better identify which volume in
OpenStack belongs to which cluster, which is especially helpful when
running multiple clusters in one OpenStack tenant/project.

Setting the cluster name in both - the controller and the nodeserver -
will ensure that dynamic and ephemeral volumes will receive the correct
metadata.
2023-02-13 17:31:32 +01:00
Jesse Haka 43dd96ead0 add clustername to ccm opts 2023-02-12 17:22:13 +02:00
Justin SB 8f7ef492bf gce: Always apply the metadata-proxy-ready node label
This restores the behaviour before #14127, which wasn't documented /
intended.
2023-02-05 13:40:02 -05:00
Ciprian Hacman 163bf856d4 azure: Use Basic SKU for the API LB 2023-01-31 08:11:55 +02:00
Ciprian Hacman b1ef66f136 etcd-manager: Add option to set backup retention 2023-01-23 09:43:09 +02:00
Kubernetes Prow Robot a1a0ce3f33
Merge pull request #14930 from zetaab/feature/openstacknodns
OpenStack: Add support for clusters without DNS
2023-01-12 07:52:54 -08:00
John Gardiner Myers 6caaff50cd AWS: set IMDS hop limit 1 on all new clusters 2023-01-11 20:04:53 -08:00
Jesse Haka cc8871eede no dns for OpenStack 2023-01-11 20:02:02 +02:00
Kubernetes Prow Robot d247c0b37d
Merge pull request #14879 from hakman/aws_imds_all_clusters
aws: Set IMDS defaults for existing clusters
2023-01-10 22:25:19 -08:00
Ciprian Hacman 62f1d20c96 aws: Set IMDS defaults for existing clusters 2023-01-03 11:03:44 +02:00
Jesse Haka 4eee65958e set loadbalancer configs before initializing the OS clients 2022-12-27 15:39:42 +02:00
John Gardiner Myers b3dfcea95f v1alpha3: Move AWS-specific CloudConfig settings to AWSSpec 2022-12-25 16:12:02 -08:00
John Gardiner Myers 005ec38972 Remove code for no-longer-supported k8s 1.21 2022-12-24 21:44:50 -08:00
Ciprian Hacman 0c88d881a2 openstack: Stop passing cluster tags 2022-12-22 08:08:19 +02:00