зеркало из https://github.com/golang/build.git
cb567ea2e0
Add AppArmor and Seccomp defaults to kube configs. AppArmor Docs: https://kubernetes.io/docs/tutorials/clusters/apparmor/ Seccomp Docs: https://github.com/kubernetes/community/blob/master/contributors/design-proposals/seccomp.md Apparmor and Seccomp requires Kubernetes 1.4. Change-Id: I202d3b155d7dd336d5e66d9cf4490cf218b2c759 Reviewed-on: https://go-review.googlesource.com/49254 Reviewed-by: Andrew Bonventre <andybons@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> |
||
---|---|---|
.. | ||
static | ||
.gitignore | ||
Dockerfile | ||
Dockerfile.0 | ||
Makefile | ||
README.md | ||
cache.go | ||
deployment-dev.yaml | ||
deployment-prod.yaml | ||
devapp.go | ||
github.go | ||
server.go | ||
server_test.go | ||
service-dev.yaml | ||
service-prod.yaml |
README.md
devapp
Local development
$ go build
$ ./devapp
Then visit http://localhost:6343
Deployment
$ gcloud config set project {go-dashboard-dev|symbolic-datum-552}
$ gcloud container clusters get-credentials --zone=us-central1-f go
$ make push-{dev|prod}
$ kubectl create -f deployment-{dev|prod}.yaml
$ kubectl create -f service-{dev|prod}.yaml