Commit Graph

59 Commits

Author SHA1 Message Date
Thorsten Klein
d8eb206e44
Merge pull request #218 from rancher/feature/master-loadbalancer
[v3/Feature] Add cluster-loadbalancer
2020-04-15 07:34:39 +02:00
iwilltry42
77bddc4dd0
create/cluster: check if cluster with given name exists
To prevent accidental rollbacks of existing clusters with the same name,
we now check if a cluster with the chosen name exists first.
If it exists, we don't do anything at all and just error our
2020-04-14 19:58:21 +02:00
iwilltry42
a24d6f864e
Proxy: deploy a configurable nginx proxy in front of the cluster
Up to now, we exposed ports on single master nodes, which is quite
inconvenient on user side and troublesome on development side.
Now, we're creating a proxy container which exposes a single port
and proxies traffic to all master nodes.
Currently, this only works with 'k3d create cluster' and won't
update the proxy when using 'k3d create node --role master'.
2020-04-08 17:45:27 +02:00
iwilltry42
164d850321
CLEANUP: clean TODOs in createCluster 2020-04-06 16:51:09 +02:00
iwilltry42
a7ef585e12
createCluster: allow 0 or 1 arg
Allow 0 or 1 argument for k3d create cluster.
If 0, then we'll use the default cluster name.
2020-04-06 16:34:32 +02:00
iwilltry42
7005f8182a
validate clustername on create and use global runtime variable 2020-03-29 19:39:41 +02:00
iwilltry42
2d35895edc
move no-lb setting to createClusterOpts 2020-02-01 14:37:57 +01:00
iwilltry42
3ff51a0446
move no-lb setting to createClusterOpts 2020-02-01 14:32:04 +01:00
iwilltry42
2b674cb4e3
use createClusterOpts 2020-02-01 14:10:14 +01:00
iwilltry42
5500872544
Fatal out when using portmapping without node filter on a cluster with more than one node 2020-02-01 13:33:07 +01:00
iwilltry42
55646119c2
CLI: rollback if cluster creation failed 2020-01-28 15:06:07 +01:00
iwilltry42
b8ac954d69
implement --wait asynchronously 2020-01-28 10:28:30 +01:00
iwilltry42
a25d1d346a
add clusterCreateOpts flag struct and implement extra args for k3s server/agent 2020-01-15 09:29:35 +01:00
iwilltry42
bc49f197d9
cleanup and prepare for push to rancher/k3d 2020-01-05 21:16:31 +01:00
iwilltry42
f571ff3143
getk3sversion 2020-01-02 14:32:25 +01:00
iwilltry42
8aad61a39a improve usage texts 2019-12-12 08:20:24 +01:00
iwilltry42
1a91401d19 start with --wait flag 2019-12-05 11:23:56 +01:00
iwilltry42
68609ec3a0 add info text after cluster creation 2019-12-05 09:55:24 +01:00
iwilltry42
ef2907de41 replace 127.0.0.1:6443 in kubeconfig as well 2019-12-05 09:33:22 +01:00
iwilltry42
52b23adec9 v1.0.0 as default version 2019-12-05 09:15:29 +01:00
iwilltry42
11b937a910 implement load images command 2019-12-04 14:54:58 +01:00
iwilltry42
e6d7726ffb add image volume 2019-12-04 08:19:42 +01:00
iwilltry42
4e24521c0d disable external datastore option for now 2019-11-26 17:07:23 +01:00
iwilltry42
189e430f90 fix port collisions due to default exposed port on master nodes 2019-11-22 18:46:52 +01:00
iwilltry42
bd39336b29 init ha setup with cluster-init 2019-11-20 21:38:59 +01:00
iwilltry42
7185a160c0 init new flags 2019-11-20 20:37:52 +01:00
iwilltry42
e2834f5320 fix error when no filter is set for single master api port 2019-11-11 12:45:28 +01:00
iwilltry42
5851da3ef3 start coupling network to clusters 2019-11-11 11:14:54 +01:00
iwilltry42
1ca9193776 add warning for multi-master setups 2019-11-11 09:33:41 +01:00
iwilltry42
45cc1ed57b --api-port implementation 2019-11-11 09:32:28 +01:00
iwilltry42
7827840e64 start apiport stuff 2019-11-08 18:12:23 +01:00
iwilltry42
7098be1693 initial version of --port flag 2019-11-08 14:21:21 +01:00
iwilltry42
5ab8d5b50d init --port flag implementation 2019-11-07 16:15:32 +01:00
iwilltry42
77ed3d3669 init --port flag implementation 2019-11-07 16:15:18 +01:00
iwilltry42
f87c7cd9fa remove debug prints and add some comments 2019-11-07 13:22:39 +01:00
iwilltry42
d31a4334cc always have src and dest in volume mount 2019-11-07 13:09:11 +01:00
iwilltry42
b52da4ac52 fix filtering 2019-11-07 12:01:33 +01:00
iwilltry42
82c29868a1 use pointers to nodes in cluster struct 2019-11-07 10:18:54 +01:00
iwilltry42
c92c9b8e2f filter nodes and validate volume mounts 2019-11-06 19:34:20 +01:00
iwilltry42
62501af7e9 prepare volume flag 2019-11-05 19:17:47 +01:00
iwilltry42
b76a13e0c6 fix package name 2019-10-28 19:36:02 +01:00
iwilltry42
23a78b72fc separate cli 2019-10-28 19:34:15 +01:00
iwilltry42
116dd5dad8 fix api-port 2019-10-25 11:09:26 +02:00
iwilltry42
af04a621c3 enable --volume flag basics 2019-10-25 08:58:38 +02:00
iwilltry42
a14854502e allow setting api-port 2019-10-24 15:31:29 +02:00
iwilltry42
d88c42208f disable api port for now 2019-10-10 16:41:09 +02:00
iwilltry42
544480e010 add cluster secret 2019-10-10 16:39:13 +02:00
iwilltry42
84cdfac7cb introduce node roles 2019-10-10 15:02:56 +02:00
iwilltry42
7583340d23 create cluster 2019-09-30 13:18:42 +02:00
iwilltry42
43eb626b0c specify role, image and labels 2019-09-30 12:33:17 +02:00