Will be using this repository to document the steps I took to build a Kubernetes cluster on AWS
Kops Getting started
Kops Cluster Build Example
You must have configured the access key for aws within /home/Username/.aws/credentials
[default]
aws_access_key_id = XXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXX
You must also have ssh keys configured on your workstation
kops create cluster --yes --networking=kopeio-vxlan --zones=ca-central-1a,ca-central-1b --topology=private --bastion --master-count=3 --node-count=4 kube.crazysantos.com
You may also add the following 2 variables if you would like to specify custom node sizes:
--node-size=t2.micro --master-size=t2.micro
If you would like to output your kops cluster config into terraform add the following:
--out=. --target=terraform
to verify the cluster status, use the following command:
kops validate cluster
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
Logging stack can be EFK ElasticSearch FluentD Kibana or you can replace FluentD by fluent Bit.