Coder Social home page Coder Social logo

cascon-k8s's Introduction

Steps:

  1. Connect to your cluster
    bx cs cluster-config cascon-2017-cluster
    
  2. View cluster details with
    bx cs cluster-get cascon-2017-cluster
    
  3. You can view details in the UI as well. For example. https://console.bluemix.net/containers-kubernetes/clusters/1283cb87a6364855ad8985640505f8cd/nodes?env_id=ibm%3Ayp%3Aus-south
  4. Create a simple micro-service from nginx and deploy to Private registry
    bx cr login
    bx cr namespace-add cascon2017
    bx cr image-list
    cd my-nginx
    docker build -t registry.ng.bluemix.net/cascon2017/my-nginx:1.0.0 .
    docker push registry.ng.bluemix.net/cascon2017/my-nginx:1.0.0
    bx cr image-list
    cd ..
    
  5. You can create a Helm release for your project's stack. For example:
    helm create sample-stack-2
    
  6. Deploy the stack with the following command
    helm lint ./sample-stack --strict
    helm install ./sample-stack --name sample-stack-2
    
  7. Edit the my-nginx service and rebuild/push to registry
    cd my-nginx
    docker build -t registry.ng.bluemix.net/cascon2017/my-nginx:2.0.0 .
    docker push registry.ng.bluemix.net/cascon2017/my-nginx:2.0.0
    bx cr image-list
    cd ..
    
  8. Edit service and deploy a new version of the chart
    helm list
    helm upgrade sample-stack-2 ./sample-stack
    helm list
    helm history sample-stack-2
    
  9. Rollback to previous version
    helm rollback sample-stack-2 1
    

cascon-k8s's People

Contributors

chrisfelix avatar chrisfelix82 avatar

Watchers

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