Remote Kubernetes using SSH
My setup is using a Macmini with Docker for Desktop installed and with the Kubernetes option enabled. The main objective of the setup: use
kubectl directly without any additional flags from my local computer, accessing/interacting the remote k8s instance
Ensure SSH is setup with key-based authentication
Copy public key to the remote
cat ~/.ssh/id_rsa.pub | ssh admin@macmini-server 'umask 0077; mkdir -p .ssh; cat >> .ssh/authorized_keys'