Code Monkey home page Code Monkey logo

manifests's Introduction

Manifests

Instance workflow parameters

name Name of the the instance.

action Action to perform on the instance, values are:

  • create Create an instance
  • apply Update an instance, combined with:
    • machine-type It will change the machine type for an instance.
    • replicas It will pause (set to 0) and resume (set to 1) an instance.
  • delete Delete an instance.

System-wide parameters

host The domain name of application. Example: cluster.onepanel.io

Test using examples

Enable istio and give default service account correct roles in default namespace:

kubectl apply -f examples/namespace

Note: the following parameters need to be appeneded to all of the actions below:

-p host=test-cluster-6.onepanel.io

Create an instance:

argo submit examples/<template-name>.yaml -p name=<name> -p action=create -p machine-type=<machine-type>

Change instance machine type:

argo submit examples/<template-name>.yaml -p name=<name> -p action=apply -p machine-type=<new-machine-type>

Pause an instance:

argo submit examples/<template-name>.yaml -p name=<name> -p replicas=0 action=apply -p machine-type=cpu-1-4 -p machine-type=<existing-machine-type>

Resume an instance with existing machine type:

argo submit examples/<template-name>.yaml -p name=<name> -p replicas=1 action=apply -p machine-type=cpu-1-4 -p machine-type=<existing-machine-type>

Resume an instance with new machine-type:

argo submit examples/<template-name>.yaml -p name=<name> -p replicas=1 action=apply -p machine-type=cpu-1-4 -p machine-type=<new-machine-type>

Delete example instance:

argo submit examples/<template-name>.yaml -p name=<name> -p action=delete

Useful commands

Verifying that a service is pointed correctly:

kubectl run -i --tty --rm debug --image=busybox --restart=Never -- wget <service-name>

manifests's People

Contributors

rushtehrani avatar vafilor avatar aleksandrmelnikov avatar inohmonton99 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.