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

Use different environments in Github Actions in combination with GKE and Kustomize

I started with the Github Action template from Google for Deployment to GKE. Everything worked as it should and now i want to extend the functionality for different environments (i.e. a push on the master branch goes to prod and one on dev should…
1
vote
1 answer

Kubeval Fails when running Kustomize test

I'm having a test failure with my GitHub Action where I'm running this command against my kustomization.yaml file: Run kubeval ERR - plant-simulator-deployment/templates/base/kustomization.yaml: Failed initalizing schema…
joesan
  • 13,963
  • 27
  • 95
  • 232
1
vote
1 answer

Common config across multiple environments and applications with Kustomize

Is it possible to have a common config file (e.g. ConfigMap) which is shared across multiple environments and applications? I know it's simple to do it across with multiple environment overlays but how about a level above it for apps? If I have the…
Rubans
  • 4,188
  • 6
  • 40
  • 58
1
vote
1 answer

ArgoCD with kustomize to replace images during runtime

We are trying to deploy few deployment files with argocd app create command. Our yaml file contains a parameter for specifying the image name dynamically. We are looking at passing the image value with argocd cli to replace this variable during…
1
vote
1 answer

Bulk editing Kubernetes annotations with Kustomize without pods restarting

I am trying to find the best way to bulk edit the annotations on a number of Kubernetes resources. It seems like Kustomize might be the best option: The resources are already part of kustomization.yaml I can then edit kustomization.yaml with my new…
Zeke MC
  • 75
  • 7
1
vote
1 answer

Helm and Kustomize - post renderer shell script for Windows

I need an equivalent of Unix shell script: #!/bin/bash # save incoming YAML to file cat > all.yaml # modify the YAML with kustomize kustomize build . && rm all.yaml but for Windows. I end up with: @echo off type > all.yaml kustomize build . but…
kryski
  • 414
  • 2
  • 6
  • 18
1
vote
1 answer

Argo CD and Kustomize

all. I'm using Argo CD v1.6.1 and am trying to deploy an application using Kustomize. Argo CD doesn't seem to recognize my Kustomize manifest files. Looking at the Kustomize documentation on the Argo CD page, it looks like it only supports the…
John
  • 19
  • 1
  • 2
1
vote
1 answer

Kubernetes ingress Json patch failing

I am trying to Json patch an ingress with Kustomize but its failing ingress patch: - op: replace path: /spec/rules/http/paths/path/backend/serviceName value: varnish - op: replace path: /spec/rules/http/paths/path/backend/servicePort value:…
user11931805
1
vote
1 answer

Why won't it kustomize the node already visited

I am using kubectl kustomizecommands to deploy multiple applications (parsers and receivers) with similar configurations and I'm having problems with the hierarchy of kustomization.yaml files (not understanding what's possible and what's not). I run…
JamesD
  • 679
  • 10
  • 36
1
vote
1 answer

kustomize: Strategic Merge using Argo Rollout CRD

I'm in the process of converting some of my kustomize code to use Argo CRD Rollout kind (https://argoproj.github.io/argo-rollouts/) from Deployment kind. The big reason is the ability to easily do Blue/Green and Canary deployments. However my…
Gerb
  • 883
  • 12
  • 31
1
vote
1 answer

can I create secrets in openshift 4.3 from files?

I'm new to openshift and Kubernetes too (coming from Docker swarm world). and I'm looking to create secrets in openshift using definition file. these secrets are generated from a file. to give an example of what I'm trying to do let's say I have a…
tkyass
  • 2,968
  • 8
  • 38
  • 57
1
vote
1 answer

Using kustomize for manual CD vs tekton automated CI/CD

What is the difference between using Kustomize and Tekton for deployment? To me it looks like Kustomize is a lightweight CI/CD client developer tool where you manually go in and do your CI/CD, where Tekton is automated CI/CD running within…
1
vote
1 answer

Kubeflow Mnist example - unable to recognize "STDIN": no matches for kind "TFJob" in version "kubeflow.org/v1beta2"

Following the kubeflow mnist examples guide here here When running kustomize build . | kubectl apply -f - configmap/mnist-map-training-45h47275m7 unchanged error: unable to recognize "STDIN": no matches for kind "TFJob" in version…
FLennon
  • 13
  • 1
  • 3
1
vote
1 answer

Should I prefer Kustomize over Helm

The introduction of Kustomize looks like an effort to fill a gap of natively managing a manifests parameterization in Kuberenetes. While Helm is a mainstream player in the field. I recognize Helm as not just a templating tool providing much more…
esboych
  • 985
  • 2
  • 10
  • 16
1
vote
1 answer

Extending deployments with default configuration

I have a config map that defines some variables like environment that are then passed into alot of deployment configurations like this - name: ENV valueFrom: configMapKeyRef: name: my-config-map key: ENV secrets…
shapeshifter
  • 2,967
  • 2
  • 25
  • 39