Questions tagged [kustomize]

Questions about using kustomize to create and modify Kubernetes manifests in an immutable way.

Kustomize traverses a Kubernetes manifest to add, remove or update configuration options without forking. It is available both as a standalone binary and as a native feature of kubectl. Kustomize supports taking a base set of Kubernetes manifest and applying overlays that apply patches to generate an environment-specific version of the base manifest. It also included generators for configuration maps and secrets.

362 questions
0
votes
1 answer

Kustomize delete fields during patch

i'm trying to path deployment by using kustomize i need to change only env in the spec.template.spec.containers. but during kustomisation other fields are deleting too tree: k8s |_base |_ deployment.yaml |_ kustomisation.yaml |_…
0
votes
0 answers

Creating multiple ingress class only at specific overlays in Kustomize

I have a kubernetes deploy structure that looks like - /base | - ingress.yml | - kustomize.yml | - /dev | | - ingress.yml | - kustomize.yml | - /staging | | - ingress.yml …
s.singh
  • 1
  • 2
0
votes
1 answer

Use Kustomize edit to update a value in my configmap

Following is my configmap content stores in a file called configmap.yaml: apiVersion: v1 data: key1: val1 key2: val2 key3: val3 kind: ConfigMap metadata: creationTimestamp: null name: job-inputs …
0
votes
1 answer

Error running kustomization : no matches for kind "Kustomization" in version "http://kustomize.config.k8s.io/v1beta1"

I am trying to run kubectl apply for kustomization.yaml and getting below error E0316 17:33:20.781816 12333 memcache.go:255] couldn't get resource list for http://external.metrics.k8s.io/v1beta1: Got empty response for:…
megha
  • 621
  • 2
  • 11
  • 36
0
votes
1 answer

Trying to create a k8s service account and bind it to a GCP service account through Workload Identity. No errors, but also no binding

I have followed the instructions and set up Config Connector. When I run kubectl apply I get no errors, just this warning Warning: resource configconnectors/configconnector.core.cnrm.cloud.google.com is missing the…
0
votes
0 answers

Target specific resources with kustomize's PrefixSuffixTransformer

I'm trying to use a PrefixSuffixTransformer on specific resources using kustomize. Let's say we have the following scenario : . ├── base │ ├── secrets.yaml │ └── kustomization.yaml └── dev ├── prefixer.yaml └──…
Will
  • 1,792
  • 2
  • 23
  • 44
0
votes
0 answers

How to reach a Postgres database with a hostname namesuffixed by kustomize from a spring boot application?

We would like to have multiple instances of the same application in the same Kubernetes namespace. We can do that by using the name suffix capability of kustomize, so that hostname "X" becomes "X-something-unique" and that works…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
0
votes
1 answer

How to, possibly, mix multiple overlays?

I am working with an existing kustomization code base. The app heirarchy is: └── application ├── base │   ├── kustomization.yaml │   └── deployment.yaml | └── configmap.yaml └── overlays ├── nonprod └── prod I…
Adam Lang
  • 1
  • 1
0
votes
0 answers

Kustomize : mutate a string

To deploy apps on ArgoCD I use Kustomize with this folder layout : - applications - base - app1.yaml - ... - production - app1-path-patch.yaml - staging - app1-path-patch.yaml - manifests - app1 - base -…
Raphael
  • 1
  • 1
0
votes
1 answer

Kustomize and ArgoCD - Need to update a NetworkPolicy Object during PreSync and PostSync of ArgoCD Sync

There is a NetworkPolicy Object which I want to update during Argo's PreSync using annotation argocd.argoproj.io/hook: PreSync and update it again during PostSync using annotation argocd.argoproj.io/hook: PostSync. How to include both these…
0
votes
1 answer

Use Kustomize to patch across more than one dimension?

I'm exploring Kustomize. I see how it is used to create base configuration files and patches to customize specific settings for different environments, such as Dev, Test, Prod. Can it be used to patch across multiple dimensions? My project consists…
Green Grasso Holm
  • 468
  • 1
  • 4
  • 18
0
votes
1 answer

Does Kustomize require you specify an entire resource to change one value?

I'd understood that Kustomize would be the solution to my Kubernetes configuration management needs where, for example, if I want maxReplicas for a resource to be 3 on my dev and test environments but 7 in production, I could do that easily. I…
Green Grasso Holm
  • 468
  • 1
  • 4
  • 18
0
votes
0 answers

kustomize on Ingress on kubernetes (minikube) cluster

i did with success some kustomize for multi-evironnements on a files tree like : ├── base │   ├── deployment.yaml │   ├── kustomization.yaml │   ├── service.yaml ├── overlays │   ├── prod │   │   ├── application.properties │   │   ├──…
0
votes
1 answer

kubectl kustomize add annotation to multiple overlay yaml files

I am trying to merge some annotations in one file to multiple resources to keep it DRY and in order for pods to get information from a vault. Generally I can add the following code to "mylogger" by using the kind: Deployment (which I presume will…
jakox
  • 3
  • 3
0
votes
1 answer

Handle "shared" resources with Kustomize

All namespaces in my cluster are supposed to trust the same root CA. I have a mono repo with all my Kustomize files, and I'm trying to avoid having to add the root CA certificate everywhere. My idea was to go for something like that in my…