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

helm deployments over kustomize

Say for example I have rendered all the manifests of a tool called cert-manager and I have deployed in kubernetes environment using kustomize, If I want to perform an upgrade version of cert-manager through helm, How do I do that??
magic
  • 254
  • 2
  • 10
  • 19
0
votes
1 answer

Extend the column in primary table

I want to extend table 1 as IsAvailableInTable2 = Yes, if there's a value matching Id (Column in Table1) in column MonitorId in Table 2. I tried using materialize but didn't quite work out. //Table 1 datatable(Id:string, MetadataKey:string,…
SM04
  • 1
  • 3
0
votes
1 answer

Getting errors when using "imagePullSecrets" in my kubernetes deployment

I have a kind:deployment file, and they are forcing the image to be defined down here in the "initContainers", but I can't get my image in my own registry to load. If I try to put imagePullSecrets: - name: regcred in line with the "image" down…
Mike K.
  • 543
  • 3
  • 14
  • 46
0
votes
1 answer

How to create generic component without name?

I would like to create component reused in many deployments. It has monitoring sidecar same for all applications. My problem is that I would like to apply strategic merge patch from this component but it only works when I'm using name of specific…
dnf
  • 1,659
  • 2
  • 16
  • 29
0
votes
1 answer

Rails in Kubernetes not picking up environment variables provided by configmap

I have a simple .env file with content like this APP_PORT=5000 I add the values of that file with Kustomize. When I apply my Rails app, it crashes because it cannot find the environment vars: I also tried to place a puts ENV['APP_PORT'] in…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
1 answer

Extracting values from created resources

I'm trying to automate creation of a few K8s resources using either helm or kustomize (the latter is preferred option). What I want to do is: create a ServiceAccount get value of its token, as you would do with kubectl get secret -o…
0
votes
1 answer

Kustomize use helm chart

I want to customize a helm chart with kustomize. To start with this topic, I followed their tutorial on GItHub and created a chart like they did in the tutorial. But when I try to build the chart with kustomize build ./base, I get this error: Error:…
8bit
  • 528
  • 2
  • 6
  • 25
0
votes
1 answer

How can I stop flux from deploying to my default namespace?

I have a Kubernetes cluster setup with Flux. I have an infrastructure folder that has ingress/base and ingress/overlays/development in it. Hopefully this screenshot helps with the directory structure: Below are my ingress.yaml and…
ajthyng
  • 1,245
  • 1
  • 12
  • 18
0
votes
1 answer

Creating a Kubernetes Ingress resource for GCP/GKE by example

I'm trying to make sense of an example Kubernetes YAML config file that I am trying to customize: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: my-web-server namespace: myapp annotations: kubernetes.io/ingress.class: alb …
simplezarg
  • 168
  • 1
  • 9
0
votes
1 answer

yaml anchor a list object, and merge with kustomize

I am interested in using YAML anchors for a list of objects. I have a Kubernetes pod manifest which contains a container list. I am trying to build this with kustomize, but I can't find the right syntax. So, I think this looks the most…
The Fool
  • 16,715
  • 5
  • 52
  • 86
0
votes
2 answers

Extract the numeric value from string in Kusto

This is my datatable: datatable(Id:dynamic) [ dynamic([987654321][Just Kusto Things]), ] and I've extracted 1 field from a json using | project ID=parse_json(Data).["CustomValue"] And the result is something like - [987654321][Just Kusto…
SM04
  • 1
  • 3
0
votes
1 answer

How can I implement a LabelTransformer in another directory?

If I have a projects structured as: - project/ - deployment.yaml - kustomization.yaml - bases/ - transformer.yaml - kustomization.yaml project/kustomization.yaml: apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization bases: -…
Joey Stout
  • 169
  • 1
  • 2
  • 9
0
votes
1 answer

Back-off restarting failed container with no information in events or logs

With the following kustomize: apiVersion: apps/v1 kind: Deployment metadata: labels: service: postfix name: postfix spec: replicas: 1 revisionHistoryLimit: 2 selector: matchLabels: service: postfix strategy: type:…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
0
votes
1 answer

do I need to create overlay for each microservice container app

I have around 20 container app and for each one I have deployment.yaml and now let's say I want to put different replicas for each one. What below image suggest that I need to match metadata:name. Is this means I need to create 20 overlay.yaml each…
user584018
  • 10,186
  • 15
  • 74
  • 160
0
votes
1 answer

Can we dynamically configure nginx.org/server-snippets with kustomize

I would like to have some Kubernetes ingress configuration like this: DEV environment apiVersion: extensions/v1beta1 kind: Ingress metadata: name: shop-page-ingress annotations: nginx.org/server-snippets: | location / { …
bkl
  • 35
  • 1
  • 7