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
1
vote
1 answer

Kustomize doesn't seem to find helm

I'm trying to incorporate a helm chart into my kustomize setup. So I have added it to my kustomization.yaml: ... helmGlobals: chartHome: ../test/vault helmCharts: - name: helm-vault valuesFile: ../test/vault-values.yaml ... When I try to…
thoredge
  • 12,237
  • 1
  • 40
  • 55
1
vote
1 answer

How to run CouchbaseBackupRestore only once

I define a CoucbaseBackupRestore resource for my kubernetes cluster. Managed with flux and kustomize (gitops) The restore goes well. But when it is finished it starts another restore. I want it to run only once. Is it possible to tell kubernetes to…
Fundhor
  • 3,369
  • 1
  • 25
  • 47
1
vote
1 answer

How to create a kustomize common sidecar component

On a Kubernetes cluster, I have multiple Deployment resources. For security, I am using a sidecar proxy pattern where the Service will proxy traffic to the sidecar, which will ensure authentication before passing on to the deployed application. I am…
Mike
  • 1,791
  • 1
  • 17
  • 23
1
vote
0 answers

Patch all containers in a Deployment with Kustomize

I need to add volumes and related mount points to all containers of a deployment with Kustomize. I'm trying json patch for that - op: add path: /spec/template/spec/volumes/- value: [...] --- - op: add path:…
1
vote
1 answer

How to pass helm chart credentials in Kustomization

Error: Error: looks like "https://jfrog-prod.debs.cloud/artifactory/helm-dev2-local/helm-sample/nginx-sample.tgz" is not a valid chart repository or cannot be reached: failed to fetch…
Vinay K
  • 19
  • 1
1
vote
1 answer

Kustomize HelmChartInflationGeneration Error With ChartName Not Found

I have the following chartInflator.yml file: apiVersion: builtin kind: ChartInflator metadata: name: project-helm-inflator chartName: helm-k8s chartHome: ../../../helm-k8s/ releaseName: project-monitoring-chart values:…
joesan
  • 13,963
  • 27
  • 95
  • 232
1
vote
1 answer

Kustomize - patches requiring the same values

When using Istio with Kubernetes, a number of different manifests require the same environment-specific values. For example, the host address is required by both the Gateway (under spec/servers/hosts) and VirtualService (under spec/hosts). The…
Boon
  • 1,073
  • 1
  • 16
  • 42
1
vote
1 answer

Build Kustomize with Helm Fails to Build

kustomize build --enable-helm .I have the following project structure: project - helm-k8s - values.yml - Chart.yml - templates - base - project-namespace.yml - grafana - grafana-service.yml -…
joesan
  • 13,963
  • 27
  • 95
  • 232
1
vote
1 answer

How to remove ingress annotation using Kustomize

In the Base Ingress file I have added the following annotation nginx.ingress.kubernetes.io/auth-snippet and it needs to be removed in one of the environment. Base Ingress: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress …
Container-Man
  • 434
  • 1
  • 6
  • 17
1
vote
1 answer

How to change container name and image in kustomization.yaml

I want to change all the dev-app to demo-app using kustomization. In my base deployment.yaml I have the following: apiVersion: extensions/v1beta1 kind: Deployment metadata: labels: service: dev-app name: dev-app spec: replicas: 1 …
1
vote
1 answer

How to merge two yaml files in one configmap via Kustomize?

I got APP whitch use config in yaml format Config is: application: web-server: init-timeout: 2m shutdown-timeout: 1m sites-сonfig: ./app/sites/prod kerberos: principal: APP_USER@DOMAIN.LOCAL keytab:…
Darkwind
  • 345
  • 9
  • 20
1
vote
0 answers

Skaffold wont deploy Kustomize resources

I'm using Skaffold to deploy an application and the version which I use is v2.0.1. The apiVersion is skaffold/v3 and I'm using the below command to deploy it. The helm resources are deployed but not the Kustomize resources. skaffold run -p…
Container-Man
  • 434
  • 1
  • 6
  • 17
1
vote
1 answer

How to Add Logic to Kustomize File

I am trying to deploy a K8s application using Kustomize. Up to now I have done simple implementations where we have a few of the K8s files such as ingress.yaml with something like the following: apiVersion: extensions/v1beta1 kind:…
nray
  • 145
  • 7
1
vote
1 answer

configMapGenerator doesn't create integer value

Here it is my kustomization.yaml kind: Kustomization configMapGenerator: - name: app-cm literals: - foo=bar - var1=1 after kustomize build . I see var1 value in double quotes: apiVersion: v1 data: foo: bar var1: "1" kind:…
1
vote
0 answers

Replacement not working with overlay configmap values

I'm trying to replace the configMapGenerator env values by creating an overlay. The expected overlay values show up in the configmap, but not in the ExternalSecret trough the replacements. I have the following base/kustomization.yaml where I'm doing…
FerronSW
  • 505
  • 4
  • 18