nctl update cluster

nctl update cluster

Update cluster

nctl update cluster [flags]

Examples


  # Update a cluster using its name
  nctl update cluster --cluster-name my-cluster

  # Update a cluster using its unique cluster ID (Overrides name if provided)
  nctl update cluster --cluster-id my-cluster-id

  # Update a cluster using a values file with onboarding parameters
  nctl update cluster -f /path/to/values.yaml

  # Specify a private Helm repository and token for updating the operator
  nctl update cluster --helm-repo https://private.repo.com/helm-charts -t my-private-repo-token

  # Update a cluster while allowing connections to an address with a self-signed or unverified certificate (not recommended)
  nctl update cluster --cluster-name my-cluster --insecure

  # Update a cluster with a specific Kyverno version
  nctl update cluster --cluster-name my-cluster --kyverno-version 1.12

  # Specify a custom release name for the Kyverno operator Helm chart
  nctl update cluster --cluster-name my-cluster --release my-kyverno-release

  # Specify a custom namespace for the operator deployment
  nctl update cluster --cluster-name my-cluster --namespace custom-namespace

  # Update a cluster using a specific kubeconfig file and context
  nctl update cluster --cluster-name my-cluster --kubeconfig /path/to/kubeconfig --kube-context my-context

Options

  -i, --cluster-id string          the Nirmata Control Hub (NCH) cluster Id of cluster to be updated (Needed if cluster name is not unique)
      --cluster-name string        the name of cluster to be updated. Needed only if Id is not provided
  -t, --git-token string           token for the operator helm chart in private helm repo
      --helm-repo string           operator helm repository name (default "https://nirmata.github.io/kyverno-charts")
  -h, --help                       help for cluster
      --insecure                   allow connection to an address with a self-signed or non-verifiable certificate (not recommended)
      --kube-context string        the kube context from configured kubeconfig. Default is the current or sole context
      --kubeconfig string          kubeconfig path (defaults to $HOME/.kube/kubeconfig)
      --kyverno-version string     Kyverno version 1.11 (default "1.11")
  -n, --namespace string           operator namespace (default "nirmata-system")
      --registry-name string       name of the private registry (no need if images are not pushed to private registry)
      --registry-password string   password of the private registry (no need if images are not pushed to private registry)
      --registry-username string   user name of the private registry (no need if images are not pushed to private registry)
  -r, --release string             operator helm chart release name (default "kyverno-operator")
      --token string               Nirmata API Login Key (env NIRMATA_TOKEN)
      --url string                 Nirmata server base URL (env NIRMATA_URL)
  -f, --values-file string         the cluster onboarding parameter YAML file

Options inherited from parent commands

  -v, --v Level   log level for V logs

SEE ALSO

  • nctl update - Update Nirmata Control Hub (NCH) resources