GithubHelp home page GithubHelp logo

moberghammer / kubernetes-katas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eficode-academy/kubernetes-katas

0.0 0.0 0.0 513 KB

Deliberate exercises for Kubernetes

Shell 81.13% JavaScript 12.09% Dockerfile 6.78%

kubernetes-katas's Introduction

kubernetes-katas

A selection of exercises for Kubernetes (K8s).

The exercises are ordered in the way we think it makes sense to introduce Kubernetes concepts.

There are tree variants of the ingress exercise - one of them is Google Kubernetes Engine (gke) specific, whereas the two others are generic and should work on any Kubernetes cluster.

You can find a summary of many of the commands used in the exercises in the cheatsheet.md.

Setup

Exercises

kubectl autocompletion

On Linux, using bash, run the following commands:

$ echo "source <(kubectl completion bash)" >> ~/.bashrc
$ . ~/.bashrc

The commands above will enable kubectl autocompletion when you start a new bash session and source (reload) bashrc i.e. enable kubectl autocompletion in your current session.

See: Kubernetes.io - Enabling shell autocompletion for more info.

Cheatsheet

A collection of useful commands to use throughout the exercises:

$ kubectl api-resources         # List resource types


$ kubectl explain <resource>    # Show information about a resource
$ kubectl explain deployment


# List resources in cluster
$ kubectl get <resource>                    # In current namespace
$ kubectl get <resource> -n <namespace>     # In specific namespace
$ kubectl get <resource> --all-namespaces   # In all namespaces
$ kubectl get <resource> -o wide            # Add extended information
$ kubectl get <resource> -o yaml            # output in YAML format
$ kubectl get <resource> -o json            # output in JSON format

# Example
$ kubectl get pods [-n abc|--all-namespaces] [-o wide|yaml|json]

See: kubectl - Cheat Sheet for a more extended overview of the kubectl command.

Auto-completion

See: kubectl - Autocomplete

kubernetes-katas's People

Contributors

addono avatar alexchiri avatar atombrella avatar bechhansen avatar efikiri avatar figaw avatar hi-fi avatar jkrag avatar michaelvl avatar nadeemja avatar nyvanga avatar olehau avatar sofusalbertsen avatar zanderhavgaard 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.