kustomization.yaml
Kubernetes native configuration management
| Type | Kustomization |
|---|---|
| File match |
kustomization.yaml
kustomization.yml
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/kustomization-yaml/latest.json |
| Source | https://www.schemastore.org/kustomization.json |
Validate with Lintel
npx @lintel/lintel check
Definitions
ConfigMapArgs contains the metadata of how to generate a configmap
Deprecated. Use envs instead.
A list of file paths. The contents of each file should be one key=value pair per line
A list of file sources to use in creating a list of key, value pairs
A list of literal pair sources. Each literal source should be a key and literal value, e.g. key=value
Name - actually the partial name - of the generated resource
Namespace for the configmap, optional
GeneratorOptions modify behavior of all ConfigMap and Secret generators
4 nested properties
Annotations to add to all generated resources
DisableNameSuffixHash if true disables the default behavior of adding a suffix to the names of generated resources that is a hash of the resource contents
Immutable if true add to all generated resources
Labels to add to all generated resources
Contains the fieldPath to an object field
GeneratorOptions modify behavior of all ConfigMap and Secret generators
Annotations to add to all generated resources
DisableNameSuffixHash if true disables the default behavior of adding a suffix to the names of generated resources that is a hash of the resource contents
Immutable if true add to all generated resources
Labels to add to all generated resources
UNDOCUMENTED.
Inventory appends an object that contains the record of all other objects, which can be used in apply, prune and delete
2 nested properties
DEPRECATED. Bases are relative paths or git repository URLs specifying a directory containing a kustomization.yaml file.
CommonAnnotations to add to all objects
BuildMetadata is a list of strings used to toggle different build options
CommonLabels to add to all objects and selectors
ConfigMapGenerator is a list of configmaps to generate from local data (one configMap per list item)
Configurations is a list of transformer configuration files
Crds specifies relative paths to Custom Resource Definition files. This allows custom resources to be recognized as operands, making it possible to add them to the Resources list. CRDs themselves are not modified.
GeneratorOptions modify behavior of all ConfigMap and Secret generators
4 nested properties
Annotations to add to all generated resources
DisableNameSuffixHash if true disables the default behavior of adding a suffix to the names of generated resources that is a hash of the resource contents
Immutable if true add to all generated resources
Labels to add to all generated resources
Generators is a list of files containing custom generators
HelmCharts is a list of helm chart configuration instances
HelmGlobals contains helm configuration that isn't chart specific
2 nested properties
ChartHome is a file path, relative to the kustomization root, to a directory containing a subdirectory for each chart to be included in the kustomization
ConfigHome defines a value that kustomize should pass to helm via the HELM_CONFIG_HOME environment variable
Images is a list of (image name, new name, new tag or digest) for changing image names, tags or digests. This can also be achieved with a patch, but this operator is simpler to specify.
Inventory appends an object that contains the record of all other objects, which can be used in apply, prune and delete
2 nested properties
2 nested properties
Labels to add to all objects but not selectors
4 nested properties
NamePrefix will prefix the names of all resources mentioned in the kustomization file including generated configmaps and secrets
NameSuffix will suffix the names of all resources mentioned in the kustomization file including generated configmaps and secrets
Namespace to add to all objects
Substitute field(s) in N target(s) with a field from a source
OpenAPI contains information about what kubernetes schema to use
Apply a patch to multiple resources
JSONPatches is a list of JSONPatch for applying JSON patch. See http://jsonpatch.com
PatchesStrategicMerge specifies the relative path to a file containing a strategic merge patch. URLs and globs are not supported
Replicas is a list of (resource name, count) for changing number of replicas for a resources. It will match any group and kind that has a matching name and that is one of: Deployment, ReplicationController, Replicaset, Statefulset.
Resources specifies relative paths to files holding YAML representations of kubernetes API objects. URLs and globs not supported.
Components are relative paths or git repository URLs specifying a directory containing a kustomization.yaml file of Kind Component.
SecretGenerator is a list of secrets to generate from local data (one secret per list item)
sortOptions is used to sort the resources kustomize outputs
Transformers is a list of files containing transformers
Validators is a list of files containing validators
Allows things modified by kustomize to be injected into a container specification. A var is a name (e.g. FOO) associated with a field in a specific resource instance. The field must contain a value of type string, and defaults to the name field of the instance
Pairs contains the key-value pairs for labels to add
IncludeSelectors indicates should transformer include the fieldSpecs for selectors
IncludeTemplates indicates should transformer include the template labels
FieldSpec completely specifies a kustomizable field in a k8s API object. It helps define the operands of transformations
2 nested properties
Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.
7 nested properties
The group of the referent
The kind of the referent
The name of the referent
The namespace of the referent
The version of the referent
AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
2 nested properties
Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.
7 nested properties
The group of the referent
The kind of the referent
The name of the referent
The namespace of the referent
The version of the referent
AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
The source of the value
The group of the referent
The version of the referent
The kind of the referent
The name of the referent
The namespace of the referent
The structured path to the source value
3 nested properties
Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.
7 nested properties
The group of the referent
The kind of the referent
The name of the referent
The namespace of the referent
The version of the referent
AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
Exclude objects that match this
The structured path(s) to the target nodes
3 nested properties
SecretArgs contains the metadata of how to generate a secret
Name - actually the partial name - of the generated resource
Namespace for the secret, optional
GeneratorOptions modify behavior of all ConfigMap and Secret generators
4 nested properties
Annotations to add to all generated resources
DisableNameSuffixHash if true disables the default behavior of adding a suffix to the names of generated resources that is a hash of the resource contents
Immutable if true add to all generated resources
Labels to add to all generated resources
Type of the secret, optional
Selector specifies a set of resources. Any resource that matches intersection of all conditions is included in this set.
The group of the referent
The kind of the referent
The name of the referent
The namespace of the referent
The version of the referent
AnnotationSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
LabelSelector is a string that follows the label selection expression https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#api
UNDOCUMENTED.
Represents a variable whose value will be sourced from a field in a Kubernetes object.
Value of identifier name e.g. FOO used in container args, annotations, Appears in pod template as $(FOO)
6 nested properties
UNDOCUMENTED.