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
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 <<EOF > 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 <<EOF > 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