Commit Graph

19 Commits (6b46deab6e0c2649b2badb1445d94cccf7f9d656)

Author SHA1 Message Date
Prankul 25ec99b46b Change image name in redis_pod.yaml; k8s.io/docs/tutorials/configuration/configure-redis-using-configmap/ (#14177) 2019-05-06 17:39:39 -07:00
wangyamei 34d8d57473 make the example consistent with the test (#13906) 2019-05-04 20:55:37 -07:00
Julio Lopez 5621bc1ee1 Fix key name in pod-configmap-volume-specific-key.yaml example (#13599)
Changes the key name to `SPECIAL_LEVEL` in the config map volume definition.
This is consistent with the rest of the example. Otherwise, this pod does not
start because there is no key with that name in the `special-config` config map.
2019-04-19 09:37:54 -07:00
Rajesh Deshpande 67aa1fa26a Define container environment variables using Secret data (#13800)
* Example for injecting single secret as env variable

Define a container environment variable with data from a single Secret

* Env variable using secret data

* Update pod-single-secret-env-variable.yaml

* Adding example for multiple env variable using secrets

Adding example for multiple env variables using secrets

* Create pod-secret-envFrom.yaml

* Update pod-multiple-secret-env-variable.yaml

* Update pod-multiple-secret-env-variable.yaml

* Update pod-multiple-secret-env-variable.yaml

* Update pod-single-secret-env-variable.yaml

* Update pod-multiple-secret-env-variable.yaml

* Update pod-single-secret-env-variable.yaml

* Different ways to add env variable using secret

Adding different ways to add env variable in pod using secret

* Correcting formatting issues

Correcting formatting issues

* Correcting format issue
2019-04-14 17:48:00 -07:00
Ricardo Cordeiro 5d83dcbf46 Fixes `runAsGroup` security context example (#13535) (#13538) 2019-04-09 18:56:12 -07:00
Qiming 253480646a Fix Travis example tests for release-1.13 (#13145)
xref: #13122
2019-03-13 10:47:39 -07:00
Dani Comnea da20b139da Update configure-service-account task file to reference pod spec file from examples dir (#13065) 2019-03-12 12:38:39 -07:00
Dani Comnea e38f800d81 Add codenew shortcode to configure-pod-configmap task file and sanitize the example files (#13078) 2019-03-11 20:28:38 -07:00
WanLinghao 268c9473a5 Add docs to illustrate how to schedule pod to specific node (#12871) 2019-02-27 21:22:19 -08:00
Ben Kuhn 7f3eb1dac6 Better example of a preStop hook for nginx (#12563)
It looks like `nginx -s quit` returns immediately rather than blocking until nginx has finished gracefully shutting down. As a result, just running `nginx -s quit` in the preStop hook won't work very well for high load and/or long running requests; nginx will get a TERM signal (and do a hard shutdown) immediately after `nginx -s quit` returns.

(I was getting connection errors while terminating pods, and adding a sleep-until-done to the preStop hook seemed to make them go away.)
2019-02-17 07:40:45 -08:00
Murcurio 6adce91e46 Update http-liveness.yaml (#12255)
Deprecating the "X-" Prefix and Similar Constructs in Application Protocols:
https://tools.ietf.org/html/rfc6648
2019-02-17 07:31:41 -08:00
Juan Diego Palomino 6224377d87 Trying to update ReplicaSet Docs as per issue 12081 (#12409)
* First draft of the updates to the ReplicaSet Docs

To start with, I tried to cleanup the docs to adhere to the style guide https://kubernetes.io/docs/contribute/style/style-guide/. I then added some description of the ReplicaSet-Pod link via the owner reference field and behavior by it. I also made a clarification on the ReplicaSet demo where it was being redundant for the sake of demonstrating the different forms of usage. I consider this draft incomplete as I still lack knowledge of how the pod labels affect the behavior.

* Clearing up RC refs & explaining acquisition behavior

I'm beginning to address the cr by cleaning up references to the ReplicationController and making it clear that RCs are discouraged/old. I then expanded on the behavior of ReplicaSet in the presence of pods it can acquire but are not created directly by it.

* Mismatched link seems to have disappeared from preview
"As with all other Kubernetes API objects," etc... is present in the sibling  concepts/workloads/controllers/ files, so I am hesitant to change that w/o changing the others, but I did abbreviate it.

"The `.spec.template` is the only required field of the `.spec`." is false, we also need the selector

Trying to address passive voice

Cleaned up Writing a ReplicaSet Manifest section

removed How to use a ReplicaSet section as it has redundant info from the examples and Alternatives section

Expanded examples a bit

Cleared up passive voice

* refactoring link to example yaml

* adding pod-rs test case

* Addressing Steve Perry's comments

Capitalize Pod throughout.

Link is not rendering correctly. Use () instead of [] for the path.

Ending with "for the creation" seems vague to me. Maybe this:
"...reach the desired number. When a ReplicaSet needs to create new Pods, it uses its Pod template."

Suggestion: "is via the Pod's metadata.ownerReferences field." That way the reader won't jump to the incorrect conclusion that we're talking about the ReplicaSet's metadata.ownerReferences field.

with fields, including a selector that

and plans accordingly

Our style for headings is sentence case. So this heading would be "How a ReplicaSet works".

Several headings in this topic need to be converted to sentence case.

cleaned up frontend.yaml example

added example checking the Pod's owner reference being set to it's parent ReplicaSet

* Previous commit broke Pod example links due to casing

* Forgot 1 comment

Suggestion: In the ReplicaSet, .spec.template.metadata.labels must match spec.selector, or ...

* Addressing grammar/syntax errors
2019-02-06 10:09:22 -08:00
Khurram 66894191f1 Update downward-api-volume-expose-pod-information.md (#9567)
dapi-volume-resources.yaml
Added divisor field in resourceFieldRef for DownwardAPIVolumeFiles
to clarify the format in which values are returned.

Issue: https://github.com/kubernetes/kubernetes/issues/64579
2018-07-31 04:34:38 -07:00
Qiming 472be9a374 Consolidate YAML files [part-15] (#9380)
This is the last PR for moving the YAML/JSON sample files. There still
need some follow up PRs to:
- rename the `codenew` shortcode to `code`.
- move the examples_test.go to where it really belongs.
2018-07-10 09:09:26 -07:00
Qiming 3dd65e4e95 Consolidate YAML files [part-14] (#9379)
This PR deals with the getting started guides (windows) and tutorials
sections. Since the YAML files in the windows directory currently are not
referenced at all, this PR refactored the markdown file to correct this
problem. When appropriate, we use the YAML content from the markdown in
the extracted version.
2018-07-03 23:58:20 -07:00
Qiming ea6004bd4f Consolidate YAML files [part-12] (#9364)
* Consolidate YAML files [part-12]

Relocate YAML files referenced by the accessing application topic
and the rest of cluster administration.

* Adjust json shortcodes.
2018-07-03 23:19:23 -07:00
Qiming 9b81aa7ccd Consolidate YAML files [part-10] (#9362)
* Consolidate YAML files [part-10]

This PR relocates the YAML files used by the pod configuration topic.

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go

* Update examples_test.go
2018-07-03 13:31:20 -07:00
Qiming 1228689b1d Consolidate YAML files [part-9] (#9361)
This PR relocates the YAML files referenced by the data injection topic.
2018-07-03 11:50:19 -07:00
Qiming b5f6df9926 Consolidate YAML files [part-8] (#9347)
* Consolidate YAML files [part-8]

This PR exacts the YAML files referenced from the following subdirs:

- docs/concepts/workloads
- docs/concepts/configuration
- docs/concepts/policy

The following problems are fixed:

- docs/concepts/workloads/controllers/ doesnt have a 'cronjob.yaml for
  test
- the exactly same `pod.yaml` was used in both the task/config-pod-container
  topic and the concepts/configuration topics.

* Update examples_test.go

* Add missing yaml file.
2018-07-02 17:35:20 -07:00