Commit Graph

63 Commits

Author SHA1 Message Date
Gurpartap Singh 92b9a61518 Updated guestbook based on suggestions in the pull request
Port of current guestbook's README.md

Fix guestbook pod and service names

Add go boilerplate

Use role label for redis pods

Give service.containerPort a name based value

This gives better env variable keys like REDIS_MASTER_SERVICE_REDIS_SERVER_ADDR, etc.

Avoid unnecessarily long names for service (esp in env vars)

Adding guestbook deploy/destroy scripts for k8s

These are probably only useful for quick testing. Maybe remove them
before merging the pull request.

Part of avoiding long names for services

Update Dockerfiles to git clone from Google's repo

Use correct service names while deleting them

Fix the script usage path.

K8s is not go gettable. Use git clone instead.

Using my fork in the Dockerfile to release and update to the docker hub
image.

Doesn't delete all pods if you remove controller too soon

Run the command in a shell to substitute env vars. Workaround for GoogleCloudPlatform/kubernetes#1309

GoogleCloudPlatform in lieu of my fork in Dckrfile

Some directory structure changes for guestbook src

README that explains the build process for source

Strip down the html and css to absolute essentials

Reformat JS according to Google's guidelines

Also added code to set random colors for elements.

Handle repetitive error checks using a common func

Also uses @roberthbailey’s stripped down code for reading env vars

infoString isn't really a string. Use info instead

Remove deploy.sh/destroy.sh scripts

Bind submit instead of keypress to capture submit

Add links to /env and /info in the footer

Reformat the JS

Incorporating suggestions by @filbranden

License boilerplate and some fixes to release.sh

Update README.md

Update README.md

Add building on boot2docker info to README

Accept docker bin path as a param for building

Use kubernetes user to host the image on registry

Don't get included in k8s's recursive build deps

https://github.com/GoogleCloudPlatform/kubernetes/pull/1299#discussion_r
17638061
2014-09-18 22:37:52 +05:30
Gurpartap Singh 304cf055db Add Go guestbook's k8s config json files 2014-09-12 22:58:32 +05:30
Gurpartap Singh fa38d92c5e Add Dockerfiles for compiling the guestbook and building a minimal image 2014-09-12 22:56:40 +05:30
Gurpartap Singh 4a36e76061 Add the source for Go based Guestbook 2014-09-12 22:54:54 +05:30
Max Forbes 3b9e9387cf Fix some readme and script bugs in examples (take 2).
v2: Resolve issues from comments, fix bugs in update-demo example, rename files for clarity, add turn-down steps.

v3: Add more set commands, clean up rest of env var checks.
2014-09-11 15:06:10 -07:00
Brian Grant 295e70a949 Misc. doc updates: Go setup, ssh reqd. on GCE, etcd reqd. for local, moved community links to wiki 2014-09-11 20:10:49 +00:00
Joe Beda bfac5dd64c Revert "Fix some readme and script bugs in examples."
This reverts commit 42baed492b92769b469e1b3c470183990fe78b16.
2014-09-10 13:42:19 -07:00
Max Forbes 5a9b7bcff5 Fix some readme and script bugs in examples. 2014-09-10 13:34:36 -07:00
Daniel Smith 18aa0512ca Do interface{} -> runtime.Object rename everywhere 2014-09-07 22:19:24 -07:00
Daniel Smith 5101708b9d Rename Codec and ResourceVersioner to add Default in front, to allow for types of those names 2014-09-07 22:19:24 -07:00
Joe Beda 354ee3666c Fix up e2e test for update demo.
Use the scripts that are in the example directory.  Also actually run the update as part of the test.
2014-09-04 13:25:39 -07:00
Joe Beda 72d646a8a1 Add containerPort to services in guestbook example 2014-09-04 13:25:39 -07:00
Joe Beda da34be94bf Pretty up the demo a little.
Use images and some better formatting.  Also add scripts to help prevent typos.

This based on an improved version done by Julia Ferraioli.  She came up with the cool images.
2014-09-04 13:25:39 -07:00
Deyuan Deng fd99ce5408 Include pod status in kebecfg humanreadable result. 2014-09-03 20:26:32 -04:00
derekwaynecarr 25e266459a Fixup name vs ID terminology 2014-09-03 10:27:33 -04:00
brendandburns 4b52ef0151 Merge pull request #1124 from soundTricker/master
Fix a wrong explaining text about running command to create replication controllers.
2014-09-02 21:07:06 -07:00
Daniel Smith 64e9a72f8f Combine pkg/apitools and pkg/api/common and call the result pkg/runtime 2014-09-02 11:15:44 -07:00
Daniel Smith fbb0bb830b Propagate rename; tests pass again. 2014-09-02 10:42:06 -07:00
keisuke oohashi d0b3f189be Fix a wrong explaining text about running command to create replication controller. 2014-09-01 13:24:38 +09:00
Daniel Smith a0992710f9 Invert api and api/v1beta1 dependencies
This is some cleanup that has been needed for a while.
There's still one more step that could usefully be done, which is to
split up our api package into the part that provides the helper
functions and the part that provides the internal types. That can come
later.

The v1beta1 package is now a good example of what an api plugin should
do to version its types.
2014-08-29 12:15:30 -07:00
Clayton Coleman c5e89a7524 Update the README.md with caveats about waiting 2014-08-20 18:46:10 -04:00
Deyuan Deng 338a6631d0 typo 2014-08-15 22:52:16 -04:00
Deyuan Deng 258c6fcf64 Fix broken link, remove unnecessary content. 2014-08-15 22:26:51 -04:00
CJ Cullen de05f67658 Fixed a couple typos in guestbook documentation. 2014-08-15 12:30:21 -07:00
Robert Bailey 0fc777084b Update the guestbook example to show the current json files from the examples/guestbook directory. 2014-07-30 16:52:58 -07:00
Daniel Smith 81b876e7f8 Merge pull request #565 from brendandburns/api2
Fork API types.
2014-07-24 22:29:57 -07:00
Brendan Burns 9535a52e75 Add kind and apiVersion to guestbook example. 2014-07-24 22:13:43 -07:00
Brendan Burns 19cbf37f5e Augment the update example to turn black if the server is not responding. 2014-07-24 21:46:35 -07:00
Clayton Coleman e9731c7b1f Add unit tests for example syntax
Tests api/examples, examples, and any embedded json in readme.
2014-07-23 15:18:55 -04:00
brendandburns bdaea6ab6f fix json. 2014-07-23 00:04:28 -07:00
brendandburns 7340f8952d modified to drop the leading '/'
Since it doesn't work @ head.
2014-07-22 23:56:43 -07:00
Clayton Coleman bfbbc84a4e Some examples don't pass Manifest validation 2014-07-22 20:17:14 -04:00
Kelsey Hightower f6e4a5388d fix guestbook example to match docs 2014-07-19 22:22:33 -07:00
Tim Hockin a5918e78d0 Merge pull request #287 from rafael/patch-1
Update commands to reflect latest changes.
2014-07-17 22:43:15 -07:00
Brendan Burns af5f972096 Move guestbook.md to README.md for default display by github. 2014-07-14 21:33:37 -07:00
Julia Ferraioli 94a376b0ad adding firewall instructions to the README 2014-07-14 15:24:50 -07:00
Takeshi Hagikura 7b95fbf28a Replace the outdated cloudcfg.sh to kubecfg.sh
Replaces the outdated cloudcfg.sh to kubecfg.sh in the dynamic update demo.
2014-07-02 07:35:08 +09:00
Tim Hockin 158c9d813d Fix examples to set manifest ID and version
Part 4 in a series of changes towards data validation.
2014-06-30 16:16:06 -07:00
Rafael Chacon 486adc2125 Update commands to reflect latest changes. 2014-06-28 18:31:56 -07:00
Brendan Burns 67f8843285 Change the frontend port in the guestbook example to 8000 2014-06-27 16:48:35 -07:00
Brendan Burns 724fb74023 Initial add of cloud-demo 2014-06-26 18:52:08 -07:00
Daniel Smith 7c07ac8b9c Rename cloudcfg to kubecfg 2014-06-25 18:01:37 -07:00
Ingo Gottwald 6108080ed2 Fix guestbook example json syntax error 2014-06-20 11:51:38 +02:00
Daniel Smith 1e7d92037a Rename ReplicasInSet to ReplicaSelector 2014-06-19 13:31:42 -07:00
Daniel Smith a1066913cd Update guestbook example 2014-06-19 13:31:42 -07:00
Brendan Burns 1a1b90b33a Add load balancing support to services. 2014-06-17 12:37:39 -07:00
Brian Dorsey 30f29e446e fix typo in guestbook URL 2014-06-15 16:13:49 -07:00
Brian Dorsey 8aacbfacd3 Updated cloudconfig.sh output examples
Updated cloudconfig.sh output examples to match what the tool currently prints.
Added specific gcutil commands to get public IP addresses, and create the firewall rules.
2014-06-15 16:12:13 -07:00
Brian Dorsey f8712143bd Add hack/build-go.sh to step zero
(needed when working from a completely clean install)
2014-06-15 15:36:56 -07:00
Brian Lynch 60b490e078 Update guestbook.md
The previous gcutil command fails to connect:

lynchb-macbookpro2:kubernetes lynchb$ gcutil ssh kubernetes-minion-3 --zone us-central1-b
INFO: Zone for kubernetes-minion-3 detected as us-central1-b.
INFO: Running command line: ssh -o UserKnownHostsFile=/dev/null -o CheckHostIP=no -o StrictHostKeyChecking=no -i /Users/lynchb/.ssh/google_compute_engine -A -p 22 lynchb@23.236.61.38 -- --zone us-central1-b
Warning: Permanently added '23.236.61.38' (RSA) to the list of known hosts.
bash: --: invalid option
Usage:	bash [GNU long option] [option] ...
	bash [GNU long option] [option] script-file ...
GNU long options:
	--debug
	--debugger
	--dump-po-strings
	--dump-strings
	--help
	--init-file
	--login
	--noediting
	--noprofile
	--norc
	--posix
	--protected
	--rcfile
	--restricted
	--verbose
	--version
Shell options:
	-irsD or -c command or -O shopt_option		(invocation only)
	-abefhkmnptuvxBCHP or -o option
2014-06-13 15:03:17 -07:00