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

Gitlab Kubernetes CD automatic tag change

My team developing a kubernetes app in Gitlab using Helm. As part of our review process we deploy an instance of our app into a namespace on MR. Docker images are built and tagged either as latest (for current master stable) or with the branch of…
VV1
  • 1
  • 1
0
votes
1 answer

kustomize: namespace in common name of cert-manager certificate (variable inside string)

I want to create a cert-manager certificate using kustomize, where the string of the commonName-Field contains the namespace. Is this possible?
Maximilian
  • 491
  • 3
  • 11
0
votes
1 answer

Kunernetes/kustomize Service endpoints abnormal behavior

We're using kustomize with kubernetes on our project. I'm trying to implement access to external service using IP as mentioned in this link https://medium.com/@ManagedKube/kubernetes-access-external-services-e4fd643e5097 Here's my service --- kind:…
0
votes
2 answers

The value of argocd-secret is further encoded to base64

When managing secrets in argocd, I encode the value in argocd-secret with base64 and set it to manifest. In that case, although I use kusotomize, build and apply it, secret encoded by base64 will be encoded to base64 further. $ echo -n "clientid" |…
jadejoe
  • 663
  • 2
  • 13
  • 24
0
votes
1 answer

Building custom Go Plugin

I'm in the process of creating a custom transformer for kustomize. However, I'm running into issues creating even the most basic Go Plugin. I'm trying to follow these steps here…
Gerb
  • 883
  • 12
  • 31
0
votes
1 answer

How can I compactly store a shared configuration with Kubernetes Kustomize?

First, I'm not sure this question is specific enough for Stack Overflow. Happy to remove or revise if someone has any suggestions. We use Kubernetes to orchestrate our server side code, and have recently begun using Kustomize to modularize the…
josephkibe
  • 1,281
  • 14
  • 28
0
votes
1 answer

How to add a new ClusterRoleBinding with Kustomize in k8s without removing existing bindings?

When I type kubectl edit clusterrolebinding foo-role, I can see something like: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: foo-role roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name:…
johnlinp
  • 853
  • 6
  • 22
0
votes
1 answer

Kube object reference

I want to refer a property of an object created by a CRD. Here is my example. I create a Cloud SQL instance using the CRD from https://github.com/GoogleCloudPlatform/k8s-config-connector. This generates an instance with an IP. I want to reference…
Stefan Thorpe
  • 540
  • 1
  • 4
  • 11
0
votes
1 answer

kustomize patch overwriting parameter name and values

I'm using kustomize and attempting to patch some helm parameters into the grafana configuration I have the below configuration file grafana.yaml: --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: prod-k8s-grafana labels: …
neilH
  • 3,320
  • 1
  • 17
  • 38
0
votes
0 answers

Is it possible to use knative with Kustomize - kubectl apply -k knative.yaml

I am looking for a workflow with knative. Is it possible to use knative file with kustomize?
Chris G.
  • 23,930
  • 48
  • 177
  • 302
0
votes
1 answer

Kustomize: How to set metadata.name of a resource we need to patch

How to set metadata.name from a variable value, when kustomizing a base ressource. For creating for example a namespace, but we don’t know its name in advance but need to “kustomize” like adding commonLabels etc to it? The way Kustomize operates is…
DevLounge
  • 8,313
  • 3
  • 31
  • 44
0
votes
1 answer

How to move nfs info to kubernetes patch file?

If I have under volumes name: nfslocation nfs: server: 10.1.1.3 path: /vol/vol104/ostntfs0/folder/folder2 And I want to move it to a patch file, how do I do that? -op: replace ... I am not clear on the format. Something…
archcutbank
  • 419
  • 1
  • 6
  • 17
0
votes
1 answer

How to apply transformer plugin after Ingress serviceName is updated?

I have a kustomize transformer plugin that reads the value of serviceName in Ingress spec/rules/*/http/paths/0/backend/serviceName. The intent of the plugin is to update the host entries in the Ingress with the final serviceName after…
Erick T
  • 7,009
  • 9
  • 50
  • 85
0
votes
1 answer

Add label to metadata

I've started to use kustomize to update the yaml files. I'm trying to add labels to Deployment object. commonLabels seems pretty good but it applies the label to selector as well (which I don't want) Is there a way to add new label only to…
Mahyar
  • 1,011
  • 2
  • 17
  • 37
0
votes
1 answer

How to use 'tr' to find and replace only ---

So, I have an output from a command (kustomize build) and I want to convert the --- in the output to ###. For example: $ kustomize build apiVersion: extensions/v1 kind: Ingress metadata: labels: app: hello-world --- apiVersion: v1 kind:…
Saturnian
  • 1,686
  • 6
  • 39
  • 65