Commit Graph

1195 Commits (edf21902b51cfb6b9e1c607452791af31cacd574)

Author SHA1 Message Date
deads2k 6670b73b18 make storage enablement, serialization, and location orthogonal 2016-04-21 08:18:55 -04:00
tobad357 1811ded396 This is an update that allows the iscsi volume to check if a iscsi device belongs to a mpio device
If it does belong to the device then we make sure we mount the mpio device instead of
the raw device.

Heuristics
Login into /dev/disk/by-path/iqn-example.com.2999 -> /dev/sde
Check if sde existsin in /sys/block/[dm-X]/slaves/xx
If it does mount /dev/[dm-x] which will look like /dev/mapper/mpiodevicename in mount

examples/iscsi has more details
2016-04-20 09:42:11 +08:00
Chris Love 44c49a688d ran hack/update-generated-docs.sh like I should 2016-04-19 14:13:36 -06:00
nikhiljindal 50a9aceabb Moving more logic to genericapiserver 2016-04-19 00:03:28 -07:00
Klaus Ma 326e30772a Added namespace to Spark example. 2016-04-19 00:34:47 +08:00
k8s-merge-robot f1eff2a737 Merge pull request #23862 from nelcy/flexsecrets
Automatic merge from submit-queue

Flexvolume: Add support for multiple secrets

This PR adds support to pass multiple secrets for flexvolume plugins.

To allow multiple secrets, secrets are now passed as:
"kubernetes.io/secret/id-rsa":"value-2\r\n\r\n","kubernetes.io/secret/id-rsa.pub":"value-1\r\n"
2016-04-16 16:32:48 -07:00
k8s-merge-robot 03f48e730e Merge pull request #22810 from amygdala/cassandra2
Automatic merge from submit-queue

phase 2 of cassandra example overhaul

Here's the next iteration in overhauling this example, towards https://github.com/kubernetes/kubernetes/issues/20961.  This removes the pod adoption part, but doesn't (yet) otherwise change any of the resources used.

It also includes some README cleanup, and removes some explicit specification of labels in the rc yaml.

This PR doesn't yet add any commentary on how we're using the seed provider (re: https://github.com/kubernetes/kubernetes/issues/20961#issuecomment-190405959 etc.).  Maybe we should add that.

Also: LMK if this PR should include any changes to the links out to the docs.

cc @bgrant0607 @johndmulhausen
2016-04-15 15:41:01 -07:00
Chakravarthy Nelluri f53bc4ebe0 Flexvolume: Add support for multiple secrets 2016-04-15 02:40:38 -07:00
Amy Unruh 8846b313dc phase 2 of cassandra example overhaul 2016-04-14 21:55:23 -07:00
chrislovecnm 82092f9ed0 Intial draft on SeedProvider docs 2016-04-14 17:12:38 -06:00
Chao Xu 08fc35018a Client-gen: handle dotted package name 2016-04-14 10:04:58 -07:00
k8s-merge-robot 429228d403 Merge pull request #23953 from nikhiljindal/u8sServer
Automatic merge from submit-queue

moving genericapiserver command line flags to genericapiserver

cc @kubernetes/sig-api-machinery
2016-04-13 23:15:24 -07:00
goltermann a3104ba96c Final vet fixes; enabling vet checks in verify scripts. 2016-04-13 13:51:51 -07:00
nikhiljindal 8d7a8c6ae6 moving genericapiserver command line flags to genericapiserver 2016-04-13 13:28:18 -07:00
k8s-merge-robot f5e8e7453b Merge pull request #23806 from smarterclayton/streaming_watch
Automatic merge from submit-queue

Implement a streaming serializer for watch

Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).

@wojtek-t @lavalamp
2016-04-13 05:18:17 -07:00
Amy Unruh d4251b2a25 update to use gb-frontend:v4. New image includes the change in PR # 23381. 2016-04-12 09:47:38 -07:00
k8s-merge-robot 31de62216d Merge pull request #23381 from kinvolk/alban/apache-log
Automatic merge from submit-queue

examples/guestbook/php-redis: don't reopen stdio fds

/etc/apache2/apache2.conf was configured to log in this way:
> ErrorLog /proc/self/fd/2
> CustomLog /proc/self/fd/1 combined

This causes apache to reopen the already-opened fds. It works fine when
the file descriptors are pipes or ttys but it fails when they are Unix
sockets because sockets cannot be opened with the open() syscall. The
issue happens when apache is connected to systemd-journald, like in the
rkt container run-time.

This patch uses "cat" to directly write to the stdio fds without
reopening them. apache2.conf now looks like:
> ErrorLog "|$/bin/cat 1>&2"
> CustomLog "|/bin/cat" combined

It works both with Docker and rkt (tested with and without
--interactive).

Symptoms:
> [ 2673.478868] apache2-foreground[4]: (6)No such device or address:
> AH00091: apache2: could not open error log file /proc/self/fd/2.

See also: https://github.com/coreos/rkt/issues/2300

-----

/cc @sjpotter @yifan-gu @jonboulle
2016-04-11 16:58:23 -07:00
Clayton Coleman 3474911736 Implement a streaming serializer for watch
Changeover watch to use streaming serialization. Properly version the
watch objects. Implement simple framing for JSON and Protobuf (but not
YAML).
2016-04-11 11:22:05 -04:00
Huamin Chen bd68007f80 better NFS example doc
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-04-06 17:21:03 +00:00
Janet Kuo c1596e6711 Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
Dawn Chen c47f74a470 Merge pull request #23348 from pwittrock/docs
Update docs to reflect `kubectl run` creates deployments by default i…
2016-03-28 17:03:47 -07:00
Phillip Wittrock 4d2f3c1c17 Update docs to reflect `kubectl run` creates deployments by default instead of replicatino controllers. 2016-03-28 16:25:02 -07:00
k8s-merge-robot 08e9ef0ef9 Merge pull request #22195 from jeffmendoza/wordpress-update
Auto commit by PR queue bot
2016-03-25 14:14:44 -07:00
Jeff Mendoza fb601cd1e2 WordPress example major update.
Rewrite the WordPress example to use deployments, persistent volume
claims, and update the sample flow to the latest guidelines.
2016-03-25 11:40:35 -07:00
Matthias Luebken 024918d819 Merge branch 'master' into fix-guestbook-go-build 2016-03-24 13:37:16 +01:00
Alban Crequy f6f013b992 examples/guestbook/php-redis: don't reopen stdio fds
/etc/apache2/apache2.conf was configured to log in this way:
> ErrorLog /proc/self/fd/2
> CustomLog /proc/self/fd/1 combined

This causes apache to reopen the already-opened fds. It works fine when
the file descriptors are pipes or ttys but it fails when they are Unix
sockets because sockets cannot be opened with the open() syscall. The
issue happens when apache is connected to systemd-journald, like in the
rkt container run-time.

This patch uses "cat" to directly write to the stdio fds without
reopening them. apache2.conf now looks like:
> ErrorLog "|$/bin/cat 1>&2"
> CustomLog "|/bin/cat" combined

It works both with Docker and rkt (tested with and without
--interactive).

Symptoms:
> [ 2673.478868] apache2-foreground[4]: (6)No such device or address:
> AH00091: apache2: could not open error log file /proc/self/fd/2.

See also: https://github.com/coreos/rkt/issues/2300
2016-03-23 16:01:34 +01:00
k8s-merge-robot 6147ef87d8 Merge pull request #22263 from runseb/22121
Auto commit by PR queue bot
2016-03-21 18:06:37 -07:00
k8s-merge-robot 6f2729f0dc Merge pull request #23132 from jeffmendoza/update-exmaple-guidelines
Auto commit by PR queue bot
2016-03-21 17:30:24 -07:00
Matthias Luebken 95cee0db17 * updated console output to reflect actual output
* added a tip how to build your own image
2016-03-21 22:23:53 +01:00
Matthias Luebken cc91f129a0 pinned version 2016-03-21 22:22:41 +01:00
k8s-merge-robot 4b1b291a9f Merge pull request #22905 from gambol99/cephfs_path_example
Auto commit by PR queue bot
2016-03-21 12:46:26 -07:00
k8s-merge-robot 63608235d6 Merge pull request #22153 from idvoretskyi/patch-8
Auto commit by PR queue bot
2016-03-21 12:11:12 -07:00
Jeff Mendoza b865784264 Add rule about kubectl to example guidelines doc. 2016-03-17 10:09:45 -07:00
Nick Stogner caf2ebb208 fix incorrect db label
The rethinkdb example driver-service was incorrectly labeled as db:
`influxdb`
2016-03-16 12:09:43 -04:00
k8s-merge-robot 4b7e74ceeb Merge pull request #22898 from nikhiljindal/apiserverexampleport
Auto commit by PR queue bot
2016-03-15 08:46:59 -07:00
Matthias Luebken 1531700f42 using registry and image name as specified in _src/Makefile 2016-03-15 10:18:28 +01:00
Matthias Luebken 771354f14a replacing the shell scripts with a Makefile 2016-03-15 09:49:50 +01:00
Rohith 395e83c549 - updating the cephfs example, most people, myself include skip the readme and jump to the code
- add the path attribute to the example
2016-03-12 16:51:32 +00:00
k8s-merge-robot c9250bba2a Merge pull request #21899 from zmerlynn/update-spark
Auto commit by PR queue bot
2016-03-12 07:25:17 -08:00
nikhiljindal df89b2d2fc Change the port for apiserver example 2016-03-12 00:12:53 -08:00
Brian Grant 532ba5a3c6 Merge pull request #21535 from AdoHe/restore_secure_etcd
restore ability to run against secured etcd
2016-03-11 12:14:06 -08:00
AdoHe 7228b9b987 restore ability to run against secured etcd 2016-03-11 11:21:16 -05:00
k8s-merge-robot b33ff00b16 Merge pull request #22691 from mkulke/fix-mysql-cinder-example
Auto commit by PR queue bot
2016-03-10 09:36:16 -08:00
runseb 66008ff419 Clarify examples/kubectl-container 2016-03-10 17:49:19 +01:00
David McMahon dae84f5306 Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
Magnus Kulke 5b77064cc3 Added ignore-db-dir arg. 2016-03-08 09:58:12 +01:00
Magnus Kulke 8d4a31b02e Trailing ws. 2016-03-08 09:56:58 +01:00
k8s-merge-robot fea6b0d50c Merge pull request #22608 from fejta/redis
Auto commit by PR queue bot
2016-03-06 17:32:20 -08:00
Brian Grant 8098504ef9 Merge pull request #21645 from amygdala/cassandra
Cassandra example: daemonset volume fix, readme cleanup, update to new gcr image
2016-03-06 16:20:21 -08:00
Erick Fejta 6a657e0bc2 Use redis from gcr.io and e2e tag 2016-03-05 20:37:44 -08:00
Zach Loafman 6e2e7bd3b6 Bump Spark / Zeppelin to 1.5.2 / 0.5.6 tags
From https://github.com/kubernetes/application-images/pull/5
2016-03-04 13:26:05 -08:00
k8s-merge-robot 80e201f74b Merge pull request #21717 from jeffmendoza/sample-guidelines
Auto commit by PR queue bot
2016-03-03 13:18:29 -08:00
Jeff Mendoza d303112875 Update exmaple README, and add guidelines.md to examples. 2016-03-03 09:20:50 -08:00
k8s-merge-robot d81d823ca5 Merge pull request #22393 from eparis/blunderbuss
Auto commit by PR queue bot
2016-03-02 18:51:56 -08:00
Eric Paris 5e5a823294 Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
k8s-merge-robot d5a4915cf3 Merge pull request #22036 from timstclair/docs
Auto commit by PR queue bot
2016-03-01 11:46:33 -08:00
Amy Unruh 04a585458c Cassandra example: daemonset volume fix, readme cleanup, update to new gcr
image consistent with the code base.
Change the label on the daemonset to 'app'.
2016-03-01 08:58:42 -08:00
Ihor Dvoretskyi ec0ec74e51 Docker Ceph link updated 2016-02-28 12:55:38 -08:00
Fabio Yeon 09dd0f1809 Merge pull request #21639 from jayunit100/cassandra-example-fix
Fix broken cassandra test: Up to date containers + RC of 2 nodes with…
2016-02-26 15:48:02 -08:00
Fabio Yeon 1065f4f932 Merge pull request #21621 from jayunit100/k8bps-defaultns
[examples] k8petstore: connection timeouts + allow blips.
2016-02-26 15:47:00 -08:00
Tim St. Clair 198c120036 Detect & fix backwards markdown links (of the form (foo)[bar]) 2016-02-26 13:24:21 -08:00
Eric Tune 095a85e76e Update docs and examples to batch/v1 Job
Documented manualSelector field.

Documented that you do not need to provide a selector
or unique labels with batch/v1 Job.

Updated all Job examples to apiVersion: batch/v1

Updated all Job examples to use generated selectors.
2016-02-25 09:28:07 -08:00
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
Vladimir Rutsky d325ded6c7 fix typo: ", ." 2016-02-25 17:13:34 +03:00
Alex Robinson c031697848 Merge pull request #21626 from jayunit100/examples-spark-fix
Fix broken spark tests to use yaml files, 1 worker, declare DNS depe…
2016-02-24 16:30:19 -08:00
jay vyas 6efe5d05c3 [examples] k8petstore: connection timeouts and pass fail that is allows blips.
Author:    jay vyas <jay@apache.org>
 Date:      Fri Feb 19 18:44:13 2016 -0500
 Committer: jay vyas <jay@apache.org>
2016-02-23 23:11:44 -05:00
jay vyas 4c91cf2028 e2e cassandra fixes, needs follow on container update 2016-02-22 19:50:05 -05:00
jay vyas 782b268f02 [examples] [e2e] Fix spark example e2e tests: labels, forEach, json->yaml 2016-02-22 16:40:30 -05:00
k8s-merge-robot 60c6edaee7 Merge pull request #21634 from jayunit100/spark-README
Auto commit by PR queue bot
2016-02-20 23:59:59 -08:00
jay vyas 6cbcb5d6c7 Update spark README with container location and DNS req. 2016-02-20 17:33:30 -05:00
Matthias Luebken 90c89e15b6 Fix: add src to correct root path. 2016-02-20 23:25:03 +01:00
Matthias Luebken 6fe13ab726 using official golang image 2016-02-20 23:16:51 +01:00
laushinka 7ef585be22 Spelling fixes inspired by github.com/client9/misspell 2016-02-18 06:58:05 +07:00
k8s-merge-robot 6d50c226c2 Merge pull request #21345 from CenturyLinkCloud/master
Auto commit by PR queue bot
2016-02-17 02:26:51 -08:00
ckleban c8a2ee39fc Fixing mysql-galena example's config files 2016-02-16 15:02:42 -08:00
Amy Unruh 2d8f857a24 Update guestbook frontend php script suggested in issue #18640.
(Created new GCR image version with the changes).
2016-02-16 11:05:51 -08:00
Matthias Luebken eff27cd503 Fix: add src and workdir to correct root path. 2016-02-16 16:42:45 +01:00
k8s-merge-robot 94b8554c91 Merge pull request #21033 from nikhiljindal/swaggerspecInGenericServer
Auto commit by PR queue bot
2016-02-14 11:39:56 -08:00
Jerome Touffe-Blin 1ef6580ea3 Fix #19098 - misplace cassandra-controller in cassandra example 2016-02-12 19:31:55 +11:00
nikhiljindal e2bffac285 Moving installing swagger spec to generic api server 2016-02-10 18:33:47 -08:00
Janet Kuo ddd983286b Move deployment example to docs/user-guide 2016-02-10 10:46:12 -08:00
k8s-merge-robot 41a98b43e4 Merge pull request #19840 from madhusudancs/replicaset-deployment
Auto commit by PR queue bot
2016-02-09 18:57:42 -08:00
Matthew Farrellee 0336220bf1 update spark example yaml to use new images 2016-02-09 17:18:47 -05:00
k8s-merge-robot 8d95da1b49 Merge pull request #20590 from erictune/rc-doc
Auto commit by PR queue bot
2016-02-09 00:11:39 -08:00
Madhusudan.C.S 518f08aa7c Move Deployments to ReplicaSets and switch the Deployment selector to the new LabelSelector.
Update the Deployments' API types, defaulting code, conversions, helpers
and validation to use ReplicaSets instead of ReplicationControllers and
LabelSelector instead of map[string]string for selectors.

Also update the Deployment controller, registry, kubectl subcommands,
client listers package and e2e tests to use ReplicaSets and
LabelSelector for Deployments.
2016-02-08 21:27:38 -08:00
Huamin Chen d7e4b826b9 support Azure File Service volume
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-02-09 01:07:12 +00:00
Eric Tune f7a89cedda Update replication-controller docs
Adds a document on pod templates that can be shared
between various controller docs.

Move more philosophical content to later in the doc.

Add more task-oriented stuff earlier.

Put example config in the document, early on, so users have something concrete to relate the discussion of fields to.

Link to Job and DaemonSet docs.

Make format more like that of Job and DaemonSet docs.

Use jsonpath in examples, which is available in v1.1.

Added example files.
2016-02-08 15:51:53 -08:00
Nikhil Jindal 59820827d4 Merge pull request #20513 from nikhiljindal/apiserverExampleTest
Adding test for apiserver example
2016-02-04 11:28:58 -08:00
k8s-merge-robot dbd7b83d93 Merge pull request #20545 from pmorie/boilerplate
Auto commit by PR queue bot
2016-02-03 19:46:26 -08:00
Kevin c8c82c1d8f implement Node affinity and NodeSelector 2016-02-04 01:53:14 +00:00
nikhiljindal c7beb9078c Updating methods to return error rather than using glog.Fatalf 2016-02-03 16:00:45 -08:00
Paul Morie b672785d72 Add boilerplate checks for Dockerfiles 2016-02-03 18:35:26 -05:00
Paul Morie 05bd107301 Add boilerplate checks for Makefiles 2016-02-03 18:35:26 -05:00
nikhiljindal 2aa28c6553 Adding test for apiserver example 2016-02-02 15:42:29 -08:00
k8s-merge-robot 71727385e8 Merge pull request #20069 from BugRoger/cephfs_subtree_mount_master
Auto commit by PR queue bot
2016-02-02 02:15:35 -08:00
Minhan Xia 05e63d5967 fix es example 2016-02-01 14:50:38 -08:00
Michael Schmidt 1373e0139d CephFS: Add subdir Option for Changing Mounted Root Directory 2016-02-01 22:01:19 +01:00
Chao Xu ebcff4b5e4 fix the namespaceScoped of cachers 2016-01-28 16:24:54 -08:00
k8s-merge-robot d582fabf90 Merge pull request #19753 from jayunit100/cleanup-ha-example
Auto commit by PR queue bot
2016-01-25 19:48:14 -08:00
k8s-merge-robot 8e04196ebc Merge pull request #20085 from pjvds/patch-1
Auto commit by PR queue bot
2016-01-25 19:33:43 -08:00