Code Monkey home page Code Monkey logo

k8shserver's Introduction

k8shserver

Configuration files used in http://blog.kubernetes.io/2016/12/cluster-federation-in-kubernetes-1.5.html blog post.

Before you start update scripts/0-settings.sh with your project name, domain. Then run:

. scripts/0-settings.sh

build images

You can skip this step. Images are already deployed to Docker Hub repository

make push

running

  1. make sure you have gcloud utility

  2. create cluster

    . scripts/1-create.sh
    
  3. make sure kubefed and kubectl are in $PATH

  4. initialize kubectl config

    . scripts/2-getcredentials.sh
    
  5. initialize federation

    . scripts/3-initfed.sh
    
  6. join clusters to federation plane

    . scripts/4-joinfed.sh
    
  7. create an SSL certificate for your ingress host (foo.bar.com is fine for this example)

    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /tmp/tls.key -out /tmp/tls.crt -subj "/CN=foo.bar.com"
    
  8. deploy secret, service, ingress and replica set

    kubectl --context=federation create secret tls ing-secret --key /tmp/tls.key --cert /tmp/tls.crt
    kubectl --context=federation create -f services/k8shserver.yaml
    kubectl --context=federation create -f ingress/k8shserver.yaml
    kubectl --context=federation create -f rs/k8shserver.yaml
    
  9. query the service. It may take a few minutes for ingress to allocate the IP.

    kubectl --context=federation get ing
    NAME         HOSTS     ADDRESS         PORTS     AGE
    k8shserver   *         130.211.19.38   80, 443   1m
    

k8shserver's People

Contributors

allannaim avatar csbell avatar lguminski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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