Giter Site home page Giter Site logo

k8s-school's Introduction

k8s-school

Course

All materials are here

Solutions for installing kubernetes

https://kubernetes.io/docs/setup/pick-right-solution/#bare-metal

Exercices

Pre-requisites

Set up local machine

Depending on your linux distribution version, you might have to upgrade to docker-ce: https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce-1

sudo apt-get install curl docker.io git vim

# then add current user to docker group and restart gnome session
sudo vim /etc/group

# Install dind cluster
wget https://cdn.rawgit.com/Mirantis/kubeadm-dind-cluster/master/fixed/dind-cluster-v1.9.sh
chmod +x dind-cluster-v1.9.sh
./dind-cluster-v1.9.sh up

# Get configuration file from dind cluster
docker cp kube-master:/etc/kubernetes/admin.conf  ~/src/k8s-school/dot-kube/dindconfig
ln -sf ~/src/k8s-school/dot-kube/dindconfig ~/src/k8s-school/dot-kube/config

# Run kubectl client inside container and play with k8s
./run-kubectl.sh

Play with dashboard

http://localhost:8080/api/v1/namespaces/kube-system/services/kubernetes-dashboard:/proxy

Play with examples

git clone https://github.com/fjammes/k8s-school
cd k8s-school
# Retrieve examples
./kubectl/scripts/clone-book-examples.sh
# Run kubectl client in a Docker container
./run-kubectl.sh
cd ./scripts/
# Play with kubectl and yaml files :-)

Install 2 example apps

https://github.com/kubernetes/examples/blob/master/README.md

Install Prometheus

See here

k8s-school's People

Contributors

fjammes avatar croziere 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.