Commit Graph

1785 Commits

Author SHA1 Message Date
Matt T. Proud 4ff333e606 Swap internal doc. refs to relative links.
This commit addresses issue #1571, which requests that all internal
Kubernetes links are swapped to relative ones to better facilitate
browsing of documentation on local forks, not to mention make the
documentation have less needless boilerplate.
2014-10-08 21:09:18 +02:00
Daniel Smith c8da98565a Merge pull request #1623 from smarterclayton/rename_jsonbase
Rename JSONBase -> TypeMeta in preparation for v1beta3
2014-10-07 10:50:28 -07:00
Clayton Coleman 7a472bc380 Rename JSONBase -> TypeMeta in preparation for v1beta3
Will make subsequent refactor much easier
2014-10-07 11:12:16 -04:00
Vishnu Kannan 327d486941 Fix update demo. 2014-10-07 08:03:42 +00:00
Brendan Burns cb1d0ff965 Add a resource fit scheduler predicate. Set sensible defaults. 2014-10-03 15:09:59 -07:00
derekwaynecarr db95a19729 Updates to review comments 2014-10-01 10:57:50 -04:00
derekwaynecarr 9b0f645245 Fix examples test by setting a context prior to validation 2014-10-01 10:57:50 -04:00
Gurpartap Singh 54cc5f9405 One last time. 2014-09-26 10:51:09 +05:30
Gurpartap Singh 0ffa667741 Use builder instead of build 2014-09-26 10:50:51 +05:30
Gurpartap Singh f74028f30e Use builder instead of build 2014-09-26 10:50:27 +05:30
Gurpartap Singh 854e3826ba Update README.md
GoogleCloudPlatform/kubernetes#1454
2014-09-26 06:01:59 +05:30
Johan Euphrosine 4a2b02acfa examples/guestbook-go: build from source and remove bin/docker dep 2014-09-25 16:34:20 -07:00
Brendan Burns 3e10fceef6 Merge pull request #1383 from smarterclayton/expand_syntax_validation
Expand syntax validation for other examples
2014-09-24 14:55:47 -07:00
Tim Hockin 8726d91c78 Add per-service env vars for *_SERVICE_HOST
As a replacement of a single SERVICE_HOST variable, offer a FOO_SERVICE_HOST
variable.  This will help ease the transition to ip-per-service, where there
is no longer a single service host.

# *** ERROR: *** Some files are missing the required boilerplate
# header from hooks/boilerplate.txt:
#   examples/guestbook/redis-slave/run.sh
#
# Your commit will be aborted unless you fix these.
#   COMMIT_BLOCKED_ON_BOILERPLATE
2014-09-24 09:07:21 -07:00
Robert Bailey b1b285b5fa Fixed a small typo in the guestbook-go build instructions. 2014-09-23 16:44:27 -07:00
Brendan Burns 1f6939e76a Fix some paths in the Dockerfiles. 2014-09-23 20:58:08 +00:00
Brendan Burns a2428cb34c Merge pull request #1299 from Gurpartap/guestbook-go
Rewrite of the Guestbook example in Go
2014-09-23 13:34:15 -07:00
Joe Beda 3fe21e9873 Tweak instructions for update demo 2014-09-22 13:20:10 -07:00
Clayton Coleman c77f503adf Expand syntax validation for other examples 2014-09-19 13:14:33 -04:00
Brendan Burns d508b8c38d Initial add of a walkthrough of basic Kubernetes concepts. 2014-09-18 20:22:50 -07:00
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
Clayton Coleman 75c2f35d46 Make runtime less global for Codec
* Make Codec separate from Scheme
* Move EncodeOrDie off Scheme to take a Codec
* Make Copy work without a Codec
* Create a "latest" package that imports all versions and
  sets global defaults for "most recent encoding"
  * v1beta1 is the current "latest", v1beta2 exists
  * Kill DefaultCodec, replace it with "latest.Codec"
  * This updates the client and etcd to store the latest known version
* EmbeddedObject is per schema and per package now
* Move runtime.DefaultScheme to api.Scheme
* Split out WatchEvent since it's not an API object today, treat it
like a special object in api
* Kill DefaultResourceVersioner, instead place it on "latest" (as the
  package that understands all packages)
* Move objDiff to runtime.ObjectDiff
2014-09-16 16:26:43 -04:00
Clayton Coleman e738a328c5 Simple refactor for ease of readability
runtime.DefaultCodec -> latest.Codec
2014-09-16 16:12:35 -04:00
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