GithubHelp home page GithubHelp logo

simultechnology / kubernetes-for-developers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from williamdenniss/kubernetes-for-developers

0.0 1.0 0.0 3.08 MB

License: Apache License 2.0

Dockerfile 13.62% Ruby 7.51% Swift 3.35% Shell 9.75% PHP 30.56% Python 34.12% Java 1.09%

kubernetes-for-developers's Introduction

Kubernetes for Developers

Code samples and experiments to accompany the book Kubernetes for Developers, by William Denniss.

This is not an officially supported Google product

How to Use This Repository

The folder names (Chapter01, Chapter02, etc) correspond to the chapters in the book. There's a subfolder for each subsection, so samples for Section 5.1.3 in Chapter 5 are found in folder Chapter05/5.1.3_DescriptiveTitle. If a section has multiple discrete samples, they will be in separate folders like Chapter05/5.1.3_Sample1, Chapter05/5.1.3_Sample2.

All the code listings in the book are included as files in this repo. The intent is to make it easy to grab the files and try them out yourself, following along with the text of the book.

In some cases I've included a more comprehensive sample or experiment in this repo than what's in the book, in order for you to easily try the concept out yourself. In those cases, the folder has a README.md file with some instructions not found in the book (but still related to the concept being discussed in that section).

Running the Samples

All samples assume you have a Kubernetes cluster setup, and kubectl authenticated.

Generally, to deploy a sample, from the folder containing the YAML files, run kubectl create -f . (which will create all the Kubernetes resources defined in the current folder), and to cleanup, run kubectl delete -f ..

The samples are only designed to be deployed one at a time. If you try to deploy 2 without cleaning up, there will likely be issues.

To reset your cluster to a blank state (CAUTION: only do this on a test cluster!), you can run the following one-liner:

# Delete all objects from the current namespace
kubectl delete service,deployment,ingress,PriorityClass --all

kubernetes-for-developers's People

Contributors

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