@ -254,7 +254,7 @@ func NewCmdClusterCreate() *cobra.Command {
cmd . Flags ( ) . String ( "api-port" , "" , "Specify the Kubernetes API server port exposed on the LoadBalancer (Format: `[HOST:]HOSTPORT`)\n - Example: `k3d cluster create --servers 3 --api-port 0.0.0.0:6550`" )
_ = ppViper . BindPFlag ( "cli.api-port" , cmd . Flags ( ) . Lookup ( "api-port" ) )
cmd . Flags ( ) . StringArrayP ( "env" , "e" , nil , "Add environment variables to nodes (Format: `KEY[=VALUE][@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d cluster create --agents 2 -e \"HTTP_PROXY=my.proxy.com\" -e \"SOME_KEY=SOME_VAL@server[0]\"`" )
cmd . Flags ( ) . StringArrayP ( "env" , "e" , nil , "Add environment variables to nodes (Format: `KEY[=VALUE][@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d cluster create --agents 2 -e \"HTTP_PROXY=my.proxy.com@server[0] \" -e \"SOME_KEY=SOME_VAL@server[0]\"`" )
_ = ppViper . BindPFlag ( "cli.env" , cmd . Flags ( ) . Lookup ( "env" ) )
cmd . Flags ( ) . StringArrayP ( "volume" , "v" , nil , "Mount volumes into the nodes (Format: `[SOURCE:]DEST[@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d cluster create --agents 2 -v /my/path@agent[0,1] -v /tmp/test:/tmp/other@server[0]`" )
@ -263,7 +263,7 @@ func NewCmdClusterCreate() *cobra.Command {
cmd . Flags ( ) . StringArrayP ( "port" , "p" , nil , "Map ports from the node containers to the host (Format: `[HOST:][HOSTPORT:]CONTAINERPORT[/PROTOCOL][@NODEFILTER]`)\n - Example: `k3d cluster create --agents 2 -p 8080:80@agent[0] -p 8081@agent[1]`" )
_ = ppViper . BindPFlag ( "cli.ports" , cmd . Flags ( ) . Lookup ( "port" ) )
cmd . Flags ( ) . StringArrayP ( "label" , "l" , nil , "Add label to node container (Format: `KEY[=VALUE][@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d cluster create --agents 2 -l \"my.label@agent[0,1]\" -v \"other.label=somevalue@server[0]\"`" )
cmd . Flags ( ) . StringArrayP ( "label" , "l" , nil , "Add label to node container (Format: `KEY[=VALUE][@NODEFILTER[;NODEFILTER...]]`\n - Example: `k3d cluster create --agents 2 -l \"my.label@agent[0,1]\" -l \"other.label=somevalue@server[0]\"`" )
_ = ppViper . BindPFlag ( "cli.labels" , cmd . Flags ( ) . Lookup ( "label" ) )
/ * * * * * * * * * * * * * * * * * *