From 23a7535dac66a5c159880e436d95fbf874414fe3 Mon Sep 17 00:00:00 2001 From: "Alex Ellis (OpenFaaS Ltd)" Date: Wed, 15 May 2024 11:17:35 +0100 Subject: [PATCH] Update example with three hosts Signed-off-by: Alex Ellis (OpenFaaS Ltd) --- cmd/plan.go | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/cmd/plan.go b/cmd/plan.go index c8f45ee..0bdc70f 100644 --- a/cmd/plan.go +++ b/cmd/plan.go @@ -16,25 +16,21 @@ func MakePlan() *cobra.Command { Long: `Generate a bash script or plan of installation commands for K3s for a Highly Available (HA) Kubernetes cluster. -Input file format, in JSON: +Examples JSON input file: -[{ - "hostname": "node-1", - "ip": "192.168.128.100" -}, -{ - "hostname": "node-2", - "ip": "192.168.128.101" -}] +[{"hostname": "node-1", "ip": "192.168.128.102"}, +{"hostname": "node-2", "ip": "192.168.128.103"}, +{"hostname": "node-3", "ip": "192.168.128.104"}] ` + pkg.SupportMessageShort + ` `, - Example: ` # Generate an installation script where 3x of the - # available hosts are dedicated as servers, with a custom user + Example: ` # Generate an installation script where the first + # 3 available hosts are dedicated as servers, with a custom user. + # The remaining hosts are added as agents. k3sup plan hosts.json --servers 3 --user ubuntu - # Override the TLS SAN, for HA - k3sup plan hosts.json --servers 3 --tls-san $SAN_IP + # Override the TLS SAN, for HA with 5 servers specified + k3sup plan hosts.json --servers 5 --tls-san $SAN_IP `, SilenceUsage: true, }