Open HackyPenguin opened 7 years ago
I'm happy to help you out. But I got nothing off the top of my head. I'll have to get a non GKE k8s cluster up and running. It will be a few days before I can get to it.
I just did a clean install of a one node Kubernetes cluster on-prem with kubeadm and with the following steps I got "whack-a-pod" working.
Install nginx-ingress (https://kubernetes.github.io/ingress-nginx/deploy/)
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/baremetal/service-nodeport.yaml
Set the context Make sure the context is set, otherwise the make action will fail.
kubectl config set-context $(kubectl config current-context) --namespace=default
Create a Makefile.properties with the DOCKERREPO set to cloudowski
Deploy
make deploy.generic
Look up the NodePort of the ingress controller
kubectl get service -n ingress-nginx
Add to your hostfile "whackapod.example.com" pointing to your k8s node.
Hi,
Can we get instructions on how to deploy to an on prem cluster I have tried using ingress rather than type=loadbalancer and tried make file after putting the hostnames ingress listens on however I cant seem to get it working.
ill keep trying and if I can manage it ill make a pull request however any insight would be helpful.