Skip to content
This repository was archived by the owner on Aug 6, 2021. It is now read-only.

Commit

Permalink
correct option to switch kubeconfig context (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanphan authored Apr 29, 2021
1 parent 54747f0 commit 645f3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ At the end script asks you to add TLS certificate to your key chain (the command

Use credentials to log into [Kyma Console](https://console.local.kyma.dev)

If you wan to use `kubectl` to connect to the cluster, you have to first execute command `k3d kubeconfig merge kyma --switch-context`
If you wan to use `kubectl` to connect to the cluster, you have to first execute command `k3d kubeconfig merge kyma --kubeconfig-switch-context`
You can get the password for `[email protected]` in the future by running `kubectl get secret admin-user -n kyma-system -o jsonpath="{.data.password}" | base64 --decode`

Your cluster is ready!
Expand Down
2 changes: 1 addition & 1 deletion kyma-k3d-start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
k3d cluster start kyma --wait
export KUBECONFIG="$(k3d kubeconfig merge kyma --switch-context)"
export KUBECONFIG="$(k3d kubeconfig merge kyma --kubeconfig-switch-context)"
# Wait for nodes to be ready before scheduling any workload
while [[ $(kubectl get nodes -o 'jsonpath={..status.conditions[?(@.type=="Ready")].status}') != "True" ]]; do echo "Waiting for cluster nodes to be ready, elapsed time: $(( $SECONDS/60 )) min $(( $SECONDS % 60 )) sec"; sleep 2; done
export REGISTRY_IP=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' /registry.localhost)
Expand Down

0 comments on commit 645f3eb

Please sign in to comment.