From 29edafa519b013038a19e0229d6613d2e218e603 Mon Sep 17 00:00:00 2001 From: Jeff Lowdermilk Date: Thu, 14 May 2015 15:12:45 -0700 Subject: [PATCH] Add ga-beacon analytics to gendocs scripts hack/run-gendocs.sh puts ga-beacon analytics link into all md files, hack/verify-gendocs.sh verifies presence of link. --- cassandra/README.md | 3 +++ celery-rabbitmq/README.md | 3 +++ cluster-dns/README.md | 3 +++ downward-api/README.md | 3 +++ elasticsearch/README.md | 4 +++- explorer/README.md | 3 +++ glusterfs/README.md | 3 +++ guestbook-go/README.md | 3 +++ guestbook-go/_src/README.md | 3 +++ guestbook/README.md | 3 +++ hazelcast/README.md | 3 +++ iscsi/README.md | 3 +++ k8petstore/README.md | 3 +++ k8petstore/bps-data-generator/README.md | 3 +++ kubernetes-namespaces/README.md | 3 +++ liveness/README.md | 3 +++ logging-demo/README.md | 3 +++ meteor/README.md | 3 +++ meteor/dockerbase/README.md | 3 +++ mysql-wordpress-pd/README.md | 3 +++ nfs/README.md | 3 +++ nfs/exporter/README.md | 3 +++ nfs/nfs-data/README.md | 4 +++- node-selection/README.md | 3 +++ openshift-origin/README.md | 3 +++ persistent-volumes/README.md | 3 +++ phabricator/README.md | 3 +++ redis/README.md | 3 +++ rethinkdb/README.md | 3 +++ secrets/README.md | 3 +++ simple-nginx.md | 3 +++ simple-yaml.md | 3 +++ spark/README.md | 3 +++ storm/README.md | 3 +++ update-demo/README.md | 3 +++ walkthrough/README.md | 3 +++ walkthrough/k8s201.md | 3 +++ 37 files changed, 111 insertions(+), 2 deletions(-) diff --git a/cassandra/README.md b/cassandra/README.md index dedde6fe..3eb5f23d 100644 --- a/cassandra/README.md +++ b/cassandra/README.md @@ -360,3 +360,6 @@ public class KubernetesSeedProvider implements SeedProvider { } } ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/cassandra/README.md?pixel)]() diff --git a/celery-rabbitmq/README.md b/celery-rabbitmq/README.md index 494de777..9d852bdf 100644 --- a/celery-rabbitmq/README.md +++ b/celery-rabbitmq/README.md @@ -232,3 +232,6 @@ rabbitmq-controller-pjzb3 10.246.2.16 rabbitmq library/rabb Now you know on which host Flower is running (in this case, 10.245.1.4), you can open your browser and enter the address (e.g. `http://10.245.1.4:5555`. If you click on the tab called "Tasks", you should see an ever-growing list of tasks called "celery_conf.add" which the run\_tasks.py script is dispatching. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/celery-rabbitmq/README.md?pixel)]() diff --git a/cluster-dns/README.md b/cluster-dns/README.md index d2ab5d8e..8e3c123e 100644 --- a/cluster-dns/README.md +++ b/cluster-dns/README.md @@ -135,3 +135,6 @@ $ cluster/kubectl.sh log dns-frontend #### Note about default namespace If you prefer not using namespace, then all your services can be addressed using `default` namespace, e.g. `http://dns-backend.default.kubernetes.local:8000`, or shorthand version `http://dns-backend:8000` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/cluster-dns/README.md?pixel)]() diff --git a/downward-api/README.md b/downward-api/README.md index bd84da62..0770e6b0 100644 --- a/downward-api/README.md +++ b/downward-api/README.md @@ -31,3 +31,6 @@ $ kubectl log dapi-test-pod | grep POD_ 2015-04-30T20:22:18.568024817Z POD_NAME=dapi-test-pod 2015-04-30T20:22:18.568087688Z POD_NAMESPACE=default ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/downward-api/README.md?pixel)]() diff --git a/elasticsearch/README.md b/elasticsearch/README.md index ba2ddb4d..0c90ccdc 100644 --- a/elasticsearch/README.md +++ b/elasticsearch/README.md @@ -316,4 +316,6 @@ $ curl 104.197.12.157:9200/_nodes?pretty=true | grep name "vm_name" : "OpenJDK 64-Bit Server VM", "name" : "eth0", -``` \ No newline at end of file +``` + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/elasticsearch/README.md?pixel)]() diff --git a/explorer/README.md b/explorer/README.md index f66ba01d..92caefd1 100644 --- a/explorer/README.md +++ b/explorer/README.md @@ -126,3 +126,6 @@ Error: <*>lookup elasticsearch-logging: no such host ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/explorer/README.md?pixel)]() diff --git a/glusterfs/README.md b/glusterfs/README.md index f67b4672..c2a7b772 100644 --- a/glusterfs/README.md +++ b/glusterfs/README.md @@ -80,3 +80,6 @@ $ mount | grep kube_vol ``` You may also run `docker ps` on the host to see the actual container. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/glusterfs/README.md?pixel)]() diff --git a/guestbook-go/README.md b/guestbook-go/README.md index 64698836..0f36b049 100644 --- a/guestbook-go/README.md +++ b/guestbook-go/README.md @@ -209,3 +209,6 @@ To turn down a Kubernetes cluster: ```shell $ cluster/kube-down.sh ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/guestbook-go/README.md?pixel)]() diff --git a/guestbook-go/_src/README.md b/guestbook-go/_src/README.md index 6689eb5d..236bd826 100644 --- a/guestbook-go/_src/README.md +++ b/guestbook-go/_src/README.md @@ -32,3 +32,6 @@ Accepts an optional tag (defaults to "latest") ###### Clean up ./script/clean.sh + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/guestbook-go/_src/README.md?pixel)]() diff --git a/guestbook/README.md b/guestbook/README.md index 37c3340d..25d805ad 100644 --- a/guestbook/README.md +++ b/guestbook/README.md @@ -550,3 +550,6 @@ $> docker logs 26af6bd5ac12 ==> default: Fatal error: Uncaught exception 'Predis\ServerException' with message 'MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error.' in /vendor/predis/predis/lib/Predis/Client.php:282" ``` The fix is to setup SE Linux properly (don't just turn it off). Remember that you can also rebuild this entire app from scratch, using the dockerfiles, and modify while redeploying. Reach out on the mailing list if you need help doing so! + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/guestbook/README.md?pixel)]() diff --git a/hazelcast/README.md b/hazelcast/README.md index c388b4e3..d6d75291 100644 --- a/hazelcast/README.md +++ b/hazelcast/README.md @@ -329,3 +329,6 @@ public class HazelcastDiscoveryController implements CommandLineRunner { } ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/hazelcast/README.md?pixel)]() diff --git a/iscsi/README.md b/iscsi/README.md index 892dca56..f63e9a2d 100644 --- a/iscsi/README.md +++ b/iscsi/README.md @@ -55,3 +55,6 @@ Run *docker inspect* and I found the Containers mounted the host directory into # docker inspect --format '{{index .Volumes "/mnt/iscsipd"}}' cc051196e7af /var/lib/kubelet/pods/75e0af2b-f8e8-11e4-9ae7-42010af01964/volumes/kubernetes.io~iscsi/iscsipd-rw ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/iscsi/README.md?pixel)]() diff --git a/k8petstore/README.md b/k8petstore/README.md index 7d623f0c..aba63da4 100644 --- a/k8petstore/README.md +++ b/k8petstore/README.md @@ -109,3 +109,6 @@ Thus we plan to add another tier of queueing, which empties the REDIS transactio For questions on running this app, you can ask on the google containers group (freenode ~ google-containers@googlegroups.com or #google-containers on IRC) For questions about bigpetstore, and how the data is generated, ask on the apache bigtop mailing list. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/k8petstore/README.md?pixel)]() diff --git a/k8petstore/bps-data-generator/README.md b/k8petstore/bps-data-generator/README.md index ff17f803..21b1319e 100644 --- a/k8petstore/bps-data-generator/README.md +++ b/k8petstore/bps-data-generator/README.md @@ -13,3 +13,6 @@ and checkout the last exact version (will be updated periodically). then, cd to bigtop-bigpetstore/bigpetstore-transaction-queue, and run the docker file, i.e. `Docker build -t -i jayunit100/bps-transaction-queue`. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/k8petstore/bps-data-generator/README.md?pixel)]() diff --git a/kubernetes-namespaces/README.md b/kubernetes-namespaces/README.md index 1f6ca376..6e6fce34 100644 --- a/kubernetes-namespaces/README.md +++ b/kubernetes-namespaces/README.md @@ -247,3 +247,6 @@ At this point, it should be clear that the resources users create in one namespa As the policy support in Kubernetes evolves, we will extend this scenario to show how you can provide different authorization rules for each namespace. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/kubernetes-namespaces/README.md?pixel)]() diff --git a/liveness/README.md b/liveness/README.md index 5092cd3e..f2aa50b3 100644 --- a/liveness/README.md +++ b/liveness/README.md @@ -74,3 +74,6 @@ You would also see the killing and creating events at the bottom of the *kubectl Thu, 14 May 2015 15:23:25 -0700 Thu, 14 May 2015 15:23:25 -0700 1 {kubelet kubernetes-minion-0uzf} spec.containers{liveness} started Started with docker id b254a9810073f9ee9075bb38ac29a4b063647176ad9eabd9184078ca98a60062 ... ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/liveness/README.md?pixel)]() diff --git a/logging-demo/README.md b/logging-demo/README.md index 7352e9ef..a655e1db 100644 --- a/logging-demo/README.md +++ b/logging-demo/README.md @@ -241,3 +241,6 @@ Access the Elasticsearch service at URL `https://130.211.122.180/api/v1beta3/pro } ``` Visiting the URL `https://130.211.122.180/api/v1beta3/proxy/namespaces/default/services/kibana-logging` should show the Kibana viewer for the logging information stored in the Elasticsearch service. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/logging-demo/README.md?pixel)]() diff --git a/meteor/README.md b/meteor/README.md index 1aaea80c..add964d1 100644 --- a/meteor/README.md +++ b/meteor/README.md @@ -163,3 +163,6 @@ container section: } ], ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/meteor/README.md?pixel)]() diff --git a/meteor/dockerbase/README.md b/meteor/dockerbase/README.md index f0234c9a..a3a9e090 100644 --- a/meteor/dockerbase/README.md +++ b/meteor/dockerbase/README.md @@ -7,3 +7,6 @@ To build and push the base meteor-kubernetes image: docker build -t chees/meteor-kubernetes . docker push chees/meteor-kubernetes + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/meteor/dockerbase/README.md?pixel)]() diff --git a/mysql-wordpress-pd/README.md b/mysql-wordpress-pd/README.md index 404257d7..ac360f42 100644 --- a/mysql-wordpress-pd/README.md +++ b/mysql-wordpress-pd/README.md @@ -307,3 +307,6 @@ $ /cluster/kube-down.sh + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/mysql-wordpress-pd/README.md?pixel)]() diff --git a/nfs/README.md b/nfs/README.md index 53a8ce7c..c716dcf8 100644 --- a/nfs/README.md +++ b/nfs/README.md @@ -35,3 +35,6 @@ Now the pod serves `index.html` from the NFS server: $ curl http:/// Hello World! + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/nfs/README.md?pixel)]() diff --git a/nfs/exporter/README.md b/nfs/exporter/README.md index e051e675..f8564d9b 100644 --- a/nfs/exporter/README.md +++ b/nfs/exporter/README.md @@ -8,3 +8,6 @@ Serves NFS4 exports, defined on command line. At least one export must be define Usage:: docker run -d --name nfs --privileged jsafrane/nfsexporter /path/to/share /path/to/share2 ... + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/nfs/exporter/README.md?pixel)]() diff --git a/nfs/nfs-data/README.md b/nfs/nfs-data/README.md index 4b5ab2b8..f7606ace 100644 --- a/nfs/nfs-data/README.md +++ b/nfs/nfs-data/README.md @@ -4,4 +4,6 @@ This container exports /mnt/data with index.html in it via NFSv4. Based on ../exporter. Available in dockerhub as -[jsafrane/nfs-data](https://registry.hub.docker.com/u/jsafrane/nfs-data/). \ No newline at end of file +[jsafrane/nfs-data](https://registry.hub.docker.com/u/jsafrane/nfs-data/). + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/nfs/nfs-data/README.md?pixel)]() diff --git a/node-selection/README.md b/node-selection/README.md index f22d624c..2c560851 100644 --- a/node-selection/README.md +++ b/node-selection/README.md @@ -58,3 +58,6 @@ When you then run `kubectl create -f pod.yaml`, the pod will get scheduled on th ### Conclusion While this example only covered one node, you can attach labels to as many nodes as you want. Then when you schedule a pod with a nodeSelector, it can be scheduled on any of the nodes that satisfy that nodeSelector. Be careful that it will match at least one node, however, because if it doesn't the pod won't be scheduled at all. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/node-selection/README.md?pixel)]() diff --git a/openshift-origin/README.md b/openshift-origin/README.md index 5387d990..be2dd384 100644 --- a/openshift-origin/README.md +++ b/openshift-origin/README.md @@ -153,3 +153,6 @@ $ docker run --privileged --entrypoint="/usr/bin/bash" -it -e="OPENSHIFTCONFIG=/ $ osc config use-context public-default $ osc --help ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/openshift-origin/README.md?pixel)]() diff --git a/persistent-volumes/README.md b/persistent-volumes/README.md index 93489a40..42a1f40c 100644 --- a/persistent-volumes/README.md +++ b/persistent-volumes/README.md @@ -110,3 +110,6 @@ Hopefully this simple guide is enough to get you started with PersistentVolumes. ```#google-containers``` on IRC and ask! Enjoy! + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/persistent-volumes/README.md?pixel)]() diff --git a/phabricator/README.md b/phabricator/README.md index 3b079e2e..0f5fca7f 100644 --- a/phabricator/README.md +++ b/phabricator/README.md @@ -216,3 +216,6 @@ To turn down a Kubernetes cluster: ```shell $ cluster/kube-down.sh ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/phabricator/README.md?pixel)]() diff --git a/redis/README.md b/redis/README.md index b23ddac9..6837db07 100644 --- a/redis/README.md +++ b/redis/README.md @@ -113,3 +113,6 @@ kubectl delete pods redis-master ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/redis/README.md?pixel)]() diff --git a/rethinkdb/README.md b/rethinkdb/README.md index fd453a23..0dad10f9 100644 --- a/rethinkdb/README.md +++ b/rethinkdb/README.md @@ -130,3 +130,6 @@ since the ui is not stateless when playing with Web Admin UI will cause `Connect the generated pods which is using `nodeSelector` to force k8s to schedule containers to my designate nodes, for I need to access persistent data on my host dirs. Note that one needs to label the node before 'nodeSelector' can work, see this [tutorial](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/node-selection) * see [antmanler/rethinkdb-k8s](https://github.com/antmanler/rethinkdb-k8s) for detail + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/rethinkdb/README.md?pixel)]() diff --git a/secrets/README.md b/secrets/README.md index 35653837..450d38f3 100644 --- a/secrets/README.md +++ b/secrets/README.md @@ -44,3 +44,6 @@ volume: $ kubectl log secret-test-pod 2015-04-29T21:17:24.712206409Z content of file "/etc/secret-volume/data-1": value-1 ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/secrets/README.md?pixel)]() diff --git a/simple-nginx.md b/simple-nginx.md index 64c4ea2d..60b866e5 100644 --- a/simple-nginx.md +++ b/simple-nginx.md @@ -43,3 +43,6 @@ This should print the service that has been created, and map an external IP addr ### Next: Configuration files Most people will eventually want to use declarative configuration files for creating/modifying their applications. A [simplified introduction](simple-yaml.md) is given in a different document. + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/simple-nginx.md?pixel)]() diff --git a/simple-yaml.md b/simple-yaml.md index c3e55c0d..646054a8 100644 --- a/simple-yaml.md +++ b/simple-yaml.md @@ -87,3 +87,6 @@ To delete the replication controller (and the pods it created): ```bash kubectl delete rc nginx ``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/simple-yaml.md?pixel)]() diff --git a/spark/README.md b/spark/README.md index 1b5c96fc..9ddcc11e 100644 --- a/spark/README.md +++ b/spark/README.md @@ -171,3 +171,6 @@ SparkContext available as sc. Make sure the Master Pod is running (use: ```kubectl get pods```). ```kubectl create -f spark-worker-controller.json``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/spark/README.md?pixel)]() diff --git a/storm/README.md b/storm/README.md index 4c4a8a8e..7d449058 100644 --- a/storm/README.md +++ b/storm/README.md @@ -168,3 +168,6 @@ Make sure the ZooKeeper Pod is running (use: ```kubectl get pods```). Make sure the Nimbus Pod is running. ```kubectl create -f storm-worker-controller.json``` + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/storm/README.md?pixel)]() diff --git a/update-demo/README.md b/update-demo/README.md index 1b2e2ac8..2f9dcfdd 100644 --- a/update-demo/README.md +++ b/update-demo/README.md @@ -114,3 +114,6 @@ Note that the images included here are public domain. * [kitten](http://commons.wikimedia.org/wiki/File:Kitten-stare.jpg) * [nautilus](http://commons.wikimedia.org/wiki/File:Nautilus_pompilius.jpg) + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/update-demo/README.md?pixel)]() diff --git a/walkthrough/README.md b/walkthrough/README.md index 994361a5..855dfd8a 100644 --- a/walkthrough/README.md +++ b/walkthrough/README.md @@ -110,3 +110,6 @@ Finally, we have also introduced an environment variable to the ```git-monitor`` ### What's next? Continue on to [Kubernetes 201](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/walkthrough/k8s201.md) or for a complete application see the [guestbook example](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/guestbook/README.md) + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/walkthrough/README.md?pixel)]() diff --git a/walkthrough/k8s201.md b/walkthrough/k8s201.md index 17399448..aa0538f5 100644 --- a/walkthrough/k8s201.md +++ b/walkthrough/k8s201.md @@ -149,3 +149,6 @@ spec: ### What's next? For a complete application see the [guestbook example](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/examples/guestbook). + + +[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/examples/walkthrough/k8s201.md?pixel)]()