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
0 answers

kustomize use patches StrategicMerge to add environments in containers of deploymentconfig, but the deploymentconfig overwritten by patch yaml file

Everyone. I have tried to use kustomize to manage application deploymentconfig in openshift cluster, and I defined deploymentconfig manifest yaml file in the base directory base |__kustomization.yaml |__deploymentconfig.yaml cat…
0
votes
1 answer

Does ArgoCD perform kubernetes build to detect out-of-sync

I refactored my k8s objects to use Kustomization, Components, replacements, patches and got to a good DRY state so that I don't repeat much between 2 apps and between those across dev and test environments. While doing so I am referring to objects…
bhantol
  • 9,368
  • 7
  • 44
  • 81
0
votes
1 answer

use Kustomize to create additional namespaces with a suffix

Just currently battling an issue with kustomize and not having much look. I have my config setup and are using kustomize (v4.5.7) to have separate base, variants and environment configuration. I’m trying to use the setup to deploy a copy of my dev…
John Fox
  • 747
  • 1
  • 13
  • 28
0
votes
1 answer

Add object to an array in yaml via Kustomize

how can I add object to array via Kustomize? As a result I would like to have two ServiceAccounts added to subjects, like so: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: binding roleRef: apiGroup:…
Murakami
  • 3,474
  • 7
  • 35
  • 89
0
votes
1 answer

add operation with Kustomize only if not exists

I want to add a resource limit and request using Kustomize if and only if it's not already configured. Problem is that the deployment is in fact a list of deployments, so I cannot use default values: values.yaml myDeployments: - name: deployment1 …
theplayer777
  • 163
  • 1
  • 15
0
votes
1 answer

kustomization directory apparently not accepted under resources

I have a kustomize overlay that refers to its base in its kustomization file overlays/test/kustomization.yaml as follows: resources: - ../../base The relevant directory structure is as…
rookie099
  • 2,201
  • 2
  • 26
  • 52
0
votes
0 answers

kustomize overlay editor missing on website

I remember there was an Interactive Tutorial/overlay editor on kustomize.io, but I can't find it anymore. What happend to it? And are there alternatives to generate on overlay file easily?
8bit
  • 528
  • 2
  • 6
  • 25
0
votes
0 answers

Use existing resources for a new Kustomize installation? (kubeflow)

I am trying to install kubeflow pipelines (KFP) for kubeflow on AWS, as shown here. I am using an overlay for some simple labeling and other cosmetic changes. Installing KFP in the way shown in the documentation will also deploy instances of argo…
Xela
  • 71
  • 8
0
votes
2 answers

$(POD_NAME) in subPath of Statefulset + Kustomize not expanding

I have a stateful set with a volume that uses a subPath: $(POD_NAME) I've also tried $HOSTNAME which also doesn't work. How does one set the subPath of a volumeMount to the name of the pod or the $HOSTNAME? Here's what I have: apiVersion:…
James Hancock
  • 3,348
  • 5
  • 34
  • 59
0
votes
1 answer

How do I delete resources that have been applied with kustomize?

I have to upgrade cert-manager on GKE cluster and due to the big version gap I have to uninstall and re-install it. Basically, I am wondering how should I uninstall it and since I installed it through kustomization file I thought I will do the same…
0
votes
1 answer

Add secret to projected list volume kustomize

I am trying to use kustomize to patch existing Deployment by adding environment secrets in the list of projected deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: labels: app: microservice-1 name: microservice-1 spec: …
Achraf Bentabib
  • 72
  • 1
  • 13
0
votes
2 answers

kustomize merge in kubernetes is overriding instead

I am trying to use Kustomize to do a Patch Strategic merge on the following yaml. y1: apiVersion: iam.cnrm.cloud.google.com/v1beta1 kind: IAMPolicy metadata: name: storage-admin-policy namespace: cnrm-system spec: resourceRef: apiVersion:…
Pavan
  • 31
  • 6
0
votes
1 answer

kubectl kustomize leaves placeholder lines

I'm trying to use Kustomize but as a result I have wrong placeholder lines. I have base/deployment.yaml like this: apiVersion: apps/v1 kind: Deployment metadata: name: app spec: replicas: 1 selector: matchLabels: app: app …
Victoria Agafonova
  • 2,048
  • 10
  • 33
  • 50
0
votes
0 answers

kubectl kustomize on a remote url

I want to run some kubectl apply commands without downloading the files: kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml kubectl apply…
Capobar
  • 35
  • 6
0
votes
0 answers

k8s kustomize patch json

i'm using kustomize to build k8s manifest file , i'm looking for a solution to insert value of namespace as variable (to be dynamic) into patch operation as described in file below , i had many patch operations and actually i just hardcoded value of…