Giter Site home page Giter Site logo

learning-kubernetes's Introduction

Build Status

Learning Kubernetes

This repository contains examples I used to learn more about Kubernetes. I use this repository to take notes and write about what I learnt and what might be useful to know about Kubernetes, its components and how to use it.

Disclaimer: As stated above, this repo is mainly for taking notes. It is not meant to be a complete reference.

Minikube

I primarily use Minikube on my MacBook. It is very easy to get a Kubernetes cluster up and running with VirtualBox.

$ minikube start --vm-driver=virtualbox

This command creates a VM and starts a sinlge node Kubernetes cluster.

Working with Swagger UI

Swagger UI is a great tool browse the API. Minikube can be configured to enable it in the Kubernetes cluster.

$ minikube start --extra-config=apiserver.enable-swagger-ui=true
kubectl proxy --port=8080

Now open your browser and navigate to http://localhost:8080/swagger-ui/.

Making Docker Images Available in Minikube

Currently, I don't push Docker images to a public repository. Instead I configure the docker command to use Docker on the Minicube VM to build an image.

$ eval $(minikube docker-env)

After running this command all docker images build are available in Minikube and can be used in pod specifications for example.

Open a Shell in a Docker Container

Sometimes it is useful to open a shell in a Docker container to test something. I use the shell-demo pod provided by the Kubernetes project.

$ kubectl create -f https://k8s.io/examples/application/shell-demo.yaml
$ kubectl exec -it shell-demo -- bash
root@shell-demo:/#

learning-kubernetes's People

Contributors

timohirt avatar

Stargazers

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