Giter Site home page Giter Site logo

cloudnativedevops-ja / demo Goto Github PK

View Code? Open in Web Editor NEW
28.0 2.0 5.0 359 KB

オライリー・ジャパン「Kubernetes で実践するクラウドネイティブ DevOps」に付属するサンプルコード

Home Page: https://www.oreilly.co.jp/books/9784873119014/

License: MIT License

Dockerfile 20.29% Go 44.35% HCL 35.36%

demo's Introduction

Kubernetes で実践するクラウドネイティブ DevOps

Kubernetes で実践するクラウドネイティブ DevOps の表紙

ようこそ!このリポジトリは、オライリー・ジャパン「Kubernetes で実践するクラウドネイティブ DevOps」に付属するサンプルコードです。原著である「Cloud Native DevOps with Kubernetes」が提供するサンプルコードから2019年10月時点で最新バージョンの Kubernetes 1.16 で動作するように修正しています。

本書の購入はこちらから:

環境

サンプルコードのビルドと実行には次が必要です。

  • Go バージョン 1.11 またはそれ以上
  • Docker バージョン 18.3 またはそれ以上

Kubernetes クラスタの構築

サンプルの設定ファイルは、Kubernetes 1.16 で動作を確認しています。ローカル環境に Kubernetes クラスタを構築するには Minikube または Kind、Docker Desktop が使用できます。Docker Desktop のセットアップ手順は本書に記載がありますのでご参照ください。

ここでは、Minikube と Kind で Kubernetes 1.16 のクラスタを作成する方法を説明します。

Minikube

Minikube のインストールは「Minikube のインストール」にしたがってください。

minikube start --kubernetes-version=v1.16.4

Kind

Kind のインストールは「Quick Start」にしたがってください。

kind create cluster --image=kindest/node:1.16.4

オリジナルコード

サンプルコードのオリジナルは、 https://github.com/cloudnativedevops/demo です。


Cloud Native DevOps with Kubernetes

Cloud Native DevOps cover image

Welcome! This is the example code repository to accompany the book 'Cloud Native DevOps with Kubernetes', by John Arundel and Justin Domingus. Buy the book here:

About the book

From the preface:

You'll learn what Kubernetes is, where it comes from, and what it means for the future of software development and operations. You'll learn how containers work, how to build and manage them, and how to design cloud native services and infrastructure.

You'll understand the trade-offs between building and hosting Kubernetes clusters yourself, and using managed services. You'll learn the capabilities, limitations, and pros and cons of popular Kubernetes installation tools such as kops, kubeadm, and Kubespray. You'll get an informed overview of the major managed Kubernetes offerings from the likes of Amazon, Google, and Microsoft.

You'll get hands-on practical experience of writing and deploying Kubernetes applications, configuring and operating Kubernetes clusters, and automating cloud infrastructure and deployments with tools such as Helm. You'll learn about Kubernetes support for security, authentication, and permissions, including Role-Based Access Control (RBAC), and best practices for securing containers and Kubernetes in production.

You'll learn how to set up continuous integration and deployment with Kubernetes, how to back up and restore data, how to test your cluster for conformance and reliability, how to monitor, trace, log, and aggregate metrics, and how to make your Kubernetes infrastructure scalable, resilient, and cost-effective.

The book aims to teach you everything you need to know to deploy, run, and scale applications in Kubernetes, and most importantly, to give you working example code for everything we demonstrate. That code is open source, available for free for you to use and adapt whether or not you buy the book. And here it is!

Show me the code

Almost all the example code involves our 'hello world' demo application. Here is the list of examples; follow the links to see the documentation on each example.

Terraform examples

We also include some Terraform code examples, to help you manage cloud resources with code. Unfortunately we didn't have space to discuss these in the book, but we hope they'll be useful to you anyway.

Google Cloud

Amazon AWS

You will need

To build and run all of these examples, you will need:

  • Go version 1.11 or above
  • Docker version 18.03 or above

Where you need other tools for specific examples, we'll mention that in the README for the example.

Contributing to the repo

We would absolutely love it if you contributed! Feel free to send us a PR to add new examples, add versions of the examples for different cloud providers (for example Microsoft Azure), or fix or improve the existing examples.

demo's People

Contributors

bitfield avatar domingusj avatar superbrothers avatar

Stargazers

Kengo Nonaka avatar  avatar shotaro-ikeguchi avatar Kaikei avatar Kazuki Fujii avatar  avatar ega4432 avatar Kijima Daigo avatar  avatar hrmx avatar himkt avatar Takahiko Ito avatar masashi kishimoto avatar w-kote avatar  avatar  avatar r4no avatar masa avatar  avatar Yoshiyuki Koyanagi avatar Kentaro Matsushita avatar nishipy avatar Tomohiro Kusumoto avatar po3rin avatar Takuya Mannami avatar  avatar Yuta Kihara avatar Takayuki Yorikane avatar

Watchers

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