Giter Club home page Giter Club logo

kthw-lab's Introduction

README

This is useful if you are studying for you CKA, and are wanting to use Kubernetes The Hard Way (kthw) by Kelsey Hightower on AWS instead of on GCP

This code deploys and configures the network infrastructure for doing the labs. It covers some or all of the steps required in labs 3 and 4.

The idea is to be able to save time setting up the VPC, remote access, firewall rules, compute instances, and the client certs each time you want to do the lab.

Network

The network consists of:

  • 3 control nodes ips:
    • controller-0: 10.240.0.10
    • controller-1: 10.240.0.11
    • controller-2: 10.240.0.12
  • 3 worker nodes ips:
    • worker-0: 10.240.0.20
    • worker-1: 10.240.0.21
    • worker-2: 10.240.0.22
  • 3 pods ips:
    • pod-0: 10.200.0.0/24
    • pod-1: 10.200.1.0/24
    • pod-2: 10.200.2.0/24

KTHW Labs

  1. Clone this repo and make a branch for yourself - or fork it
  2. Read KTHW Lab 1. The tips on using tmux are very helpful.
  3. Install client tools in KTHW Lab 2 on your laptop.
  4. Update the main variables.tf with:
    • your SSH key name
    • your SSH public key value
    • your external / public IP address to add to the SSH allow security group
  5. Run the terraform code after updating your variable values in the variables.tf file.
    • This will cover KTHW Lab 3.
    • Note the public IP address in the output. You'll need that later.
    • verify that you can SSH to the public IP of the controller-0 instance
  6. Follow the steps in KTHW Lab 4, but run the kube-client-cert.py script to install the client certificates.
  7. Follow the instructions in the remaining labs

Save Money

Run gk e -p security-dev terraform -destroy when you are done working with your lab. You can recreate the network when you're ready to go again.

Happy Labing and Good Luck with the CKA!

kthw-lab's People

Contributors

beckitrue avatar

Watchers

 avatar

Forkers

auth0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.