k3s/examples
Eric Tune 875755f992 Added Selector Generation to Job.
Added selector generation to Job's
strategy.Validate, right before validation.
Can't do in defaulting since UID is not known.

Added a validation to Job to ensure that the generated
labels and selector are correct when generation was requested.
This happens right after generation, but validation is in a better
place to return an error.

Adds "manualSelector" field to batch/v1 Job to control selector generation.
Adds same field to extensions/__internal.  Conversion between those two
is automatic.

Adds "autoSelector" field to extensions/v1beta1 Job.  Used for storing batch/v1 Jobs
    - Default for v1 is to do generation.
    - Default for v1beta1 is to not do it.
    - In both cases, unset == false == do the default thing.

Release notes:
Added batch/v1 group, which contains just Job, and which is the next
version of extensions/v1beta1 Job.

The changes from the previous version are:
- Users no longer need to ensure labels on their pod template are unique to the enclosing
  job (but may add labels as needed for categorization).
- In v1beta1, job.spec.selector was defaulted from pod labels, with the user responsible for uniqueness.
  In v1, a unique label is generated and added to the pod template, and used as the selector (other
  labels added by user stay on pod template, but need not be used by selector).
- a new field called "manualSelector" field exists to control whether the new behavior is used,
  versus a more error-prone but more flexible "manual" (not generated) seletor.  Most users
  will not need to use this field and should leave it unset.

Users who are creating extensions.Job go objects and then posting them using the go client
will see a change in the default behavior.  They need to either stop providing a selector (relying on
selector generation) or else specify "spec.manualSelector" until they are ready to do the former.
2016-02-25 09:28:07 -08:00
..
apiserver Moving installing swagger spec to generic api server 2016-02-10 18:33:47 -08:00
aws_ebs run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
azure_file support Azure File Service volume 2016-02-09 01:07:12 +00:00
blog-logging run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
cassandra Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
celery-rabbitmq Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
cephfs CephFS: Add subdir Option for Changing Mounted Root Directory 2016-02-01 22:01:19 +01:00
cluster-dns Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
elasticsearch fix es example 2016-02-01 14:50:38 -08:00
experimental/persistent-volume-provisioning run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
explorer Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
fibre_channel run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
flexvolume Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
flocker fix typo: ", ." 2016-02-25 17:13:34 +03:00
glusterfs run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
guestbook Update guestbook frontend php script suggested in issue #18640. 2016-02-16 11:05:51 -08:00
guestbook-go Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
hazelcast Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
https-nginx Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
iscsi run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
javaee run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
javaweb-tomcat-sidecar Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
job Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
k8petstore Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
kubectl-container Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
meteor Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
mysql-cinder-pd run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
mysql-galera Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
mysql-wordpress-pd run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
newrelic run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
nfs Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
nodesjs-mongodb run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
openshift-origin run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
phabricator Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
rbd run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
redis Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
rethinkdb Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
runtime-constraints run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
selenium Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
sharing-clusters Remaining codec change refactors 2016-01-22 13:27:27 -05:00
spark Merge pull request #21626 from jayunit100/examples-spark-fix 2016-02-24 16:30:19 -08:00
storm run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
vitess run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
README.md run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00
doc.go Make copyright ownership statement generic 2015-05-01 17:49:56 -04:00
examples_test.go Added Selector Generation to Job. 2016-02-25 09:28:07 -08:00
pod kubectl resource builder: don't check extension for single files 2015-07-07 13:48:29 -07:00
scheduler-policy-config-with-extender.json Scheduler extension 2015-11-25 08:19:27 -08:00
scheduler-policy-config.json Ubernetes Lite: Volumes can dictate zone scheduling 2015-12-31 12:27:01 -05:00
simple-nginx.md run hack/update-generated-docs.sh 2015-12-21 10:41:30 -08:00

README.md

WARNING WARNING WARNING WARNING WARNING

PLEASE NOTE: This document applies to the HEAD of the source tree

If you are using a released version of Kubernetes, you should refer to the docs that go with that version.

The latest release of this document can be found [here](http://releases.k8s.io/release-1.1/examples/README.md).

Documentation for other releases can be found at releases.k8s.io.

Kubernetes Examples: releases.k8s.io/HEAD

This directory contains a number of examples of how to run real applications with Kubernetes.

Demonstrations of how to use specific Kubernetes features can be found in our documents.

Analytics