added missing EOF (#15159)

* added missing EOF

* fixed a typo and leading output
This commit is contained in:
Naoki Oketani
2019-07-03 22:46:34 +09:00
committed by Kubernetes Prow Robot
parent db9dacafc0
commit aa4e6fe95e
@@ -153,7 +153,7 @@ secretGenerator:
- name: example-secret-2 - name: example-secret-2
literals: literals:
- username=admin - username=admin
- password=secert - password=secret
EOF EOF
``` ```
@@ -162,7 +162,7 @@ The generated Secret is as follows:
```yaml ```yaml
apiVersion: v1 apiVersion: v1
data: data:
password: c2VjZXJ0 password: c2VjcmV0
username: YWRtaW4= username: YWRtaW4=
kind: Secret kind: Secret
metadata: metadata:
@@ -206,7 +206,7 @@ metadata:
### Setting cross-cutting fields ### 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: Some use cases for setting cross-cutting fields:
* setting the same namespace for all Resource * setting the same namespace for all Resource
@@ -283,8 +283,8 @@ spec:
### Composing and Customizing Resources ### Composing and Customizing Resources
It is common to compose a set of Resources in a project and manage them inside It is common to compose a set of Resources in a project and manage them inside
the same file or directory. the same file or directory.
Kustomize offers composing Resources from different files and applying patches or other customization to them. Kustomize offers composing Resources from different files and applying patches or other customization to them.
#### Composing #### Composing
@@ -465,7 +465,7 @@ EOF
cat <<EOF > patch.yaml cat <<EOF > patch.yaml
- op: replace - op: replace
path: /spec/replicas path: /spec/replicas
value: 3 value: 3
EOF EOF
# Create a kustomization.yaml # Create a kustomization.yaml
@@ -479,7 +479,7 @@ patchesJson6902:
version: v1 version: v1
kind: Deployment kind: Deployment
name: my-nginx name: my-nginx
path: patch.yaml path: patch.yaml
EOF EOF
``` ```
@@ -707,6 +707,7 @@ cat <<EOF > base/kustomization.yaml
resources: resources:
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
EOF
``` ```
This base can be used in multiple overlays. You can add different `namePrefix` or other cross-cutting fields 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 ## 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 Note that `-k` should point to a kustomization directory, such as
```shell ```shell