k3s/examples/environment-guide/containers
Jeff Mendoza c2a3e4e811 Add Environment Guide example.
This example shows a simple two tier setup in Kubernetes, and
simply prints the environment information that each pod sees.
Querying the service multiple times will show services at work
load balancing requests.
2015-06-09 09:07:27 -07:00
..
backend Add Environment Guide example. 2015-06-09 09:07:27 -07:00
show Add Environment Guide example. 2015-06-09 09:07:27 -07:00
README.md Add Environment Guide example. 2015-06-09 09:07:27 -07:00

README.md

Building

For each container, the build steps are the same. The examples below are for the show container. Replace show with backend for the backend container.

GCR

docker build -t gcr.io/<project-name>/show .
gcloud preview docker push gcr.io/<project-name>/show

Docker Hub

docker build -t <username>/show .
docker push <username>/show

Change Pod Definitions

Edit both show-rc.yaml and backend-rc.yaml and replace the specified image: with the one that you built.

Analytics