• Stars
    star
    274
  • Rank 150,274 (Top 3 %)
  • Language
    Shell
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Learn Kubernetes in 10 days

Kubernetes For You

Are you new to Kubernetes? Want to build your career in Kubernetes?

Then Welcome ! You are at the right place.

This repository brings you tutorials that help you get hands-on experience using Kubernetes. Here you will find a mix of labs and tutorials that will help you, no matter if you are a beginner, SysAdmin, IT Pro or Developer. Yes, you read it correct ! Its $0 learning platform. You don't need any infrastructure. Most of the tutorials runs on Play with K8s Platform. This is a free browser based learning platform for you. Kubernetes tools like kubeadm, kompose & kubectl are already installed for you. All you need is to get started.

We recommend you start with one of our Beginners Guides, and then move to intermediate and expert level tutorials that cover most of the features of Kubernetes. For a comprehensive approach to understanding Docker, I have categorized it as shown below:

Kubernetes for Beginners

Kubernetes for Intermediate

Kubernetes for Advanced Users

Getting Started with Kubernetes

To get started with Kubernetes, follow the below steps:

Click on Add Instances to setup first k8s node cluster

Cloning the Repository

git clone https://github.com/ajeetraina/kubernetes101/
cd kubernetes101/install

Bootstrapping the First Node Cluster

sh bootstrap.sh

Adding New K8s Cluster Node

Click on Add Instances to setup first k8s node cluster

Wait for 1 minute time till it gets completed.

Copy the command starting with kubeadm join ..... We will need it to be run on the worker node.

Setting up Worker Node

Click on "Add New Instance" and paste the last kubeadm command on this fresh new worker node.

[node2 ~]$ kubeadm join --token 4f924f.14eb7618a20d2ece 192.168.0.8:6443 --discovery-token-ca-cert-hash  sha256:a5c25aa4573e06a0c11b11df23c8f85c95bae36cbb07d5e7879d9341a3ec67b3```

You will see the below output:

[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters.
[preflight] Skipping pre-flight checks[discovery] Trying to connect to API Server "192.168.0.8:6443"
[discovery] Created cluster-info discovery client, requesting info from "https://192.168.0.8:6443"
[discovery] Requesting info from "https://192.168.0.8:6443" again to validate TLS against the pinned public key
[discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server "192.168.0.8:6443"[discovery] Successfully established connection with API Server "192.168.0.8:6443"
[bootstrap] Detected server version: v1.8.15
[bootstrap] The server supports the Certificates API (certificates.k8s.io/v1beta1)
Node join complete:
* Certificate signing request sent to master and response
  received.
* Kubelet informed of new secure connection details.

Run 'kubectl get nodes' on the master to see this machine join.
[node2 ~]$

Verifying Kubernetes Cluster

Run the below command on master node

[node1 ~]$ kubectl get nodes
NAME      STATUS    ROLES     AGE       VERSION
node1     Ready     master    15m       v1.11.3
node2     Ready     <none>    1m        v1.11.3
[node1 ~]$

Adding Worker Nodes

[node1 ~]$ kubectl get nodes
NAME      STATUS     ROLES     AGE       VERSION
node1     Ready      master    18m       v1.11.3
node2     Ready      <none>    4m        v1.11.3
node3     Ready      <none>    39s       v1.11.3
node4     NotReady   <none>    22s       v1.11.3
node5     NotReady   <none>    4s        v1.11.3
[node1 ~]$
[node1 ]$ kubectl get po
No resources found.
[node1 ]$ kubectl get svc
NAME         TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   1h
[node1 istio]$

Learn Kubernetes in 10 Days

Day-0: What is Kubernetes? What are its components
Day-1: Getting Started with Pods, Services & Replicasets
Day-2: Kubernetes on AWS
Day-3: Kubernetes on GCP
Day-4: Kubernetes on Azure
Day-5: Kubernetes on Vagrant
Day-6: Kubernetes & Networking
Day-7: Kubernetes & Network Policy
Day-8: Kubernetes & Monitoring
Day-9: Kubernetes & Service Catalog
Day-10: Kubernetes & RBAC
Day-11: Kubernetes & Ingress
Day-12: Kubernetes and Jobs

Kubernetes on Collabnix.com

5 Minutes to Bootstrap Kubernetes Cluster on GKE using Docker for Mac 18.03.0
Context Switching Made Easy under Kubernetes powered Docker for Mac 18.02.0
2-minutes to Kubernetes Cluster on Docker for Mac 18.01 using Swarm CLI
3 Minutes to Single Node Kubernetes cluster on Docker for Mac Platform
When Kubernetes Meet Docker Swarm for the First time under Docker for Mac 17.12 Release
A First Look at Kubernetes Integrated Docker For Mac Platform
When Moby Meet Kubernetes for the first time
How to Build Kubernetes Cluster using CRI-containerd & Moby
Getting Started with Multi-Node Kubernetes Cluster using LinuxKit

More Repositories

1

docker101

Visit https://dockerlabs.collabnix.com
PHP
214
star
2

jmeter-docker

Setting up JMeter Distributed Load Testing Environment under Docker 17.03 Swarm Mode Cluster
Dockerfile
36
star
3

prometheus-armv7

A Docker Image of Prometheus for Raspberry Pi
Dockerfile
28
star
4

nagios-centos-arm

This is the first Dockerized Nagios Container for Raspberry Pi ARM architecture
Shell
13
star
5

collabnix

A Curated List of Docker & Kubernetes Resources
10
star
6

chatgpt-docker

Python
8
star
7

redis

Everything around Redis OSS , RedisInsight & Redis Modules
Python
7
star
8

Dell-System-Monitoring

Docker compose file for Dell hardware Monitoring
Shell
5
star
9

ajeetraina.github.io

5
star
10

openfaas

Getting Started with OpenFaas
Python
4
star
11

hellowhale

HTML
4
star
12

openfaas-retweet

Retweet Bot using OpenFaaS
Python
3
star
13

vellore

HTML
3
star
14

interviewq-README.md

3
star
15

webpage

A Simple HTML Webpage for Demonstrating CI-CD with Docker, Jenkins & GitHub
HTML
3
star
16

chatgpt-kubernetes

Python
3
star
17

ajeetraina

Docker Captain, ARM Innovator, Technologist
2
star
18

nginx-reverse-proxy

2
star
19

chatgpt-awesomeness

A Curated List of ChatGPT Awesome Links and Tools
2
star
20

ngnix-reverse-proxy-nextcloud

2
star
21

testcollabnix

Makefile
1
star
22

rexray

Everything about DellEMC RexRay
1
star
23

ffmpeg

Script for Installing FFMPEG on Linux
1
star
24

usm

HTML
1
star
25

Docker-Workshop

This is for Beginners who wants to start with Docker Basics and move to the advanced level of understanding around Docker Tools and Ecosystem.
1
star
26

docker-nagios

Docker container for Nagios 4.0.8 plus Dell check_openmanage plugin
Shell
1
star
27

spring-docker-demo

Getting Started Guide for Spring, Maven and Docker
Java
1
star
28

students-database-dotnet-docker

C#
1
star