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

Access CronWorkflow name for metrics labels

I have a CronWorkflow that sends the following metric: apiVersion: argoproj.io/v1alpha1 kind: CronWorkflow metadata: name: my-cron-wf spec: schedule: "0 * * * *" suspend: false workflowSpec: metrics: prometheus: - name:…
Gabio
  • 9,126
  • 3
  • 12
  • 32
1
vote
1 answer

Kubernetes Kustomize patching - Can't patch a file located in base

I have a huge patch file that I want to apply to specific overlays. I usually patch files under overlays as it is supposed to be. But the file is same and I do not want to copy it to each overlay. If I could keep my patch file app-new-manifest.yaml…
titanic
  • 87
  • 1
  • 11
1
vote
1 answer

Build kustomize 3.2.0 on Windows

Can someone suggest how to install 3.2.0 version of kustomize on Windows, please? I need specifically v3.2.0 on Windows. I am following this tutorial. Source code: https://github.com/kubernetes-sigs/kustomize/releases/tag/v3.2.0 I downloaded the zip…
romanzdk
  • 930
  • 11
  • 30
1
vote
2 answers

how to replace or find correct path for kustomize

I have deployment and I want to replace "path" value in liveness probe section. What is correct path for this in kustomize? - patch: |- - op: replace path: ?????????? value: https://xyz.staging.something.eu/ping …
a11eksandar
  • 145
  • 2
  • 10
1
vote
1 answer

is it possible to create two deployments inside one namespace in K8S?

I am begginer at K8S, i'm using github actions I have 3 environment (dev, pred-prod, prod) and 3 namespace to each environment, i want to have a second environment (pre-prod-2) into my namespace of pre-production; is it possible ? and how the yaml…
dia
  • 51
  • 4
1
vote
1 answer

kubectl apply -k URL

I am trying to install kubeflow pipeline on minikube with the following export PIPELINE_VERSION=1.7.0 kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION" kubectl wait --for…
Charles Ju
  • 1,095
  • 1
  • 9
  • 28
1
vote
1 answer

Kustomize doesn't adapt workloadSelector label of sidecar when using nameSuffix?

I have a sidecar like this: apiVersion: networking.istio.io/v1alpha3 kind: Sidecar metadata: name: test namespace: testns spec: workloadSelector: labels: app: test ... and a kustomization like: resources: - ../../base nameSuffix:…
Steffen Harbich
  • 2,639
  • 2
  • 37
  • 71
1
vote
1 answer

Best practice for maintaing K8S resources in github

I'm working on this cloud project where we have several development repositories in GitHub and in each we have the overlays containing config files that are specific for a local K8S cluster, a dev Azure cluster and a prod Azure cluster. In order to…
Fábio Caramelo
  • 139
  • 1
  • 17
1
vote
2 answers

Kubernetes Kustomization not able do download from remote resource

thanks for checking out my topic. I'm currently working to have kustomize to download the resource and base files from our git repository. We have tried a few options some of them following the documentation and some of them not, see below. But…
1
vote
1 answer

how do I add dynamic environment variable (RouteURL) to application server (deployment.yaml) using kustomize

I'm creating a pod for Databse server first and then an application server pod in openshift. And I'm doing it in Jenkinsfile, with openshift deployments handled by Kustomize. And the database routeurl varibale -DATABASE_DYNAMIC_ROUTEURL is in…
user2995458
  • 51
  • 1
  • 8
1
vote
1 answer

kustomize with azure secret provider class

I have a secretsProviderClass resource defined for my Azure Kubernetes Service deployment, which allows me to create secrets from Azure Key Vault. I'd like to use Kustomize with it in order to unify my deployments across multiple environments. Here…
dywan666
  • 385
  • 8
  • 14
1
vote
0 answers

How to migrate to k8s kustomize?

I'm a begginer with k8s and I don't have knowlege about helm, kustomization, gitops, flux2 and other related terms. I have an app on my k8s cluster and my goal is to move to Gitops using Flux2. Flux2 is forcing me to use kustomization so my current…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
1
vote
1 answer

How can i get the branch name connected to a tag in github actions pipeline?

I'm trying to build docker image using github actions and it's triggered if a tagged commit happens and if a push or pull request on staging & main branches. I'm using also kustomize to customize the legacy manifest depending on the commit. But i…
1
vote
1 answer

Kustomize Azure Devops folder structure

I am attempting to build a hierarchy of kustomize objects that span multiple Azure Devops git repositories. I have a number of microservices whose configurations can be condensed into a small number of base yaml files. I'd like to have each…
Robert Smith
  • 385
  • 4
  • 15
1
vote
1 answer

How to remove stuck statefullset.apps in Kubernetes?

I have stuck resources after delete a jitsi stack in my master node. The only pending resources are this two statefullset.appsset, no pods are running. If I execute the command: kubectl delete statefulsets shard-0-jvb -n jitsi --force…
Miguel Conde
  • 813
  • 10
  • 22