Skip to content
Snippets Groups Projects
Commit 371c3f32 authored by r0zehnal0vak's avatar r0zehnal0vak
Browse files

updated README.md

parent dd85fa10
No related branches found
No related tags found
1 merge request!2setup for local access
...@@ -45,13 +45,17 @@ cd ~/kubernetes-infra-example/ansible/01-playbook/ ...@@ -45,13 +45,17 @@ cd ~/kubernetes-infra-example/ansible/01-playbook/
ansible-playbook -i ~/kubernetes-infra-example/ansible/ansible_inventory --user=ubuntu --become --become-user=root play.yml ansible-playbook -i ~/kubernetes-infra-example/ansible/ansible_inventory --user=ubuntu --become --become-user=root play.yml
``` ```
#### Access via config
- Kubeconfig is located in the artifacts directory, you can copy the config file to <code>~/.kube</code> directory for local access.
#### Access with SSH </br> #### Access with SSH </br>
- If you need to access the cluster - If you need to access the cluster
- Bastion ansible_hosts at <code>~/kubernetes-infra-example/ansible/ansible_inventory</code> - Bastion ansible_hosts at <code>~/kubernetes-infra-example/ansible/ansible_inventory</code>
``` ```
ssh -J ubuntu@195.113.167.169 ubuntu@10.10.10.26 ssh -J ubuntu@<bastion_ip_address> ubuntu@<control-node_ip_address>
# For example:
# ssh -J ubuntu@195.113.167.169 ubuntu@10.10.10.26
sudo -i sudo -i
kubectl get nodes kubectl get nodes
``` ```
Kubeconfig is located in the artifacts directory, you can copy the config file to ~/.kube directory for local access.</br>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment