Skip to content
generate-karpenter-manifests

exo compute sks generate-karpenter-manifests

Description

This command generates the Karpenter manifests for an SKS cluster

It create the code for the Kubernetes resources “ExoscaleNodeClass” and/or “NodePool” relevant to the given cluster.

Example usage:

# Generate ExoscaleNodeClass and NodePool resources
$ exo compute sks generate-karpenter-manifests my-cluster --zone de-fra-1
---
apiVersion: karpenter.exoscale.com/v1
kind: ExoscaleNodeClass
metadata:
[...]
---
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
  name: standard
[...]

$ exo compute sks km my-cluster -n
---
apiVersion: karpenter.sh/v1
kind: NodePool
metadata:
  name: standard
[...]

You can get only the NodePool or the ExoscaleNodeClass resource by using –nodepool (-n) or –exoscale-nodeclass (-e) respectively.

When no flags are given, both is assumed. It’s equivalent to “-en”.

The output can be piped to a “kubectl apply -f -” command or written to a file for further customization.

Notes:

  • Refer to Karpenter documentation for more information on the resources NodeClasses 1 and NodePools 2
exo compute sks generate-karpenter-manifests CLUSTER-NAME|ID [flags]

Options

OptionDescription
--exoscale-nodeclass, -egenerate ExoscaleNodeclass resource with important fields pre-filled
--help, -hhelp for generate-karpenter-manifests
--nodepool, -ngenerate a Nodepool manifest to define the scaling policies and constraints for the nodes created by Karpenter
--zone, -zSKS cluster zone

Options inherited from parent commands

OptionDescription
--config, -CSpecify an alternate config file [env EXOSCALE_CONFIG]
--output-format, -OOutput format (table|json|text), see "exo output –help" for more information
--output-templateTemplate to use if output format is "text"
--quiet, -QQuiet mode (disable non-essential command output)
--timeoutPer-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT]
--use-account, -AAccount to use in config file [env EXOSCALE_ACCOUNT]

Related Commands

  • sks - Scalable Kubernetes Service management
Last updated on