Commit Graph

36 Commits (db9eb1d2157b9569c18d88b6f08c1ae25825ed05)

Author SHA1 Message Date
Tej-Singh-Rana 856ea6292e
replaced URL 2020-10-15 10:12:25 +05:30
Kubernetes Prow Robot 3841d72380
Merge pull request #21278 from hasheddan/seccomp
Add documentation for Seccomp GA
2020-07-20 12:14:39 -07:00
hasheddan 3ad7ea77f1
Add documentation for generally available seccomp functionality
Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
2020-07-20 13:51:17 -05:00
Weiping Cai 4490fe014f
use printf to replace printenv
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
2020-07-01 14:48:38 +08:00
Weiping Cai 506a57849b
uograde dependent-envars.yaml leave out env name
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
2020-06-23 09:38:16 +08:00
Weiping Cai 5513c60b54
add define interdependent environment variables page
Signed-off-by: Weiping Cai <weiping.cai@daocloud.io>
2020-06-16 18:40:30 +08:00
Sylvain COULOMBEL 081c7a713c Clean-up extra line in tasks: configure pod container 2020-05-16 16:01:39 +02:00
Rajesh Deshpande 83f50b828f
A new task page for assigining a pod to nodes using node affinity (#19265)
* Example for required node affinity tasks

Example for required node affinity tasks

* Create pod-nginx-preffered-affinity.yaml

* task for assigning pods nodes using node affinity

A new task for assigning pods nodes using node affinity

* Correcting syntax and spelling

Correcting syntax and spelling

* Correcting syntax and spelling

Correcting syntax and spelling

* fix for review comment 

Fix for review comment

* Adding min k8s server version

Adding min k8s server version

* Correcting small style issues

Correcting small style issues. This will also retrigger new build.
2020-03-26 01:26:30 -07:00
inductor 4297f3b29c
Update nginx to modern versions (#19198)
* update nginx versions

* update

* update examples
2020-03-17 10:48:23 -07:00
Jason Hall 459fe87540 Remove readOnly:false from Downward API volume examples (#17661)
Downward API volumes are not writeable, even if readOnly:true is set, so
including this in the example is potentially confusing for users.
2019-11-30 18:49:03 -08:00
Benjamin Fuller 8c0be10bfd Update docs to include example of tolerations in a pod (#16157)
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
2019-09-27 13:33:35 -07:00
Wei Huang 015fe705f0 Documenting how to use EvenPodsSpread feature (#15514)
* Documenting how to use EvenPodsSpread feature

* address comments

* address comments

* address sftim's comments

* move to folder workloads/pods

* address comments

* move yamls to examples folder and reference back in the document

* Link from scheduling to topology spread constraints
2019-09-07 10:47:18 -07:00
Kohei Toyoda d6bcc7b8d9 Fix orders of yaml for examples. (#15763) 2019-08-09 14:33:15 -07:00
zwwhdls a0084c609d change the service account name in tutorial (#15260) 2019-07-06 04:08:34 -07:00
Marcin Niemira e174e79438 Fix alignment in examples/pods/storage/pv-pod.yaml (#15198) 2019-07-01 03:15:22 -07:00
Taylor D. Edmiston a688849341 Make indentation consistent (#15118) 2019-06-25 18:15:14 -07:00
Seth 7f888c11f3 Pod yaml command and change pod curl (#14448) 2019-05-21 13:40:06 -07:00
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