Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
4 contributors

Users who have contributed to this file

@sindhams @vijaySamanuri @tushar-tushar @DeepikaChary
140 lines (87 sloc) 5.29 KB

HyScale Tool Command Reference

Version 0.9.1


deploy

Usage:  hyscale deploy service [OPTIONS] 

Deploy an application service

Options:
  -f, --file string          service spec file `<serviceName>.hspec`. Can be repeated for multiple service deployment.
  -n, --namespace string     name of namespace `<nameSpace>`
  -a, --application string   Application Name
  -v  --verbose              `Optional` verbose mode

Description

To deploy an application service which is defined in the hspec file, use the "deploy" command. The command requires hspec file, Kubernetes namespace and the application name as inputs. Multiple hspec files (-f <serviceName1>.hspec -f <serviceName2>.hspec <serviceNameN>.hspec) can be provided to deploy multiple services.

service status

Usage:  hyscale get service status [OPTIONS]

Status of an Application Service.

Options:
  -s --service string         name of service `<serviceName>`
  -n --namespace string       name of namespace `<nameSpace>`
  -a --application string     name of application `<applicationName>`   

Description

To get the status of a particular deployed service, use the "get service status". The command requires the service name , Kubernetes namespace and application name as inputs. Multiple service names (-s <serviceName1> -s <serviceName2> -s <serviceNameN>) can be provided to get status of multiple services.

logs

Usage: hyscale get service logs [OPTIONS]

Logs of an application Service

Options:
  -s --service string         name of service `<serviceName>`
  -n --namespace string       name of namespace `<nameSpace>`
  -a --application string     name of application `<applicationName>`
  -l --lines int              `Optional` output the last given lines
  -t --tail                   `Optional` follow the logs

Description

To get the stdout logs of the deployed service , use the "get service logs" command as below. The command requires servicename, Kubernetes namespace and the application name as inputs. The command can tail the logs with the specified number of lines using -t and -l options to the command.

undeploy service

Usage: hyscale undeploy service [OPTIONS]   

Undeploy an existing deployed application service.

Options: 
  -s --service string         name of service `<serviceName>`
  -n --namespace string       name of namespace `<nameSpace>`
  -a --application string     name of application `<applicationName>`

Description

To undeploy a particular application service which was deployed by HyScale, use the "undeploy service" command. The undeploy command requires the service name , Kubernetes namespace and the application name as inputs. Multiple service names (-s <serviceName1> -s <serviceName2> -s <serviceNameN>) can be provided to undeploy multiple services.

undeploy app

Usage: hyscale undeploy app [OPTIONS]

Undeploy an existing deployed application.

Options:
  -n --namespace string       name of namespace `<nameSpace>`
  -a --application string     name of application `<applicationName>`

Description

HyScale deletes all the services of an application using the "undeploy app" command. The command requires the Kubernetes namespace and the application name as inputs.

generate manifests

Usage: hyscale generate service manifests [OPTIONS]

Generate kubernetes manifests for the specified services.

Options:
  -f, --file string          service spec file `<serviceName>.hspec`. Can be repeated for multiple service specifications.
  -a --application string     name of application `<applicationName>`

Description

HyScale abstracts the generation of Kubernetes manifests for deployments, however a user can generate the Kubernetes manifests without deployment using the "generate service manifests" command. The command requires service name , Kubernetes namespace and the application name as inputs. Multiple service names (-f <serviceName1>.hspec -f <serviceName2>.hspec <serviceNameN>.hspec) can be provided to generate Kubernetes manifests for multiple services.

app status

Usage: hyscale get app status [OPTIONS]

Status of Deployed Application.

Options:
  -n --namespace string       name of namespace `<nameSpace>`
  -a --application string     name of application `<applicationName>`

Description

To get the status of all the deployed services in an application , use the "get app status". The command requires the Kubernetes namespace and application name as inputs.

Tool Options Description:

-f <serviceName>.hspec

HyScale Service Spec file where file name should be same as service name mentioned inside spec. This is the name with which service by default gets deployed. To know how to write service spec click here.

-n <nameSpace>

Kubernetes namespace where service is deployed. namespace acts like an isolation for your application services. Generally namespace is used for describing application environments (like QA, STAGE, UAT etc..). If namespace is not present, hyscale will create one with the given name provided kubeconfig permissions.

-a <applicationName>

Logical grouping of services together with a given application name. You can give any name for application of your choice.

You can’t perform that action at this time.