- Create a s3 repo to contain the cluster state.
- Create a Route53 domain and hosted zone.
kops create cluster --name=demo.simplepipeline.xyz\
--node-size=t2.micro\
--state=s3://k8s-demo-simplepipeline.xyz\
--zones=eu-west-1a\
--node-count=2\
--master-size=t2.micro\
--dns-zone=demo.simplepipeline.xyz
kops get cluster\
--state=s3://k8s-demo-simplepipeline.xyz
kops update cluster simplepipeline.xyz --yes\
--state=s3://k8s-demo-simplepipeline.xyz
kops validate cluster\
--state=s3://k8s-demo-simplepipeline.xyz
cat ~/.kube/config
kubectl run hello-minikube --image=gcr.io/google_containers/echoserver:1.4 --port=8080
kubectl expose deployment hello-minikube --type=NodePort
$ kubectl get service
NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE
hello-minikube 100.67.26.21 <nodes> 8080:31435/TCP 27s
kubernetes 100.64.0.1 <none> 443/TCP 44m
In the VPC security group tab in AWS modify the master.simplepipeline.xyz allowing incoming traffic from the new port.
curl api.simplepipeline.xyz:31435/test
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/kubernetes-dashboard/v1.6.3.yaml