I'm just learning Kubernetes and I'd like to avoid spending money on Elastic Load Balancing while running it on AWS.
Here's the command I use to install Kubernetes:
kops create cluster \
--cloud aws \
--name ${MY_KUBE_NAME}.k8s.local \
--state s3://${MY_KUBE_NAME} \
--master-count 1 \
--master-size ${MY_KUBE_MASTER_AWS_INSTANCE_SIZE} \
--master-volume-size ${MY_KUBE_MASTER_AWS_VOLUME_SIZE} \
--master-zones ${MY_KUBE_AWS_ZONE} \
--zones ${MY_KUBE_AWS_ZONE} \
--node-count 1 \
--node-size ${MY_KUBE_WORKER_AWS_INSTANCE_SIZE} \
--node-volume-size ${MY_KUBE_WORKER_AWS_VOLUME_SIZE}
After running that command I can see a load balancer gets created through Amazon's ELB service.
Generally, that all worked well for me and then I could use kubectl
to monitor and manage my cluster and also install Kubernetes Dashboard with its help. But one thing I don't like is that kops
makes use of ELB. That was ok in the beginning and I used the URL provided by the load balancer to access the dashboard. Now I believe I can avoid using ELB to cut down my expenses on AWS. Could you please tell me how I can use kops create cluster
without any ELB but still be able to connect to my cluster and dashboard from my local machine?