name Name of the the instance.
action Action to perform on the instance, values are:
createCreate an instanceapplyUpdate an instance, combined with:machine-typeIt will change the machine type for an instance.replicasIt will pause (set to0) and resume (set to1) an instance.
deleteDelete an instance.
host The domain name of application. Example: cluster.onepanel.io
Enable istio and give default service account correct roles in default namespace:
kubectl apply -f examples/namespaceNote: 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=deleteVerifying that a service is pointed correctly:
kubectl run -i --tty --rm debug --image=busybox --restart=Never -- wget <service-name>