Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Heschi Kreinick 97ac8cdb8a all: re-disable container native routing
This reverts CL 422594. Apparently we were misinformed.

Change-Id: I199ca3780ba3b8a7003490534609255ae15861e9
Reviewed-on: https://go-review.googlesource.com/c/build/+/423341
Auto-Submit: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-08-12 18:07:47 +00:00
Heschi Kreinick f59fccde49 all: re-enable container native routing
The bug we were working around is fixed in Kubernetes 1.22, which we
have finally upgraded to.

Change-Id: Ic51a80521d72cb81ceb125586632e1101da795aa
Reviewed-on: https://go-review.googlesource.com/c/build/+/422594
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Jenny Rakoczy <jenny@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-08-10 21:07:16 +00:00
Michael Anthony Knyszek 83302b2ec4 all: clean up and consolidate deployment documentation
This change moves the devapp deployment documentation into the doc
directory because it's common to all services that run in the GKE
cluster.

It also restructures that documentation just a little to alleviate some
confusion (i.e. make push-prod is not necessary if using make
deploy-prod).

Then, it updates all the relevant services' documentation to refer to
that shared document.

Also, it touch up a couple of the services' READMEs, like gopherbot and
pubsubhelper.

Change-Id: I3774385f1d0ba9e9886ece8462294c1f28e8bd17
Reviewed-on: https://go-review.googlesource.com/c/build/+/416220
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2022-07-07 18:00:38 +00:00
Carlos Amedee e8c8ca12ab all: add license headers
This change adds license headers to files which are missing them.
A modified version of the addlicense tool was used to add these headers:
https://github.com/google/addlicense

The command issued was:
addlicense -c "Go Authors" -l bsd *

Change-Id: Id6fd17c587f99b3ff0ef5f5f35befcfe5aaeef72
Reviewed-on: https://go-review.googlesource.com/c/build/+/409614
Run-TryBot: Carlos Amedee <carlos@golang.org>
Auto-Submit: Carlos Amedee <carlos@golang.org>
Reviewed-by: Carlos Amedee <carlos@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alex Rakoczy <alex@golang.org>
2022-06-01 18:19:15 +00:00
Michael Pratt ef7e915587 perf: convert app to run on kubernetes
App Engine only supports Go 1.16 and we'd like to use newer features, so
convert this application to build as a standard container-based server
that we can deploy to Kubernetes.

Very little has to change. We have a new entrypoint that serves with
internal/https, and we use go:embed to store the template files.

For golang/go#48803.

Change-Id: I7f33f3421b6d405e111ec7ea716809a0a0f0cff6
Reviewed-on: https://go-review.googlesource.com/c/build/+/399042
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-08 20:45:57 +00:00
Michael Pratt 58bb2c5bab influx: move shared constants to common package
For golang/go#48803.

Change-Id: Ie7875a79eea75af5a1dd1681fb43d80c74f8226a
Reviewed-on: https://go-review.googlesource.com/c/build/+/399037
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-08 17:02:43 +00:00
Michael Pratt 852e1a2874 all: gofmt
go fmt the entire repo with Go 1.18 go fmt.

Change-Id: I9b9c77796d67dce6de9ceb154dd88058b9b8200f
Reviewed-on: https://go-review.googlesource.com/c/build/+/399039
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-08 16:52:56 +00:00
Michael Pratt 9dbf851a5c influx: add access instructions
For golang/go#48803.

Change-Id: Iebff2bfcc24d5849e5cbc997395184b266b61966
Reviewed-on: https://go-review.googlesource.com/c/build/+/397654
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2022-04-04 15:49:16 +00:00
Michael Pratt 20f95e6d0d influx: fix deployment and document one-time setup steps
* Add Kubernetes service account creation to deployment-prod.yaml.
* Fix app label to match selector in the service.
* Use Recreate strategy for rollout.

For golang/go#48803.

Change-Id: I52359ccbc0ce84ad7da9bf01f9336f5701d3cc46
Reviewed-on: https://go-review.googlesource.com/c/build/+/395540
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2022-03-25 14:54:08 +00:00
Michael Pratt 4245c7f705 influx: add kubernetes deployment
For golang/go#48803.

Change-Id: I6e9702735285423e5117fab8d2e9cb863dc7a9e5
Reviewed-on: https://go-review.googlesource.com/c/build/+/394358
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-23 21:59:02 +00:00
Michael Pratt 5792598a11 influx: put influx behind a reverse proxy
When started for the first time, Influx allows any unauthenticated user
to perform initial database setup. An instance that is reachable from
the public internet thus has a race window for initial setup.

Close the window by starting Influx listening only on localhost,
performing setup, and only then running a reverse proxy on the external
interface to forward external traffic to influx.  We must do this on
every startup just to see if this instance has already been set up or
not.

For golang/go#48803.

Change-Id: Iea41b01f61199101eb59686f1e6a3e9dab059a0e
Reviewed-on: https://go-review.googlesource.com/c/build/+/394357
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-23 21:58:56 +00:00
Michael Pratt 5e14ea472a influx: InfluxDB instance setup
This CL creates a Docker image for running an InfluxDB instance for the
Go performance monitoring dashboard.

The image is based on the Google-maintained GCP InfluxDB 2 image, with
an additional small program to perform initial database setup and push
access credentials to Google Secret Manager.

See README.md for instructions on running the image locally or on GCP.

This CL is based on CL 392635 after we decided it belongs better in
x/build. It drop the custom module, using the standard x/build/go.mod
instead. Plus it adds a Makefile and and expectation of `docker build`
running from the repository.

For golang/go#48803

Change-Id: Ib79242311acee9529073cd68c9754e6459a49319
Reviewed-on: https://go-review.googlesource.com/c/build/+/394354
Reviewed-by: Heschi Kreinick <heschi@google.com>
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-03-23 21:58:47 +00:00