Kustomize Intro Flashcards

(15 cards)

1
Q

What main problem is Kustomize designed to solve

A

Kustomize solves the problem of reusing Kubernetes YAML across multiple environments without copying the same files into separate folders for dev staging and production

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

Why is copying the same Kubernetes YAML files into separate environment folders a bad long term solution

A

It creates duplication and makes it easy for environments to drift apart when someone forgets to copy or update a file in every folder

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

In the lecture example what setting needed to change across environments

A

The number of replicas needed to change so development used 1 staging used 2 and production used 5

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

What is the base in Kustomize

A

The base is the common set of Kubernetes YAML files and default values that are shared across all environments

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

What are overlays in Kustomize

A

Overlays are environment specific customizations that modify or extend the base configuration

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

What kind of values should go into the base directory

A

Values and resources that should be the same across environments or serve as sensible defaults should go into the base directory

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

What kind of values should go into an overlay directory

A

Only the settings that need to change for a specific environment and any resources unique to that environment should go into that overlay directory

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

Why was there no real need for a development overlay in the lecture example

A

The base already set replicas to 1 which matched the development requirement so nothing had to be overridden there

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

How does Kustomize create the final manifest that gets applied to the cluster

A

Kustomize combines the base configuration with the chosen overlay and builds the final Kubernetes YAML manifest

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

What folder structure is commonly used with Kustomize

A

A common structure uses one base directory and an overlays directory with separate subdirectories for environments like development staging and production

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

Does Kustomize require a templating language like Helm

A

No Kustomize does not use a templating language and instead works by patching and customizing plain YAML

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

Why is Kustomize often considered simpler than Helm for this use case

A

Kustomize keeps everything as normal YAML files which makes the configuration easier to read validate and reason about

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

Is Kustomize built into kubectl

A

Yes Kustomize functionality is built into kubectl although the standalone Kustomize tool may be newer

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

What is the main workflow when using Kustomize for multiple environments

A

You define shared resources in base define environment specific changes in overlays and then build or apply the combined result for the target environment

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

What is the biggest advantage of Kustomize over manual YAML duplication for environment management

A

It lets you customize only what changes per environment while keeping the shared configuration in one place which is more maintainable and scalable

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