Skip to content

Lecture #03 - 01/28/2019

Agenda

  • Mon, Jan 28, 2019 - Last day to drop a class without a W grade
  • Container Orchestration w/Kubernetes
  • Introduction to OpenShift
  • Infrastructure as Code w/Ansible
  • Kubernetes Lab (kops + AWS)
  • Minikube
  • Assignment #01 discussion

Slides

Lab

Install Tools

Setup & Teardown Kubernetes Cluster Using kops

  1. Setup IAM user
  2. Configure DNS and Create subdomain
  3. Cluster State storage. aws s3api create-bucket --bucket $NAME --region us-east-1
  4. Creating your first cluster.
    1. Create cluster configuration. kops create cluster --node-size t2.micro --master-size t2.micro --kubernetes-version=1.13.0 --zones=us-east-1b --master-zones=us-east-1b --node-count=1 $NAME OR kops create cluster --node-size t2.micro --master-size t2.micro --kubernetes-version=1.13.0 --zones=us-east-1b,us-east-1c,us-east-1d --master-zones=us-east-1b,us-east-1c,us-east-1d --node-count=3 $NAME
    2. Customize cluster Configuration. kops edit cluster ${NAME}
    3. Build the cluster. kops update cluster ${NAME} --yes
  5. Validate the cluster. kops validate cluster
  6. Delete the cluster. kops delete cluster --name $NAME --yes

Reading

Ansible

Kubernetes

OpenShift

Minikube & Minishift

kops

AWS ECR