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 uses wrong api version

When I kustomize the cockroachdb helm chart with kubectl kustomize, the wrong kubernetes api version is used for some ressources. kustomization piVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: apps generators: -…
8bit
  • 528
  • 2
  • 6
  • 25
0
votes
0 answers

has to restart minikube to make my service successfully resquested

i do not understand why, sometimes, i have to restart minikube to make my stack OK. My stack is the following : one Pod in a Deployment yaml file a Deployment yaml file for a 'dev' namespace a Deployment yaml file for a 'prod' namespace i use…
0
votes
0 answers

Ignore resources using kustomize

I'm deploying argocd onto your cluster but want to ignore dex server resources (sa, deployment, roles) Is there a way to ignore the resources based on their label argocd-dex-server (all resources have this label) Is it $patch delete or any other…
0
votes
1 answer

Kustomize - Imported (resource) patch doesn't work

I am not managing to include a kustomization.yaml that only contains patches. As a minimal example of the problem I'm solving, I can illustrate with the folder structure below: . ├── kustomization.yaml ├── nested │ ├── kustomization.yaml │ └──…
0
votes
1 answer

Use one Kustomize patch to set environment variables for a deployment and a cron job

Is there an easy way to share a set of environment variables (coming in from various config maps and secrets) between the same container in a deployment and a cron job? I'm using Kustomize, but I can't figure out how to approach since with a patch…
tonyc
  • 832
  • 2
  • 11
  • 23
0
votes
0 answers

How do people test Kube config locally (Kustomize)

Scenario We have a large, complex sets of Kustomize with replacements, CRDs, SOPs etc. We can generate the config locally/CI with ..\kustomize.exe build --load-restrictor=LoadRestrictionsNone .\path > sample-build.yaml But this doesn't test the…
Michael Blake
  • 2,068
  • 2
  • 18
  • 31
0
votes
1 answer

Secret hash issue when run once-off job in kustomize

When using kustomize, I am trying to use job to perform some once-off job. But somehow, the kustomize just doesn't recognise hashed secret. The below is the relevant codes. . ├── base │ └── postgres.yaml ├── jobs │ ├── postgres-cli.yaml │ └──…
Ron
  • 6,037
  • 4
  • 33
  • 52
0
votes
1 answer

'doc is missing path' when trying to patch with Kustomize

I'm trying to replace RAILS_ENVenv variable defined in this Deployment file. deploy.yaml: apiVersion: apps/v1 kind: Deployment metadata: name: myservice-web spec: replicas: 3 selector: matchLabels: app: myservice-web template: …
borjagvo
  • 1,802
  • 2
  • 20
  • 35
0
votes
0 answers

How to layer Image Transformer before ConfigMap generator

I have an app that consume a k8s cronjob manifest as a template and I store it as configmap. I want to update the container image in the cronjob template using Kustomize image transformer and generate configmap using Kustomize configmap generator.…
dennbagas
  • 2,693
  • 2
  • 12
  • 24
0
votes
0 answers

How to deploy airflow using kubernetes and kustomize

I'm running minikube and I want to deploy airflow using kustomize instead of helm. So first I got the docker-compose.yaml curl -LfO 'https://airflow.apache.org/docs/apache-airflow/2.5.0/docker-compose.yaml' Then I execute kompose convert, to…
0
votes
1 answer

How Kustomize finds the deployment's yaml file?

Following this Github Action auto deploy to GKE workflow: https://docs.github.com/en/actions/deployment/deploying-to-your-cloud-provider/deploying-to-google-kubernetes-engine In the last step notice these lines: ./kustomize edit set image…
Raz Buchnik
  • 7,753
  • 14
  • 53
  • 96
0
votes
0 answers

unable to patch using kustomize for the resources deployed using helm

I have deployment ingress-nginx using helm helm upgrade --install ingress-nginx-external ingress-nginx \ --repo https://kubernetes.github.io/ingress-nginx \ --namespace ingress-nginx-external --create-namespace \ --version v4.4.0 As a next…
magic
  • 254
  • 2
  • 10
  • 19
0
votes
1 answer

Can kustomize built-in patchtransformers take yaml file instead of map of values

Using Kustomzie I am trying to generate manifest for k8s, is there any option to directly use an yaml file within PatchTransformer built in plugin instead of passing map of values? Below works when the map of value is passed to…
Tim
  • 1,321
  • 1
  • 22
  • 47
0
votes
0 answers

Error while trying to create SecretProviderClass

I am using kustomize to create a patch for a service. While running it for the first time I run into the following with setting up SecretProvider: no matches for kind "SecretProviderClass" in version "secrets-store.csi.x-k8s.io/v1" Any thoughts on…
nitishagar
  • 9,038
  • 3
  • 28
  • 40
0
votes
1 answer

Is it possible to create multiple versions of a base yaml in a single overlay with kustomize?

In my szenario I have multiple Microservices that share most of the structure of a kubernetes service. Say we have a structure as the following one: apiVersion: v1 kind: Service metadata: name: dummy spec: selector: app: dummy ports: -…
René Jahn
  • 1,155
  • 1
  • 10
  • 27