広告が嫌いですか? 行く 広告なし 今日

Kustomize kustomization.yaml Generator

データ開発者
One resource path per line — local YAML files or directories/bases. Rendered under resources:.
Optional. Sets namespace: for all resources (RFC 1123).
Optional. Prepended to every resource name via namePrefix:.
Optional. Appended to every resource name via nameSuffix:.
Optional. One key=value per line. Added to every resource via labels (includeSelectors).
Optional. One key=value per line. Added under commonAnnotations:.
Optional. One per line: matchName=newName:newTag. Use name=:tag for tag only, or name=@sha256:... for a digest. Rendered under images:.
Optional. One per line: resourceName=count. Overrides replica counts via replicas:.

発電機
Base name (a content hash suffix is appended unless disabled).
One KEY=value per line. Added under the generator's literals:.
Optional. One file path per line. Added under the generator's files:.
Base name (a content hash suffix is appended unless disabled).
Sets the generator's type: field.
One KEY=value per line (plain text — Kustomize base64-encodes at build time). Added under literals:.

Patches
Optional. One patch file path per line. Rendered under the current patches: field (each as - path:).

ガイド

Kustomize kustomization.yaml Generator

Kustomize kustomization.yaml Generator

Assemble a valid kustomization.yaml file without memorizing the Kustomize schema. Pick the features you need — resources, name prefixes, labels, image overrides, generators, and patches — and the tool emits clean YAML using the current kustomize.config.k8s.io/v1beta1 API version, steering clear of deprecated fields that commonly slip into hand-written or AI-generated configs.

使用方法

  1. List your resource files or bases, one path per line.
  2. Optionally set a namespace, name prefix/suffix, common labels, and annotations.
  3. Add image overrides as matchName=newName:newTag, or override replica counts.
  4. Toggle a configMapGenerator or secretGenerator and supply literals or files.
  5. をコピーするか、ダウンロードアイコンをクリックしてください。生成された kustomization.yaml or download it directly into your overlay directory.

機能

  • Current schema – Outputs apiVersion kustomize.config.k8s.io/v1beta1 with the modern labelspatches fields, not deprecated commonLabels または patchesStrategicMerge.
  • Resources & bases – Build the resources list from files or directory overlays.
  • Name transforms – Apply namespace, namePrefixと、 nameSuffix across all resources.
  • Image overrides – Set newName, newTag, or a digest with registry-port-safe parsing.
  • 発電機 – Produce configMapGenerator and secretGenerator blocks, with optional content-hash suffix control.
  • リアルタイムバリデーション – Inline warnings flag invalid RFC 1123 names, duplicate keys, and non-integer replica counts.

よくある質問

  1. What is Kustomize and how does it differ from Helm?

    Kustomize is a template-free way to customize Kubernetes manifests. Instead of using a templating language with placeholders like Helm, it layers declarative overlays on top of plain YAML base resources. It is built directly into kubectl via the -k flag, so no extra tooling is required.

  2. Why does Kustomize add a hash suffix to generated ConfigMaps and Secrets?

    By default, configMapGenerator and secretGenerator append a content-based hash to the resource name. When the contents change, the name changes, which forces Deployments that reference them to perform a rolling update. This guarantees pods pick up new configuration instead of silently keeping stale values.

  3. What is the difference between namePrefix, commonLabels, and the labels field?

    namePrefix and nameSuffix modify the metadata.name of every resource. The newer labels field adds key/value labels and can optionally include them in selectors via includeSelectors, whereas the deprecated commonLabels always injected into selectors, which could break existing Deployments whose selectors are immutable.

  4. Why are some Kustomize fields like patchesStrategicMerge considered deprecated?

    Older Kustomize versions used separate patchesStrategicMerge and patchesJson6902 fields. These were unified into a single patches field that accepts both strategic-merge and JSON 6902 patches with an optional target selector. Using the current schema avoids deprecation warnings and keeps files compatible with recent kubectl releases.

広告なしで楽しみたいですか? 今すぐ広告なしで

拡張機能をインストールする

お気に入りのブラウザにIOツールを追加して、すぐにアクセスし、検索を高速化します。

に追加 Chrome拡張機能 に追加 エッジ拡張 に追加 Firefox 拡張機能 に追加 Opera 拡張機能

スコアボードが到着しました!

スコアボード ゲームを追跡する楽しい方法です。すべてのデータはブラウザに保存されます。さらに多くの機能がまもなく登場します!

ニュースコーナー 技術ハイライト付き

参加する

価値ある無料ツールの提供を継続するためにご協力ください

コーヒーを買って