mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
docs: simplify readme svg (#1418)
This commit is contained in:
parent
d16f01d810
commit
16f2f9bb64
3 changed files with 183 additions and 705 deletions
|
@ -23,66 +23,21 @@ spawn asciinema rec --overwrite /recordings/github-readme.cast
|
|||
send "\r"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Step 1: Create IAM configuration"
|
||||
expect_prompt
|
||||
run_command "constellation iam create gcp --generate-config --projectID constellation-331613 --serviceAccountID constellation-demo --zone europe-west3-b"
|
||||
expect -re "y\/n"
|
||||
send "y"
|
||||
send "\r"
|
||||
expect_prompt
|
||||
|
||||
# TODO: Delete step once #1149 released
|
||||
run_command "# Step 2: Fill in configuration"
|
||||
expect_prompt
|
||||
run_command "yq '.provider.gcp.project = \"constellation-331613\"' -i constellation-conf.yaml"
|
||||
expect_prompt
|
||||
run_command "yq '.provider.gcp.zone = \"europe-west3-b\"' -i constellation-conf.yaml"
|
||||
expect_prompt
|
||||
run_command "yq '.provider.gcp.region = \"europe-west3\"' -i constellation-conf.yaml"
|
||||
expect_prompt
|
||||
run_command "cat constellation-conf.yaml | head -n15"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Step 3: Create cloud environment"
|
||||
expect_prompt
|
||||
run_command "constellation create --control-plane-nodes 3 --worker-nodes 2"
|
||||
expect -re "y\/n"
|
||||
send "y"
|
||||
send "\r"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Step 4: Initialize Constellation"
|
||||
expect_prompt
|
||||
run_command "constellation init"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Wait for cluster to finish bootstrapping..."
|
||||
expect_prompt
|
||||
# Without a sleep we only see a single node, not 5.
|
||||
run_command "sleep 300"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Step 5: Connect to Constellation"
|
||||
expect_prompt
|
||||
run_command "export KUBECONFIG=/constellation/constellation-admin.conf"
|
||||
expect_prompt
|
||||
run_command "kubectl get nodes"
|
||||
|
||||
run_command "# Step 6: Delete Constellation cluster"
|
||||
expect_prompt
|
||||
run_command "constellation terminate"
|
||||
expect -re "y\/n"
|
||||
send "y"
|
||||
send "\r"
|
||||
expect_prompt
|
||||
|
||||
run_command "# Step 7: Remove IAM resources"
|
||||
expect_prompt
|
||||
run_command "cd constellation-iam-terraform"
|
||||
expect_prompt
|
||||
run_command "terraform apply -destroy -auto-approve"
|
||||
expect -timeout 25
|
||||
run_command "# All resources are cleaned up."
|
||||
|
||||
# Stop recording
|
||||
send "exit"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue