Giter Club home page Giter Club logo

cw's Introduction

Containerization with Kubernetes Workshop

Dev Tools


Docker Desktop

1. Install Docker Desktop in your development environment

Make Sure Kubernetes is enabled,

image

If you're using WSL2, don't forget to enable it toset limits as shown below: (also you need to integrate docker with your wsl2 distro (see Resources option)


Local Kubernetes

1. Getting Started with Docker Desktop Kubernetes

  • Test connection to your cluster from terminal

    • kubectl cluster-info
    • kubectl get nodes

2. Setup your default namespace.

  • Create your first namespace

    only use lower-case letters and dashes

    # for example, john or jane
    kubectl create namespace <your-firstname> 
    
    # use your own namespace as a default 
    kubectl config set-context --current --namespace=<your-namespace-name>

    # test it. below should return `No resources found in <your-namespace>`
    kubectl get pods    

3. Setup your workspace / project directory for docker and k8s labs

  • Create a directory in your local environment to do the labs. (for e.g: cw_labs)

  • For e.g, below would create cw_labs directory in your user_home

    # run this from powershell, bash, gitbash, etc. depending on your local setup
    # feel free to change the location and name as you prefer
    mkdir ~/cw_labs
  • Create Docker and Kubernetes directories with in your project_directory

  • Your setup should looks somethign like below.

    ├── cw_labs
        ├── docker              
        └── kubernetes

Keep this repo link open in a separate tab or window: https://github.com/suren-m/cw/tree/master/labs and use it as a source of truth for upto date content.


Labs

Take a look at Labs directory to get started with the labs for 01_Docker and then move on to 02_kubernetes.

Recommended:

  • At least do until 04_docker_registry.md lab before moving on to kubernetes.
  • In Kubernetes, do at least till 04_deployments.md before moving on to creating your own cluster.

AKS (for those with MSDN subscription or azure dev/sandbox environment)

  • If you have MSDN subscription and like to create and connect to AKS, see 04_aks_cluster in labs directory.

If you're new to K8s, it is recommended to first familiarize yourself on local cluster a bit by doing a few of the labs from 01_docker and 02_kubernetes before moving to AKS. (perhaps on day/week 2)

  • By all means, feel free to create it anytime if you don't have local kubernetes available.

cw's People

Contributors

suren-m avatar

Stargazers

 avatar  avatar

Watchers

 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.