Deployment create
Usage #
aioli deployment create [-h] --model MODEL
[--authentication-required [AUTHENTICATION_REQUIRED]]
[--namespace NAMESPACE]
[--autoscaling-min-replicas AUTOSCALING_MIN_REPLICAS]
[--autoscaling-max-replicas AUTOSCALING_MAX_REPLICAS]
[--autoscaling-metric AUTOSCALING_METRIC]
[--autoscaling-target AUTOSCALING_TARGET]
[--canary-traffic-percent CANARY_TRAFFIC_PERCENT]
[-a [ARG]] [-e [ENV]]
[--node-selector [NODE_SELECTOR]]
[--priority-class-name PRIORITY_CLASS_NAME]
name
Full Example #
aioli deployment create NAME --model VALUE --authentication-required VALUE --namespace VALUE --autoscaling-min-replicas VALUE --autoscaling-max-replicas VALUE --autoscaling-metric VALUE --autoscaling-target VALUE --canary-traffic-percent VALUE --arg VALUE --env VALUE --node-selector VALUE --priority-class-name VALUE
Options: #
The name of the deployment. Must begin with a letter, but may contain letters, numbers, and hyphen
–model #
The package model id, name or versioned-name (evaluated in that order) to be deployed
–authentication-required #
Deployed model requires callers to provide authentication. Specify boolean value ’true’ or ‘false’. Value ‘1’ or ‘0’ can also be used for ’true’ or ‘false’ value. When true, all interactions with the deployed service are required to be authenticated.
–namespace #
The Kubernetes namespace to be used for the deployment
–autoscaling-min-replicas #
Minimum number of replicas
–autoscaling-max-replicas #
Maximum number of replicas created based upon demand
–autoscaling-metric #
Metric name which controls autoscaling
–autoscaling-target #
Metric target value
–canary-traffic-percent #
Percent traffic to pass to new model version
-a, –arg #
Argument to be added to the service command line. If specifying an argument that starts with a ‘-’, use the form –arg=
-e, –env #
Specifies an environment variable & value as name=value, to be passed to the launched container. Specifying any –env replaces prior environment vars with those on this invocation. Use a single –env with no value to clear all environment vars.
–node-selector #
Specifies a node selector label & value as label=value, to be passed to the launched container. Example kubernetes.io/arch=amd64. Specifying any –node-selector replaces prior selectors with those on this invocation. Use a single –node-selector with no value to clear all selectors.
–priority-class-name #
Priority Class Name to be used for prioritization of deployments