Add some more information how to setup the configuration right before deploying to a remote cluster

This commit is contained in:
Grzegorz Leoniec 2019-02-26 13:46:03 +01:00
parent da94d0b3a0
commit 7c05aadcf7
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -33,6 +33,17 @@ $ minikube service nitro-web --namespace=human-connection
## Digital Ocean
1. At first, create a cluster on Digital Ocean.
2. Download the config.yaml if the process has finished.
3. Put the config file where you can find it later (preferable in your home directory under `~/.kube/`)
4. In the open terminal you can set the current config for the active session: `export KUBECONFIG=~/.kube/THE-NAME-OF-YOUR-CLUSTER-kubeconfig.yaml`
Otherwise you would have to always add `--kubeconfig ~/.kube/THE-NAME-OF-YOUR-CLUSTER-kubeconfig.yaml` on every `kubectl` command that our are running.
5. Now check if you can connect to the cluster and if its your newly created one by running: `kubectl get nodes`
If you got the steps right above and see your nodes you can precede.
First, install kubernetes dashboard:
```sh
$ kubectl apply -f dashboard/