Kustomize Transformers Flashcards

(16 cards)

1
Q

What problem do Kustomize common transformations solve

A

They let you apply the same configuration change across many Kubernetes resources without editing every YAML file by hand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is manually adding the same label or name change to many YAML files a bad approach

A

It does not scale well takes more time and increases the chance of mistakes and config drift

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Kustomize transformers at a high level

A

Transformers are features in Kustomize that modify or transform Kubernetes manifests during the build process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What subgroup of transformers is the lecture focused on

A

The lecture focuses on common transformations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the commonLabels transformation do in Kustomize

A

It adds the same label to all resources processed by that kustomization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the namespace transformation do in Kustomize

A

It places all resources processed by that kustomization into the namespace you specify

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the namePrefix transformation do in Kustomize

A

It adds the same prefix to the names of all resources processed by that kustomization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the nameSuffix transformation do in Kustomize

A

It adds the same suffix to the names of all resources processed by that kustomization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the commonAnnotations transformation do in Kustomize

A

It adds the same annotation to all resources processed by that kustomization

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where are common transformations usually declared in Kustomize

A

They are declared in the kustomization.yaml file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

If you set a namespace in kustomization.yaml what resources are affected

A

All resources imported and processed by that specific kustomization are affected

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why are common transformations useful in larger environments

A

They let you apply repeated changes consistently across many manifests from one place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is one example of a useful nameSuffix in an environment setup

A

A suffix such as dash dev can help distinguish development resources from staging or production resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is one example of a useful common label

A

A label such as org equals KodeKloud can be added to all resources for organization or filtering

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the key advantage of using transformers instead of manually editing every manifest

A

You keep changes centralized consistent and easier to maintain as the number of resources grows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Image Controller Example

A

images:
- name: nginx
newName: haproxy
newTag: 2.4