Update shell style for CLI docs for better compatibility

This commit is contained in:
Ciprian Hacman 2020-10-28 11:36:17 +02:00
parent f69ffeaa63
commit 35d49a40a2
1 changed files with 6 additions and 5 deletions

View File

@ -27,10 +27,10 @@ kops create cluster [flags]
# Create a cluster in AWS with HA masters. This cluster # Create a cluster in AWS with HA masters. This cluster
# has also been configured for private networking in a kops-managed VPC. # has also been configured for private networking in a kops-managed VPC.
# The bastion flag is set to create an entrypoint for admins to SSH. # The bastion flag is set to create an entrypoint for admins to SSH.
export NODE_SIZE=${NODE_SIZE:-m5.large}
export MASTER_SIZE=${MASTER_SIZE:-c5.large}
export ZONES=${ZONES:-"us-east-1a,us-east-1b,us-east-1c"}
export KOPS_STATE_STORE="s3://my-state-store" export KOPS_STATE_STORE="s3://my-state-store"
export MASTER_SIZE="c5.large"
export NODE_SIZE="m5.large"
export ZONES="us-east-1a,us-east-1b,us-east-1c"
kops create cluster k8s-cluster.example.com \ kops create cluster k8s-cluster.example.com \
--node-count 3 \ --node-count 3 \
--zones $ZONES \ --zones $ZONES \
@ -43,9 +43,10 @@ kops create cluster [flags]
--yes --yes
# Create a cluster in GCE. # Create a cluster in GCE.
# Note: GCE support is not GA.
export KOPS_FEATURE_FLAGS=AlphaAllowGCE
export KOPS_STATE_STORE="gs://my-state-store" export KOPS_STATE_STORE="gs://my-state-store"
export ZONES=${MASTER_ZONES:-"us-east1-a,us-east1-b,us-east1-c"} export ZONES="us-east1-a,us-east1-b,us-east1-c"
export KOPS_FEATURE_FLAGS=AlphaAllowGCE # Note: GCE support is not GA.
kops create cluster k8s-cluster.example.com \ kops create cluster k8s-cluster.example.com \
--zones $ZONES \ --zones $ZONES \
--master-zones $ZONES \ --master-zones $ZONES \