-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from rramkumar1/docs-fix
Update docs for contributing
- Loading branch information
Showing
21 changed files
with
261 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# echoserver | ||
|
||
The echoserver binary is a simple webserver that responds to HTTP GET calls on | ||
the following two paths: | ||
|
||
* "/healthcheck" - Responds with a 200. | ||
|
||
* "/" - Responds w/ information from the request such as host, headers, etc. | ||
|
||
This server is suitable for use as a backend for an Ingress. See [here](echo.yaml) | ||
for an example usage. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
# Contribute | ||
|
||
This directory will soon contain up-to-date information on how to contribute to | ||
ingress-gce | ||
This directory contains information on how to contribute to the ingress-gce project. | ||
If you find a requirement that this doc does not capture, please submit an issue on GitHub. | ||
|
||
1. Read the [setup guide](dev-setup.md) for information on how to get your | ||
development environment setup, run unit tests and how to build binaries. | ||
2. Read the [cluster setup guide](cluster-setup.md) for information on how to create a cluster | ||
that can be used to test your changes. | ||
3. Read the [testing guide](testing.md) for how to test your changes end-to-end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Overview | ||
|
||
This doc outlines the steps needed to setup a dev cluster for testing changes | ||
made to the Ingress-GCE controller. Typically we test out controller changes | ||
by running the binary locally but this still means we need a working cluster | ||
to test against. | ||
|
||
## Create the cluster | ||
|
||
We recommend to create a k8s cluster in GCE. For instructions on how to do | ||
that, go [here](../deploy/gce/README.md) | ||
|
||
## Remove the default controller | ||
|
||
Once the cluster is created, we need to delete the existing Ingress-GCE controller | ||
that comes by default: | ||
|
||
```console | ||
kubectl delete pod l7-lb-controller | ||
``` | ||
|
||
This ensures we can run our own copy of the controller locally. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Overview | ||
|
||
This document explains how to get started with developing for Ingress-GCE. | ||
The below guide assumes you have installed the necessary binaries to run Golang. | ||
|
||
## Get the code | ||
|
||
It is suggested to create your own fork of the repository on Github. Once that | ||
is done, go ahead and download the repo. | ||
|
||
```console | ||
cd $GOPATH/src | ||
git clone https://github.com/[YOUR GITHUB_USER]/ingress-gce.git | ||
``` | ||
|
||
## Unit tests | ||
|
||
To execute the unit tests, run: | ||
|
||
```console | ||
make test | ||
``` | ||
|
||
## Building | ||
|
||
This assumes you have properly setup docker. | ||
|
||
All ingress-gce binaries are built through a Makefile. Depending on your | ||
requirements you can build a raw binary, a local container image, | ||
or push an image to a remote repository. To build all binaries, run: | ||
|
||
```console | ||
make build | ||
``` | ||
|
||
The resulting binaries can be found in bin/amd64/. To push an image up to a | ||
repository, run the following: | ||
|
||
```console | ||
export REGISTRY=[MY CONTAINER REGISTRY] | ||
make push | ||
``` | ||
We suggest using [Google Container Registry](https://cloud.google.com/container-registry/docs/quickstart) | ||
to store your images. | ||
|
||
## Other considerations | ||
|
||
The build uses dependencies in the `ingress/vendor` directory, which | ||
must be installed before building a binary/image. Occasionally, you | ||
might need to update the dependencies. In that case, you will need to install | ||
the [dep](https://github.com/golang/dep) tool. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# How To Run | ||
|
||
This directory will soon contain up-to-date information on how to run your own | ||
self-managed instance of the ingress-gce controller. | ||
This directory contains information for how to run the Ingress-GCE controller. | ||
|
||
## Navigation | ||
|
||
* [Running on GCE](gce/README.md) | ||
* [Run a self-managed instance on GKE](gke/README.md) | ||
* [Run locally](local/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Overview | ||
|
||
This guide walks you through how to create a k8s cluster on GCE with the | ||
Ingress-GCE controller. The steps below assume that you already have a project | ||
in GCP setup and that you have a working `gcloud` binary. | ||
|
||
## Deploy on GCE | ||
|
||
Verify the project you want to create the cluster in is the same as the one | ||
displayed by the following command: | ||
|
||
```console | ||
gcloud config list | ||
``` | ||
|
||
Then, clone the kubernetes repo and test-infra repo: | ||
|
||
```console | ||
$ cd $GOPATH/src/ | ||
$ git clone https://github.com/kubernetes/kubernetes.git | ||
$ git clone https://github.com/kubernetes/test-infra.git | ||
``` | ||
|
||
Change into kubernetes/kubernetes and build the release tars: | ||
|
||
```console | ||
make quick-release | ||
``` | ||
|
||
Finally, create the cluster: | ||
|
||
```console | ||
go run hack/e2e.go --up | ||
``` | ||
|
||
Note that the above command automatically destroys any existing cluster that | ||
was previously created with --up. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.