Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 840 Bytes

connect-from-remote.md

File metadata and controls

33 lines (25 loc) · 840 Bytes

Connect from remote

# on CLIENT install kubectl 
sudo snap install kubectl --classic 

# On MASTER -server get config 
# als root
cd
microk8s config > /home/kurs/remote_config 

# Download (scp config file) and store in .kube - folder  
cd ~
mkdir .kube
cd .kube  # Wichtig: config muss nachher im verzeichnis .kube liegen 
# scp kurs@master_server:/path/to/remote_config config 
# z.B. 
scp [email protected]:/home/kurs/remote_config config
# oder benutzer 11trainingdo
scp [email protected]:/home/11trainingdo/remote_config config 

#### Evtl. IP-Adresse in config zum Server aendern 

# Ultimative 1. Test auf CLIENT 
kubectl cluster-info 

# or if using kubectl or alias 
kubectl get pods 

# if you want to use a different kube config file, you can do like so 
kubectl --kubeconfig /home/myuser/.kube/myconfig