Giter Site home page Giter Site logo

cka_lab's Introduction

CKA Lab

Laboratory environment for "Certified Kubernetes Administrator (CKA)" Linux Academy course

kubernetes v1.13 (to use a different version look at https://github.com/pbacterio/cka_lab/tags)

Build cluster

Execute: ./build_cluster.sh

This script creates three virtual machines:

name IP
master 192.168.33.20
node1 192.168.33.21
node2 192.168.33.22

To access this machines just use vagrant ssh <machine>, for example:

vagrant ssh master or vagrant ssh node1

Access Kubernetes

The vagrant user on master node has admin credential for kubernetes. So you can use kubectl on a easy way.

Example:

[pbacterio@localhost cka_lab]$ vagrant ssh master
Last login: Mon Jan 28 09:24:31 2019 from 192.168.121.1
[vagrant@master ~]$ kubectl get nodes
NAME     STATUS   ROLES    AGE     VERSION
master   Ready    master   2m57s   v1.13.2
node1    Ready    <none>   2m15s   v1.13.2
node2    Ready    <none>   2m12s   v1.13.2

Shutdown

To stop all the machines execute: vagrant halt

Boot up

To boot up the cluster use: vagrant up

Destroy

If you want to destroy the cluster to build it again or just to free resources, use: vagrant destroy

cka_lab's People

Contributors

pbacterio avatar ishwarkanse avatar

Watchers

James Cloos avatar  avatar  avatar

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.