CloudNatix logo

CloudNatix CLI

cnatix recommendations workloads apply

Commands for applying the recommendation request for the resource

Synopsis

Specifying --container and one of --cpu and/or --memory will place the workload in manual mode. For manual mode, resource quantities follow the units specified in: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#resource-units-in-kubernetes For autopilot, specifying --autopilot-managed-resource with either 'cpu', 'memory' or 'all' will place the workload in autopilot mode. Mixing manual settings and autopilot (e.g. manually setting cpu but enable autopilot for memory) is not supported. For a custome PDB to be defined specify --max-unavailable to the number of pods you want to tolerate being down at any given time (a value of 0 will not create a PDB)

cnatix recommendations workloads apply [flags]

Options

      --autopilot-managed-resource string   The resources to autopilot. Usage: 'cpu', 'memory' or 'all'. (default "all")
      --cluster-name string                 Name of target cluster
      --container string                    Name of target container
      --cpu string                          Request for CPU; Usage: 500m for 0.5CPU or 2 for requesting two CPU
  -h, --help                                help for apply
      --kind string                         Kind of target Kubernetes resource
      --max-unavailable int                 Specify a PDB based on max-unavailable pods
      --memory string                       Request for Memory; Usage: 400Mi for 400 megabytes, 2Gi for two gigabytes
      --name string                         Name of target resource
      --namespace string                    Namespace to deploy recommendation resource

Options inherited from parent commands

      --global-controller-domain string   Domain name of the CloudNatix Global Controller
      --workspace string                  workspace directory (default is $HOME/.cnatix)

SEE ALSO

Next
Getting Started