1.1.39 • Published 5 years ago

@hkube/hkubectl v1.1.39

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

hkubectl

Install

curl -Lo hkubectl https://github.com/kube-HPC/hkubectl/releases/download/$(curl -s https://api.github.com/repos/kube-HPC/hkubectl/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")')/hkubectl-linux \
&& chmod +x hkubectl \
&& sudo mv hkubectl /usr/local/bin/  

Usage

hkubectl


$ hkubectl [ command ]  

Options:

optiondescriptiontyperequireddefault
--versionShow version numberboolean
--rejectUnauthorizedset to false to ignore certificate signing errors. Useful for self signed TLS certificateboolean
--endpointurl of hkube api endpointstring
--verboseverbose loggingboolean
--json, -joutput json to stdoutboolean
--helpShow helpboolean

exec


$ hkubectl exec < command >  

Execution pipelines as raw or stored

get

$ hkubectl exec get < jobId >  

Returns the executed pipeline data
Options:

optiondescriptiontyperequireddefault
jobIdThe jobId to get the resultstringtrue

raw

$ hkubectl exec raw   

execute raw pipeline from file
Options:

optiondescriptiontyperequireddefault
--file, -ffile path/name for running pipeline. use - to read from stdinstringtrue
--noWaitif true, does not wait for the execution to finishbooleanfalse
--noResultif true, does not show the result of the executionbooleanfalse

stored

$ hkubectl exec stored [ name ]  

execute pipeline by name
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstring
--file, -ffile path/name for running pipelinestring
--noWaitif true, does not wait for the execution to finishbooleanfalse
--noResultif true, does not show the result of the executionbooleanfalse

stop

$ hkubectl exec stop   

call to stop pipeline execution
Options:

optiondescriptiontyperequireddefault
jobIdThe jobId to get the resultstringtrue
reasonReason for stopping the pipelinestring

status

$ hkubectl exec status < jobId >  

Returns a status for the current pipeline
Options:

optiondescriptiontyperequireddefault
jobIdThe jobId to get the resultstringtrue

result

$ hkubectl exec result < jobId >  

returns result for the execution of a specific pipeline run
Options:

optiondescriptiontyperequireddefault
jobIdThe jobId to get the resultstringtrue

algorithm

$ hkubectl exec algorithm [ name ]  

execute algorithm
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstring
--file, -ffile path/name for extra datastring
--noWaitif true, does not wait for the execution to finishbooleanfalse
--noResultif true, does not show the result of the executionbooleanfalse

algorithm


$ hkubectl algorithm < command >  

Manage loaded algorithms

apply

$ hkubectl algorithm apply [ name ]  

apply an algorithm
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstring
--file, -fthe algorithm filestring
--envthe algorithm env choices: "python", "nodejs", "java"string
--codePaththe code path for the algorithmstring
--codeEntryPoint, --entryPointthe code entry point for the algorithmstring
--image, --algorithmImageset algorithm imagestring
--cpuCPU requirements of the algorithm in coresnumber
--gpuGPU requirements of the algorithm in coresnumber
--memmemory requirements of the algorithm. Possible units are 'Ki', 'M', 'Mi', 'Gi', 'm', 'K', 'G', 'T', 'Ti', 'P', 'Pi', 'E', 'Ei'. Minimum is 4Mistring
--noWaitif true, does not wait for the build to finishbooleanfalse
--setCurrentif true, sets the new version as the current versionbooleanfalse

list

$ hkubectl algorithm list   

Lists all registered algorithms

get

$ hkubectl algorithm get < name >  

Gets an algorithm by name
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstringtrue

delete

$ hkubectl algorithm delete < name >  

Deletes an algorithm by name
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstringtrue

version

$ hkubectl algorithm version < name >  

Gets versions of algorithm
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstringtrue
--setCurrent, --setSets the current versionstring
--forceIf true forces the change of the version (might stop running pipelines)boolean

pipeline


$ hkubectl pipeline < command >  

Manage loaded algorithms

get

$ hkubectl pipeline get [ name ]  

Gets an pipeline by name
Options:

optiondescriptiontyperequireddefault
nameThe name of the algorithmstring

store

$ hkubectl pipeline store   

Store pipeline
Options:

optiondescriptiontyperequireddefault
--file, -fpath for descriptor filestringtrue
--readmeFilepath for readme file. example: --readmeFile="./readme.mdstring

sync


$ hkubectl sync < command >  

sync local source folder into algorithm container in the cluster

watch

$ hkubectl sync watch   

watch a local folder
Options:

optiondescriptiontyperequireddefault
--algorithmName, -aThe name of the algorithm to sync data into requiredstringtrue
--folder, -flocal folder to sync.string./
--bidirectional, --bidiSync files in both waysbooleanfalse

create

$ hkubectl sync create   

creates the algorithm for development.
Options:

optiondescriptiontyperequireddefault
--algorithmName, -aThe name of the algorithmstringtrue
--folder, -flocal folder to build from.string./
--envalgorithm runtime environment choices: "python", "nodejs"string
--entryPoint, -ethe main file of the algorithmstring
--baseImagebase image for the algorithmstring

config


$ hkubectl config [ command ]  

Set configuration options for hkubectl

set

$ hkubectl config set   

Sets configuration options.

get

$ hkubectl config get   

Gets the current configuration.

1.1.39

5 years ago

1.1.38

5 years ago

1.1.37

5 years ago

1.1.36

6 years ago

1.1.35

6 years ago

1.1.34

6 years ago

1.1.33

6 years ago

1.1.32

6 years ago

1.1.31

6 years ago

1.1.30

6 years ago

1.1.29

6 years ago

1.1.28

6 years ago

1.1.27

6 years ago

1.1.26

6 years ago

1.1.25

6 years ago

1.1.24

6 years ago

1.1.23

6 years ago

1.1.22

6 years ago

1.1.21

6 years ago

1.1.20

6 years ago

1.1.19

6 years ago

1.1.18

6 years ago

1.1.17

6 years ago

1.1.16

6 years ago

1.1.15

6 years ago

1.1.14

7 years ago

1.1.13

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago