Git Product home page Git Product logo

kops-bjs's Introduction

NOTICE - This project will no longer be maintained, please go to pahud/kops-cn instead.

Kops-BJS

This tutorial will walk you through building a Kubernetes cluster with Kops in AWS Beijing or NingXia Region.

Name Support Kops Version Support Kubernetes Version Last Update
pahud/kops-bjs 1.10.0 1.10.3 Aug 17th, 2018

HOWTO

Prepare the AMI

Install Kops and Kubectl client on your laptop

Create a proxy server with gost in AWS N. Virginia Region

Create a proxy forwarder in AWS Beijing Region

Create the cluster with Kops

Prepare the AMI

Check the latest AMI ID from Kops Images document and find the AMI ID in the global regions(e.g. N. Virginia).

However, as the China Beijing region already has latest CoreOS AMI, you can just check CoreOS official EC2 AMI page and select the AMI for cn-north-1 region, make sure you select the HVM AMI type. For example, current AMI ID is ami-0d5ec5d735beb907e (Container Linux 1800.7.0). Please note the latest AMI ID may change over time.

Region CoreOS AMI
Beijing(cn-north-1) ami-0d5ec5d735beb907e
NingXia(cn-northwest-1) ami-02a5768104b4e8d4c

Install Kops and Kubectl client on your laptop

Create a proxy server with gost and AWS Fargate

click the button to create a proxy server with gost and AWS Fargate in any of the following regions.

Region Launch Stack in VPC Runtime
Oregon (us-west-2) cloudformation-launch-stack Fargate+ECS
N. Virginia (us-east-1) cloudformation-launch-stack Fargate+ECS

Create a proxy forwarder in AWS Beijing or Ningxia Region

Depending on which region you woud like to provision your Kops cluster, click the button below to create an internal http_proxy forwarder for your Kops cluster. This template will create one t2.micro EC2 behind ELB in your existing VPC as the proxy forwarder.

Region Launch Stack in VPC Runtime
Beijing (cn-north-1) cloudformation-launch-stack EC2+ELB
NingXia (cn-northwest-1) cloudformation-launch-stack EC2+ELB

Fast Bootstrapping with local mirror

Depending on what region you intend to deploy your Kops, follow the fastboot guide below to continue your setup.

Region Guide
Beijing(cn-north-1) fastboot guide
NingXia(cn-northwest-1) fastboot guide

clean up

delete the cluster

$ kops delete cluster --name cluster.bjs.k8s.local --yes

And delete the two cloudformation stacks from N.Virginia and Beijing regions.

FAQ

Questions? check the FAQ list here.

kops-bjs's People

Contributors

pahud avatar

Watchers

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