fission function run-container

fission function run-container

Alpha: Run a container image as a function

fission function run-container [flags]

Options

      --name string              Function name
      --image string             Name of the Docker image to be deployed as a function. Valid only when executorType is set to 'container'
      --port int                 Port where the application is running (default 8888)
      --command string           Command to be passed to the container. If not specified , the ones defined in the image are used
      --args string              Args to be passed to the command on the container. If not specified , the ones defined in the image are used
      --configmap stringArray    Function access to configmap, should be present in the same namespace as the function. You can provide multiple configmaps using multiple --configmap flags. In case of fn update the configmaps will be replaced by the provided list of configmaps.
      --secret stringArray       Function access to secret, should be present in the same namespace as the function. You can provide multiple secrets using multiple --secrets flags. In the case of fn update the secrets will be replaced by the provided list of secrets.
      --fntimeout int            --ft |:|: Maximum time for a request to wait for the response from the function (default 60)
      --idletimeout int          The length of time (in seconds) that a function is idle before pod(s) are eligible for recycling (default 120)
      --graceperiod int          Grace time (in seconds) for pod to perform connection draining before termination (default value will be used if negative value is given)
      --labels string            Comma separated labels to apply to the function. E.g. --labels="environment=dev,application=analytics"
      --annotation stringArray   Annotation to apply to the function. To mention multiple annotations --annotation="abc.com/team=dev" --annotation="foo=bar"
      --mincpu int               Minimum CPU to be assigned to pod (In millicore, minimum 1)
      --maxcpu int               Maximum CPU to be assigned to pod (In millicore, minimum 1)
      --minmemory int            Minimum memory to be assigned to pod (In megabyte)
      --maxmemory int            Maximum memory to be assigned to pod (In megabyte)
      --minscale int             Minimum number of pods (Uses resource inputs to configure HPA) (default 1)
      --maxscale int             Maximum number of pods (Uses resource inputs to configure HPA) (default 1)
      --targetcpu int            Target average CPU usage percentage across pods for scaling (default 80)
      --fnNamespace string       --fns |:|: Namespace for function object (default "default")
      --spec                     Save to the spec directory instead of creating on cluster
      --dry                      View the generated specs
  -h, --help                     help for run-container

Options inherited from parent commands

      --kube-context string   Kubernetes context to be used for the execution of Fission commands
      --server string         Server URL
  -v, --verbosity int         -v |:|: CLI verbosity (0 is quiet, 1 is the default, 2 is verbose) (default 1)

SEE ALSO