Kubernetes application example tutorials
Go to file
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
apiserver Change the port for apiserver example 2016-03-12 00:12:53 -08:00
aws_ebs Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
azure_file Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
blog-logging Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
cassandra Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
celery-rabbitmq Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
cephfs - updating the cephfs example, most people, myself include skip the readme and jump to the code 2016-03-12 16:51:32 +00:00
cluster-dns Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
elasticsearch Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
experimental/persistent-volume-provisioning Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
explorer Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
fibre_channel Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
flexvolume Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
flocker Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
glusterfs Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
guestbook examples/guestbook/php-redis: don't reopen stdio fds 2016-03-23 16:01:34 +01:00
guestbook-go Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
hazelcast Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
https-nginx Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
iscsi Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
javaee Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
javaweb-tomcat-sidecar Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
job Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
k8petstore Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
kubectl-container Clarify examples/kubectl-container 2016-03-10 17:49:19 +01:00
meteor Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
mysql-cinder-pd Merge pull request #22691 from mkulke/fix-mysql-cinder-example 2016-03-10 09:36:16 -08:00
mysql-galera Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
mysql-wordpress-pd Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
newrelic Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
nfs Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
nodesjs-mongodb Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
openshift-origin Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
phabricator Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
rbd Merge pull request #22153 from idvoretskyi/patch-8 2016-03-21 12:11:12 -07:00
redis Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
rethinkdb fix incorrect db label 2016-03-16 12:09:43 -04:00
runtime-constraints Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
selenium Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
sharing-clusters Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
spark Merge pull request #21899 from zmerlynn/update-spark 2016-03-12 07:25:17 -08:00
storm Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
vitess Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -08:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
README.md Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -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
guidelines.md Add rule about kubectl to example guidelines doc. 2016-03-17 10:09:45 -07: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 Update the latestReleaseBranch to release-1.2 in the munger. 2016-03-08 18:59:28 -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.2/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.

Maintained Examples

Maintained Examples are expected to be updated with every Kubernetes release, to use the latest and greatest features, current guidelines and best practices, and to refresh command syntax, output, changed prerequisites, as needed.

Name Description Notable Features Used Complexity Level
Guestbook PHP app with Redis Replication Controller, Service Beginner
WordPress WordPress with MySQL Deployment, Persistent Volume with Claim Beginner
Cassandra Cloud Native Cassandra Daemon Set Intermediate

Note: Please add examples to the list above that are maintained.

See Example Guidelines for a description of what goes in this directory, and what examples should contain.

Analytics