curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
brew install kubectl
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
mv ./kind /some-dir-in-your-PATH/kind
brew install kind
kind create cluster --name <cluster-name>
Connect to a cloud provided cluster using a connection specific to your provider
kubectl get all
Make sure no error is shown
Build and push image accordingly
change image name and tag in k8s/deploy.yaml
file
kubectl apply -f k8s
watch kubectl get all
kubectl get pods
kubectl exec -it pod/<pod-name> -- bash