Thorsten Klein
185ffcd34f
[Enhancement] clusterDelete: proper node and network handling ( #437 )
...
This comes with several fixes/improvements
- only consider containers that have the default object label (app=k3d)
- handle network deletion
- check if there are other k3d containers connected
- if there are only registries, disconnect them
- if there are non-registry nodes, leave everything as it is
- if there are any containers connected, that are not automatically
disconnected, log a warning and continue
2021-01-07 11:32:30 +01:00
iwilltry42
85e50d819c
rename merge-default-kubeconfig to kubeconfig-merge-default to follow new naming syntax
2021-01-05 08:06:50 +01:00
iwilltry42
eafae0073a
registry: allow creating new and using existing registries
2021-01-04 09:40:36 +01:00
Thorsten Klein
c44c576d69
[Refactoring/Preparation] use real port structs as prep for registries ( #427 )
2020-12-11 16:36:10 +01:00
iwilltry42
d042c79df2
unify the registry type
2020-12-11 08:56:26 +01:00
iwilltry42
621640c901
rename ExposedPort
2020-12-10 14:41:31 +01:00
iwilltry42
0c32c36d99
rename Registry field from name to host
2020-12-10 14:36:51 +01:00
Thorsten Klein
ecc025b35e
[Feature] Registry for v4 & Restructure Cluster Creation ( #334 )
2020-12-09 15:59:20 +01:00
Thorsten Klein
778f80d8fd
[FEATURE] Config File ( #351 )
2020-12-04 16:02:37 +01:00
iwilltry42
d7b25ac6ab
v3 -> v4
2020-12-04 13:45:57 +01:00
Thorsten Klein
0f15ca34d0
[Fix] Allow literal @ in flags that have nodefilters ( #421 )
...
- literal @s can now be escaped with a preceeding backslash
- use case e.g. `--env HTTPS_PROXY=user:pass\@myproxy.com`
- if the last char before a non-literal @ (designating a following
nodefilter) is a backslash, then it can be escaped with another
backslash (no cascading escapes though)
2020-12-04 11:45:56 +01:00
Alvaro
a93932e5b6
[Feature] Options for formatted output of cluster list ( #416 , @inercia))
...
This adds a `--ouput` flag to `cluster list` for dumping the
list of clusters as a JSON or YAML document.
Signed-off-by: Alvaro Saurin <alvaro.saurin@gmail.com>
2020-12-03 13:34:33 +01:00
Fabrice Vergnenegre
2d8d60b005
FIX : #412 set Restart flag to true before creation ( #413 , thanks @fabricev)
2020-11-26 08:54:06 +01:00
Thorsten Klein
a5d2910f29
[Feature] clusterCreate: add back --env/-e flag to inject environment variables ( #409 )
2020-11-23 10:23:45 +01:00
Thorsten Klein
d0158c97c6
clusterCreate: add docker's --gpus flag ( #395 )
2020-11-03 20:12:52 +01:00
iwilltry42
8612b76577
imageImport: exit with non-zero exit code on failure
...
... if at least one step in the importing process fails, e.g. failed import for at least one cluster or one image
Fixes #393
2020-11-03 18:51:43 +01:00
Thorsten Klein
211c937fee
Merge pull request #378 from lionelnicolas/feature/set-custom-container-labels
...
Feature: add ability to set container labels on nodes using --label/-l (thanks @lionelnicolas)
2020-10-20 09:45:00 +02:00
iwilltry42
a385241c77
clusterDelete: no error if no cluster was found ( fixes #379 )
2020-10-19 23:29:18 +02:00
Lionel Nicolas
ffe8c9697c
add ability to set container labels on nodes using --label/-l
...
This supports node filters as is already done for '--volume' and '--port'.
2020-10-16 20:46:04 -04:00
iwilltry42
11cc797922
overall/logging: new trace log level
...
- new root flag '--trace' with precedence over '--verbose'
- some new trace logs
- migrated some debug logs to trace logs to reduce debug verbosity
2020-10-07 08:58:03 +02:00
iwilltry42
a51063966f
Merge branch 'main' of github.com:rancher/k3d into enhancement/host-ip
2020-10-05 15:55:15 +02:00
iwilltry42
d063482a32
clusterCreate: add --no-hostip flag to disable the automatic injection of the host.k3d.internal entry into /etc/hosts and CoreDNS
2020-10-05 15:19:00 +02:00
iwilltry42
6ddcd659da
docs: quote node filters (ref #348 )
2020-10-02 12:27:33 +02:00
iwilltry42
972c004930
add entry for host.k3d.internal to /etc/hosts in the node containers
2020-09-29 15:20:43 +02:00
iwilltry42
f6028305c9
clusterCreate: add '--no-rollback' flag to ease debugging cluster creation failures
2020-09-19 09:24:43 +02:00
Thorsten Klein
ddbf01917b
Merge pull request #333 from rancher/feature/plugin-system
...
[Feature] Basic Plugin System - SubGoal: callables
2020-09-14 08:42:08 +02:00
Tadeu Andrade
cc222ef67a
(feature) Add fish shell completions
2020-08-28 11:00:35 -03:00
iwilltry42
fb0d09545b
plugin: finish handling and executing plugins
2020-08-13 09:05:26 +02:00
iwilltry42
a746e4f2db
init plugin system
2020-08-13 07:55:45 +02:00
iwilltry42
cc3fe46a23
clusterList: include node state
2020-08-12 11:24:15 +02:00
iwilltry42
1285fb90c4
overall: add node status field
2020-08-12 11:14:18 +02:00
iwilltry42
1e228619fd
clusterCreate: fix inconsistent behavior of update-default-kubeconfig and switch-context flags. Fixes #314
2020-08-05 13:44:37 +02:00
iwilltry42
1422a87945
kubeconfig/docs: clarify kubeconfig get/print/show and merge/write
2020-08-05 12:25:06 +02:00
iwilltry42
9f76db2d4a
root: same help text for version and --version
2020-07-17 10:02:32 +02:00
iwilltry42
674e943be8
overall: fix examples/docs for changed flags
2020-07-17 07:59:00 +02:00
iwilltry42
e5d093d3ce
clusterList: add bool for loadbalancer
2020-07-15 09:10:47 +02:00
iwilltry42
41c9bdc87a
prettify help text for cluster create (volume and api-port flags)
2020-07-15 07:00:32 +02:00
iwilltry42
ec3f10ec57
use server/agent instead of master/worker
2020-07-14 20:29:33 +02:00
iwilltry42
84d6063e4b
Merge branch 'master' into enhancement/noun-verb-syntax
2020-07-14 15:31:12 +02:00
iwilltry42
b02c783130
adjust toplevel pkg functions to new syntax
2020-07-14 15:02:51 +02:00
iwilltry42
93daef1098
adjust cluster create output to new syntax
2020-07-14 12:53:12 +02:00
iwilltry42
594ead1428
remove old subcommands
2020-07-14 12:41:55 +02:00
iwilltry42
9c65d7bac6
fix command names
2020-07-14 12:40:53 +02:00
iwilltry42
93dc966411
clusterC: fix description
2020-07-14 12:39:20 +02:00
iwilltry42
d7199d7ba5
createCluster: fix description
2020-07-14 12:37:01 +02:00
iwilltry42
c38e5cef34
add alias for kubeconfig merge
2020-07-13 09:05:56 +02:00
iwilltry42
7d384d8347
add image command
2020-07-13 09:02:03 +02:00
iwilltry42
432d5905f6
add cluster start/stop commands
2020-07-13 08:57:44 +02:00
iwilltry42
2aecabb8ca
add node commands
2020-07-13 08:55:29 +02:00
iwilltry42
81ba7200f4
Sane usage of the default cluster name
...
- use by default whereever clustername is required as an arg (if
nArgs is 0)
- use by default whereever clustername is expected as flag
2020-07-08 15:33:47 +02:00