Commit Graph

1363 Commits

Author SHA1 Message Date
nikhiljindal 2e712473aa moving genericapiserver command line flags to genericapiserver 2016-04-13 13:28:18 -07:00
k8s-merge-robot 341837d67d 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 d9eec9ea25 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 78ab8ad4b6 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 8859f12c26 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 6bf084d2d8 better NFS example doc
Signed-off-by: Huamin Chen <hchen@redhat.com>
2016-04-06 17:21:03 +00:00
Janet Kuo 599369872e Update guestbook examples; replace RC concepts with Deployment 2016-03-30 14:16:52 -07:00
Dawn Chen 0aebd64b23 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 d9391c60f5 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 d043ad0486 Merge pull request #22195 from jeffmendoza/wordpress-update
Auto commit by PR queue bot
2016-03-25 14:14:44 -07:00
Jeff Mendoza ca846d7f2a 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 4c0532ddcb Merge branch 'master' into fix-guestbook-go-build 2016-03-24 13:37:16 +01:00
Alban Crequy 604f8889f5 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 0ca6f76b73 Merge pull request #22263 from runseb/22121
Auto commit by PR queue bot
2016-03-21 18:06:37 -07:00
k8s-merge-robot ecf74f403a 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 367781f48a * 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 f4132a7ff4 pinned version 2016-03-21 22:22:41 +01:00
k8s-merge-robot 13b7739239 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 7550672c67 Merge pull request #22153 from idvoretskyi/patch-8
Auto commit by PR queue bot
2016-03-21 12:11:12 -07:00
Jeff Mendoza d438e20d43 Add rule about kubectl to example guidelines doc. 2016-03-17 10:09:45 -07:00
Nick Stogner 80753beaca 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 4f246cda28 Merge pull request #22898 from nikhiljindal/apiserverexampleport
Auto commit by PR queue bot
2016-03-15 08:46:59 -07:00
Matthias Luebken 90dc647a32 using registry and image name as specified in _src/Makefile 2016-03-15 10:18:28 +01:00
Matthias Luebken 01f4a33130 replacing the shell scripts with a Makefile 2016-03-15 09:49:50 +01:00
Rohith d6b525c467 - 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 8e99f7242b Merge pull request #21899 from zmerlynn/update-spark
Auto commit by PR queue bot
2016-03-12 07:25:17 -08:00
nikhiljindal 3801801edd Change the port for apiserver example 2016-03-12 00:12:53 -08:00
Brian Grant f58537d494 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 d96c632ee7 restore ability to run against secured etcd 2016-03-11 11:21:16 -05:00
k8s-merge-robot 52d7a1a547 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 99489b560f Clarify examples/kubectl-container 2016-03-10 17:49:19 +01:00
David McMahon 74811d373b Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
Magnus Kulke b3bd3b6997 Added ignore-db-dir arg. 2016-03-08 09:58:12 +01:00
Magnus Kulke 6a9b100e79 Trailing ws. 2016-03-08 09:56:58 +01:00
k8s-merge-robot eb67d4a799 Merge pull request #22608 from fejta/redis
Auto commit by PR queue bot
2016-03-06 17:32:20 -08:00
Brian Grant 542aaba03d 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 081191c990 Use redis from gcr.io and e2e tag 2016-03-05 20:37:44 -08:00
Zach Loafman dd09c35bff 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 d10d5188fd Merge pull request #21717 from jeffmendoza/sample-guidelines
Auto commit by PR queue bot
2016-03-03 13:18:29 -08:00
Jeff Mendoza 76c3b418b2 Update exmaple README, and add guidelines.md to examples. 2016-03-03 09:20:50 -08:00
k8s-merge-robot 0fc1cbc6c4 Merge pull request #22393 from eparis/blunderbuss
Auto commit by PR queue bot
2016-03-02 18:51:56 -08:00
Eric Paris 040de28328 Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
k8s-merge-robot 79fe31a5e2 Merge pull request #22036 from timstclair/docs
Auto commit by PR queue bot
2016-03-01 11:46:33 -08:00
Amy Unruh 580c4b9d4e 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 5ee25cb6b1 Docker Ceph link updated 2016-02-28 12:55:38 -08:00
Fabio Yeon a5c676520a 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 97579deda8 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 3c6084e32d Detect & fix backwards markdown links (of the form (foo)[bar]) 2016-02-26 13:24:21 -08:00
Eric Tune e4025556c1 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 d624c731df 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