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.
  -e, --env-var stringArray              -e |:|: Per-function environment variable as KEY=VALUE; repeatable. On fn update the provided list replaces the function's env vars. (--env keeps meaning the Environment name.)
      --env-from-secret stringArray      Project a same-namespace Secret into the function's environment: 'name' for the whole object, 'name/key' for one key (variable named after the key), 'name/key:ENV' to rename it; repeatable. On fn update the provided list replaces the previous one.
      --env-from-configmap stringArray   Project a same-namespace ConfigMap into the function's environment: 'name' for the whole object, 'name/key' for one key (variable named after the key), 'name/key:ENV' to rename it; repeatable. On fn update the provided list replaces the previous one.
      --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 (only non-negative values considered)
      --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)
      --imagepullsecret string           Secret for Kubernetes to pull an image from a private registry
      --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
  -n, --namespace string      -n |:|: If present, the namespace scope for this CLI request
  -v, --verbosity int         -v |:|: CLI verbosity (0 is quiet, 1 is the default, 2 is verbose) (default 1)

SEE ALSO