k3s/examples
Kubernetes Submit Queue 3d33b45e43 Merge pull request #30091 from rootfs/azure-storage
Automatic merge from submit-queue

support Azure disk dynamic provisioning

azure disk dynamic provisioning

A screen shot 

``` console
$ kubectl create -f examples/experimental/persistent-volume-provisioning/azure-dd.yaml
storageclass "slow" created
$ kubectl create -f examples/experimental/persistent-volume-provisioning/claim1.json
persistentvolumeclaim "claim1" created
$ kubectl describe pvc
Name:       claim1
Namespace:  default
Status:     Bound
Volume:     pvc-de7150d1-6a37-11e6-aec9-000d3a12e034
Labels:     <none>
Capacity:   3Gi
Access Modes:   RWO
$ kubectl create -f pod.yaml
replicationcontroller "nfs-server" created
$ kubectl describe pod
Name:       nfs-server-b9w6x
Namespace:  default
Node:       rootfs-dev/172.24.0.4
Start Time: Wed, 24 Aug 2016 19:46:21 +0000
Labels:     role=nfs-server
Status:     Running
IP:     172.17.0.2
Controllers:    ReplicationController/nfs-server
Containers:
  nfs-server:
    Container ID:   docker://be6f8c0e26dc896d4c53ef0d21c9414982f0b39a10facd6b93a255f9e1c3806c
    Image:      nginx
    Image ID:       docker://bfdd4ced794ed276a28cf56b233ea58dec544e9ca329d796cf30b8bcf6d39b3f
    Port:       
    State:      Running
      Started:      Wed, 24 Aug 2016 19:49:19 +0000
    Ready:      True
    Restart Count:  0
    Volume Mounts:
      /exports from mypvc (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-9o0fj (ro)
    Environment Variables:  <none>
Conditions:
  Type      Status
  Initialized   True 
  Ready     True 
  PodScheduled  True 
Volumes:
  mypvc:
    Type:   PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  claim1
    ReadOnly:   false
  default-token-9o0fj:
    Type:   Secret (a volume populated by a Secret)
    SecretName: default-token-9o0fj
QoS Class:  BestEffort
Tolerations:    <none>
Events:
  FirstSeen LastSeen    Count   From            SubobjectPath           Type        Reason      Message
  --------- --------    -----   ----            -------------           --------    ------      -------
  11m       11m     1   {default-scheduler }                    Normal      Scheduled   Successfully assigned nfs-server-b9w6x to rootfs-dev
  9m        9m      1   {kubelet rootfs-dev}                    Warning     FailedMount Unable to mount volumes for pod "nfs-server-b9w6x_default(6eb7fd98-6a33-11e6-aec9-000d3a12e034)": timeout expired waiting for volumes to attach/mount for pod "nfs-server-b9w6x"/"default". list of unattached/unmounted volumes=[mypvc]
  9m        9m      1   {kubelet rootfs-dev}                    Warning     FailedSync  Error syncing pod, skipping: timeout expired waiting for volumes to attach/mount for pod "nfs-server-b9w6x"/"default". list of unattached/unmounted volumes=[mypvc]
  8m        8m      1   {kubelet rootfs-dev}    spec.containers{nfs-server} Normal      Pulling     pulling image "nginx"
  8m        8m      1   {kubelet rootfs-dev}    spec.containers{nfs-server} Normal      Pulled      Successfully pulled image "nginx"
  8m        8m      1   {kubelet rootfs-dev}    spec.containers{nfs-server} Normal      Created     Created container with docker id be6f8c0e26dc
  8m        8m      1   {kubelet rootfs-dev}    spec.containers{nfs-server} Normal      Started     Started container with docker id be6f8c0e26dc

```

@colemickens @brendandburns
2016-11-01 17:27:14 -07:00
..
apiserver Make GenericApiServer.Run interruptable and fail on first listen 2016-11-01 09:50:56 +01:00
cluster-dns Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
cockroachdb Improve CockroachDB example 2016-10-31 15:48:41 -04:00
elasticsearch Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
experimental/persistent-volume-provisioning azure disk volume: support storage class and dynamic provisioning 2016-10-28 13:31:47 +00:00
explorer Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
guestbook Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
guestbook-go Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
https-nginx Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
javaee Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
javaweb-tomcat-sidecar Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
job Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
k8petstore Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
kubectl-container Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
meteor Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
mysql-cinder-pd Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
mysql-wordpress-pd Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
newrelic Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
nodesjs-mongodb Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
openshift-origin Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
phabricator Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
runtime-constraints Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
selenium Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
sharing-clusters Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
spark Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
storage (Auto-gen) Run update-all.sh, codecgen, munge docs, and bazel 2016-10-27 17:25:10 -07:00
storm Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
sysdig-cloud Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
volumes Merge pull request #35546 from thockin/kill-head-scary-warning-on-master 2016-10-26 16:44:53 -07:00
BUILD add genrule for test bindata 2016-10-24 18:00:08 -07:00
OWNERS Move blunderbuss assignees into tree 2016-03-02 20:46:32 -05:00
README.md Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
examples_test.go Rename PetSet API to StatefulSet 2016-10-27 17:25:10 -07:00
guidelines.md Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00
pod examples/pod: Revert the previous changes. 2016-09-13 15:09:25 -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 Remove 'this is HEAD' warning on docs 2016-10-26 00:06:59 +02:00

README.md

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