From aa4e6fe95e7cdd60c7fef313a68b4102f244aff5 Mon Sep 17 00:00:00 2001 From: Naoki Oketani Date: Wed, 3 Jul 2019 22:46:34 +0900 Subject: [PATCH] added missing EOF (#15159) * added missing EOF * fixed a typo and leading output --- .../manage-kubernetes-objects/kustomization.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md b/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md index fe23c6f049..c0c0b06ff9 100644 --- a/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md +++ b/content/en/docs/tasks/manage-kubernetes-objects/kustomization.md @@ -153,7 +153,7 @@ secretGenerator: - name: example-secret-2 literals: - username=admin - - password=secert + - password=secret EOF ``` @@ -162,7 +162,7 @@ The generated Secret is as follows: ```yaml apiVersion: v1 data: - password: c2VjZXJ0 + password: c2VjcmV0 username: YWRtaW4= kind: Secret metadata: @@ -206,7 +206,7 @@ metadata: ### Setting cross-cutting fields -It is quite common to set cross-cutting fields for all Kubernetes resources in a project. +It is quite common to set cross-cutting fields for all Kubernetes resources in a project. Some use cases for setting cross-cutting fields: * setting the same namespace for all Resource @@ -283,8 +283,8 @@ spec: ### Composing and Customizing Resources It is common to compose a set of Resources in a project and manage them inside -the same file or directory. -Kustomize offers composing Resources from different files and applying patches or other customization to them. +the same file or directory. +Kustomize offers composing Resources from different files and applying patches or other customization to them. #### Composing @@ -465,7 +465,7 @@ EOF cat < patch.yaml - op: replace path: /spec/replicas - value: 3 + value: 3 EOF # Create a kustomization.yaml @@ -479,7 +479,7 @@ patchesJson6902: version: v1 kind: Deployment name: my-nginx - path: patch.yaml + path: patch.yaml EOF ``` @@ -707,6 +707,7 @@ cat < base/kustomization.yaml resources: - deployment.yaml - service.yaml +EOF ``` This base can be used in multiple overlays. You can add different `namePrefix` or other cross-cutting fields @@ -730,7 +731,7 @@ EOF ## How to apply/view/delete objects using Kustomize -Use `--kustomize` or `-k` in `kubectl` commands to recognize Resources managed by `kustomization.yaml`. +Use `--kustomize` or `-k` in `kubectl` commands to recognize Resources managed by `kustomization.yaml`. Note that `-k` should point to a kustomization directory, such as ```shell