Skip to content

Commit c98cc8a

Browse files
Merge pull request kubernetes#1272 from jeffmendoza/yaml-guidelines
Add yaml guidelines to readme.md /editdocs
2 parents 7fb953c + 2a613c0 commit c98cc8a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

README.md

+26
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,32 @@ http://kubernetes-v1-3.github.io/
152152

153153
Editing of these branches will kick off a build using Travis CI that auto-updates these URLs; you can monitor the build progress at [https://travis-ci.org/kubernetes/kubernetes.github.io](https://travis-ci.org/kubernetes/kubernetes.github.io).
154154

155+
## Config yaml guidelines
156+
157+
Guidelines for config yamls that are included in the site docs. These
158+
are the yaml or json files that contain Kubernetes object
159+
configuration to be used with `kubectl create -f` Config yamls should
160+
be:
161+
162+
* Separate deployable files, not embedded in the document, unless very
163+
small variations of a full config.
164+
* Included in the doc with the include code
165+
[above.](#include-code-from-another-file)
166+
* In the same directory as the doc that they are being used in
167+
* If you are re-using a yaml from another doc, that is OK, just
168+
leave it there, don't move it up to a higher level directory.
169+
* Tested in
170+
[test/examples_test.go](https://github.com/kubernetes/kubernetes.github.io/blob/master/test/examples_test.go)
171+
* Follows
172+
[best practices.](http://kubernetes.io/docs/user-guide/config-best-practices/)
173+
174+
Don't assume the reader has this repository checked out, use `kubectl
175+
create -f https://github...` in example commands. For Docker images
176+
used in config yamls, try to use an image from an existing Kubernetes
177+
example. If creating an image for a doc, follow the
178+
[example guidelines](https://github.com/kubernetes/kubernetes/blob/master/examples/guidelines.md#throughout)
179+
section on "Docker images" from the Kubernetes repository.
180+
155181
## Partners
156182
Kubernetes partners refers to the companies who contribute to the Kubernetes core codebase and/or extend their platform to support Kubernetes. Partners can get their logos added to the partner section of the [community page](http://k8s.io/community) by following the below steps and meeting the below logo specifications. Partners will also need to have a URL that is specific to integrating with Kubernetes ready; this URL will be the destination when the logo is clicked.
157183

0 commit comments

Comments
 (0)