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 configmap command: what does it do?

I'm new to kubernetes and I'm following some tutorials here and there. I'm struggling to understand the different components and tools and one of these ones is kustomize. I saw different examples of kustomize usages and I don't understand one of…
Patrick
  • 2,577
  • 6
  • 30
  • 53
0
votes
1 answer

Create ingress deployment with Minikube

I'm going through this tutorial to create a deployment and an ingress controller on Minikube. When I run, as instructed in the tutorial, curl --resolve "hello-world.info:80:$( minikube ip )" -i http://hello-world.info I simply get HTTP/1.1 503…
0
votes
1 answer

Kustomize patch doesn't seem to be following the index order for the container resource

I'm trying to patch/override (remove) a container that is present in base from the overlay. As per the examples shown in the documentation: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/patches/ the resources follow the order…
Abhishek J
  • 101
  • 7
0
votes
0 answers

To Deploy Microservice with Helm and Kustomize together

I am trying to deploy one microservice with the combination of helm chart and Kustomize. I have tested with both of them .How can I use both of them together. Any example of the directory structure can give please
0
votes
0 answers

Refer to values in ConfigMap and Secret resources in ArgoCD Application

I want to deploy a remote helm chart to my cluster and within the helm values, I need to specify specific tokens that I have already created as secrets ( managed by the external secret operator). How can I reference the values from the Secrets or…
0
votes
1 answer

kustomize: apply PatchStrategicMergeTransformer on DeploymentConfig

Here my PatchStrategicMergeTransformer: apiVersion: builtin kind: PatchStrategicMergeTransformer metadata: name: not-important-to-example paths: - patches/add-resources-patch.yaml My patches/add-resources-patch.yaml: apiVersion:…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
1 answer

Kustomize Patch Ingress Issue - Go construct

I am new to kustomize and trying to figure out how to patch my ingress that is running via OpenShift Container Platform. The base config works fine and the overlay was working until I introduced my ingress overlay patch. For reference the…
0
votes
1 answer

kustomize namespace label patching removes existing labels

My Kustomize patching works to label the namespace but it overrides existing labels Here's all the manifests - kustomize.yaml apiVersion: kustomize.config.k8s.io/vlbetal kind: Kustomization resources: - ../../../../base/labels patches: - path:…
megha
  • 621
  • 2
  • 11
  • 36
0
votes
1 answer

Use Kustomize Replacements to Replace Values in One Base with Values from Another Base?

I'm updating some of my Kubernetes configurations to use 'replacements' and 'resources' in kustomize as 'vars' and 'bases' have been deprecated. Previously, I used 'vars' in a base (/base/secrets/) like this: apiVersion:…
0
votes
0 answers

kustomize doesn't inject labels on generated configmaps

I've created this kustomize structure: kustomize ├── base │   ├── kustomization.yaml │   ├── kustomizeconfig │   │   ├── generators │   │   │   ├── mongos-configuration-file-configmap-generator.yaml │   │   │   ├──…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
1 answer

kustomize: inherit labels from base on overlay generator

I don't know how to handle it. My service is deployed into 3 environments: des, pre and pro. I only need to generate secret on des environment. On pre and pro it's deployed by customer devops team. My base/kustomization.yaml: apiVersion:…
Jordi
  • 20,868
  • 39
  • 149
  • 333
0
votes
0 answers

Any way to patch a Kubernetes object and then delete it?

Say I have kustomize directory like this: |_base |_ deployment.yaml |_ kustomisation.yaml |_patches |_dev |_ patch.yaml |_prod |_ patch.yaml In base/deployment.yaml there exists a CRD object i.e apiVersion: some.provider.crd kind:…
user3805884
  • 125
  • 2
  • 8
0
votes
0 answers

Kustomize HelmChartInflationGeneration with Common Chart Repo Property

When using Kustomize HelmChartInflationGeneration, if all my charts reside in the same repository, is there a way I can set this in one place? For example, given the below kustomization.yaml: helmCharts: - name: myapp-1 repo:…
cjt
  • 479
  • 1
  • 5
  • 9
0
votes
1 answer

Kustomize: Override values in dependency charts

I'm wondering about the way to override a default value for a dependency chart. Let's go straight to the point, having this kustomization file for Prometheus: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization helmCharts: - name:…
Jose Rodriguez
  • 9,753
  • 13
  • 36
  • 52
0
votes
1 answer

Azure Pipeline Task for Kustomize File Generation Fails on Azure

I have developed an Azure Pipeline task to generate a Kustomize file, which functions correctly on my laptop but not on Azure. It used to work before, but something has changed in Azure that has caused it to stop functioning. Can anyone provide…
Martinez
  • 172
  • 4
  • 17