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
1 answer

Using private (insecure) docker registry with minikube

I have a private registry with several images on it and I have it configured it inside the docker daemon: { "log-level": "warn", "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "5" }, "insecure-registries" :…
Raymond
  • 21
  • 2
0
votes
1 answer

Container doesn't recognize configmap values passed as env vars

I have created a configMap from a file using "kustomize", then i am passing the key/value pairs from the configMap to the container as environment variables, when i EXEC into the container and write "env" the pairs seem to show up, but when i try to…
0
votes
0 answers

Kustomize : How to add a section for a config file generated by a ConfigMap

first of all I'd like to say I'm new to Kubernetes and that the answer might be something really simple that I just didn't grasp I have a ConfigMap that generates a configuration file for a tool named Karma (alerting dashboard) apiVersion: v1 kind:…
0
votes
0 answers

Kustomize patch the HelmRelease in a included git repository

I need to be able to patch the serviceAccountName inside a HelmRelease via Kustomization. The special setup here is, that the kustomization where I want to apply the patch is in a tenant repository, and the HelmRelease in a synced Git repository: I…
Stefan Profanter
  • 6,458
  • 6
  • 41
  • 73
0
votes
1 answer

How to add specific label to ConfigMap using Kustomize

I am searching for a way to add a specific label to ConfigMap using Kustomize. Using commonLabels is not an option because it adds a label to every resource. For config map generation, I am using the following: configMapGenerator: - name:…
Bjørson Bjørson
  • 1,583
  • 1
  • 17
  • 31
0
votes
2 answers

How to reference the redis host/ip created by config connector in GKE from a Kustomization

I have a deployment that needs the ip address of the cloud redis instance. I'm creating the cloud redis instance via config connector: apiVersion: redis.cnrm.cloud.google.com/v1beta1 kind: RedisInstance metadata: name: redis-name annotations: …
0
votes
0 answers

Kustomize: merge values (CIDR lists) for the same key from different patches instead replacing them

Let's say I have two yml file with patches: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ingress-whitelist-1 annotations: nginx.ingress.kubernetes.io/whitelist-source-range: 192.168.0.1, 192.168.0.2 apiVersion:…
Staly
  • 85
  • 7
0
votes
0 answers

Applying Kustomize to a single file

I have a pretty standard Kustomize layout of my Kubernetes manifests: deploy/ base/ deployment1.yaml deployment2.yaml overlays/ dev/ kustomization.yaml uat/ kustomization.yaml prod/ kustomization.yaml In…
Ivan dal Bosco
  • 3,233
  • 4
  • 19
  • 24
0
votes
0 answers

How to use secret value in kubernetes annotations

I have a following secret apiVersion: v1 kind: Secret metadata: name: my-secret type: Opaque data: my-value: "dGVzdC1kYXRh" I want to use above secrets value in following kubernetes code: apiVersion: v1 kind: Service metadata: name:…
aac
  • 574
  • 2
  • 6
  • 18
0
votes
1 answer

can kustomize merge PatchesJson6902 from bases and overlays?

I have been working with one patchesJson6902 clause in my Kubernetes kustomize configuration; now I want to use overlays (to support different instances) and I want to split the patches (some patches are generic, i.e. for enabling let's-encrypt…
Christian Fuchs
  • 430
  • 3
  • 9
0
votes
0 answers

Kustomize configMapGenerator, render Helm chart, ArgoCd

Is it possible to implement this behavior in ArgoCd? I have a configMapGenerator: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization generators: - helmgenerator.yaml configurations: - rollout-transform.yaml configMapGenerator: - name:…
Cvitoybamp
  • 21
  • 4
0
votes
0 answers

helm --post-renderer not working when ran via typescript / node child_process

We're invoking helm command inside a typescript program like so child_process.spawn("helm", args, ...); where args is something like [ 'template', 'myapp', '.', '--post-renderer', '/home/script/helm-kustomize.sh' ]…
Jan Paolo Go
  • 5,842
  • 4
  • 22
  • 50
0
votes
1 answer

argocd-image-updater sets Application kustomize image, but deployment image stays the same

Describe the bug argocd-image-updater is running, sees valid candidate images from our docker.io repo, and updates them in the k8s Application, but the k8s deployment does not update it's image. Deployment image does have a kustomization.yaml. This…
Colby Blair
  • 396
  • 4
  • 15
0
votes
0 answers

Flux + AKS + Helm uninstall failed: uninstall: Release not loaded: name: release: not found

When I am trying to deploy an application using Helm chart in AKS using Flux v2 getting below error Command: flux get helmrelease -A ErrorMessage: Helm uninstall failed: uninstall: Release not loaded: employees: release: not found Error:[enter image…
0
votes
0 answers

Can I use kustomize and helm?

Is there any way or good practice to use helm and kustomize at the same time? When I need use a production values.yaml or staging values.yaml I thinks to use kustomize for templating this values to argocd I got this structure of repo: ├──…