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

how to dynamically changing image name & tags on kustomize.yaml using github actions?

if i have my kustomize.yaml file here : apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization images: - name: nix/image newName: nix/image2 newTag: latest and i want to dynamically change the values of the new generated image & tags…
0
votes
1 answer

Kubectl kustomize edit can't find kustomization.yaml

I am trying to run kustomize command in a directory which has an overlay kustomization.yaml When I run kubectl kustomize edit set namespace test in that dir, I get error: specify one path to kustomization.yaml Whilst when I run kustomize edit set…
saurabh_garg
  • 86
  • 1
  • 7
0
votes
0 answers

Error in ArgoCD for remote branch after deploying using Kustomize

Using Azure DevOps for our Git Repository and Deployment Pipelines, which will deploy to AKS and managed by ArgoCD I reconfigured the branching strategy for our environment, where we have a branch per environment; test, perf and prod. However it…
Ed Whittle
  • 41
  • 1
  • 5
0
votes
1 answer

Loop over list of images uri and generate deployment in kubernetes

I have list of images that have similar deployment specs but different repository uri i want to deploy them on k8 cluster, i am using FluxCD, i am open to use any k8s tool.
0
votes
1 answer

Kustomize: how to apply the same patch in multiple overlays without LoadRestrictionsNone

I have a kustomize layout something like this: ├──release │ ├──VariantA │ │ └──kustomization.yaml │ │ cluster_a.yaml | └──VariantB │ └──kustomization.yaml │ cluster_b.yaml └──test ├──TestVariantA │ └──kustomization.yaml;…
Matthew Booth
  • 121
  • 2
  • 6
0
votes
1 answer

Why does Kubernetes Flux need multiple configuration intervals?

I am new to Flux. I struggle to understand the interval configuration. I am following the original doc Flux flux create source git podinfo \ --url=https://github.com/stefanprodan/podinfo \ --branch=master \ --interval=30s \ --export >…
toto'
  • 1,325
  • 1
  • 17
  • 36
0
votes
1 answer

Jenkins deployment with Kustomize - how to add JENKINS_OPTS

I feel like this should be an already asked question, but I'm having difficulties finding a concrete answer. I'm deploying Jenkins through ArgoCD by defining the deployment via kustomize (kubernetes yaml). I want to inject a prefix to have Jenkins…
user3334871
  • 1,251
  • 2
  • 14
  • 36
0
votes
1 answer

Patch container in overlays

I have use case to add some library (agent) base on the environment ├───k8s │ ├───base │ ├───modules │ │ └───someagent │ └───overlays │ └───local This agent basically is a container that will communicate with the main container that…
Abraham
  • 85
  • 5
0
votes
3 answers

Deploy kube-prometheus-stack with Kustomize don't work

I am trying to deploy kube-prometheus-stack https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack through kustomize. But I am getting from the deployment: unable to recognize ".": no matches for kind…
0
votes
0 answers

Kubebuilder Kustomize Shell

Using the Kubebuilder initializer and I don't know to get the Kustomize shell. Whenever I try to install my operator onto minikube I get the error below: go: added sigs.k8s.io/kustomize/kyaml v0.9.4 go: added sigs.k8s.io/structured-merge-diff/v3…
0
votes
1 answer

Use Kustomize or kubectl to deploy 1-container pod or service from command line

Very new to Kubernetes. In the past I've used kubectl/Kustomize to deploy pods/services using the same repetitive pattern: On the file system, in my project, I'll have two YAML files such as kustomization.yml and my-app-service.yml that look…
hotmeatballsoup
  • 385
  • 6
  • 58
  • 136
0
votes
1 answer

Kustomize: How to cause a generator to actually merge an object instead of duplicating

I'm using kustomize to manage my argocd manifests. My structure looks like this: argocd ├── base │   ├── argocd-ui-ingress.yaml │   └── kustomization.yaml └── overlays └── dev ├── argocd-cm-patch.yaml ├──…
Moshe Vayner
  • 738
  • 1
  • 8
  • 23
0
votes
2 answers

Extend a columns value in same table

I have the below datatable, where WId and ParentId are values of the same column but are related to each other. The State that's shown here is for WId, I want to extend another column as ParentIdState which should be the State of ParentId. (The…
SM04
  • 1
  • 3
0
votes
1 answer

How to use Kustomize to configure Traefik 2.x IngressRoute (metadata.name, spec.routes[0].services[0].name & spec.routes[0].match = Host() )

We have a EKS cluster running with Traefik deployed in CRD style (full setup on GitHub) and wan't to deploy our app https://gitlab.com/jonashackt/microservice-api-spring-boot with the Kubernetes objects Deployment, Service and IngressRoute (see…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
0
votes
1 answer

Kustomize/Kubernetes - Nested envFrom injection

I'm trying to add envs injection based on envFrom A simplified structure looks something like that: ├── base │   ├ ─ backend │   ├── backend.properties │   ├── app1 │   │   ├── app1_backend.properties ├ ── deployment.yaml …
rafal1337
  • 164
  • 10