-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/gitmirror: get key from GCE metadata, add a k8s resource controller
Updates golang/go#18817 Change-Id: Iff09e580d720ab1dfc8de0da2c45340467a335db Reviewed-on: https://go-review.googlesource.com/36473 Reviewed-by: Kevin Burke <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
- Loading branch information
Showing
2 changed files
with
61 additions
and
22 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,27 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: gitmirror | ||
spec: | ||
replicas: 1 | ||
selector: | ||
app: gitmirror | ||
template: | ||
metadata: | ||
name: gitmirror | ||
labels: | ||
app: gitmirror | ||
spec: | ||
containers: | ||
- name: gitmirror | ||
image: gcr.io/symbolic-datum-552/gitmirror:latest | ||
command: ["/go/bin/gitmirror", "-http=:8585", "-mirror=false", "-report=false", "-network=false"] | ||
ports: | ||
- containerPort: 8585 | ||
resources: | ||
requests: | ||
cpu: "1" | ||
memory: "2Gi" | ||
limits: | ||
cpu: "2" | ||
memory: "4Gi" |