1
0
mirror of https://github.com/golang/go synced 2024-11-19 05:44:40 -07:00
go/cmd/tip/tip-rc.yaml
Brad Fitzpatrick 03d3934baf cmd/tip: move tip.golang.org from App Engine to Kubernetes on GKE
Change-Id: I52ca7eaca98de27bd920ae01086b3f7724819738
Reviewed-on: https://go-review.googlesource.com/37754
Reviewed-by: Chris Broadfoot <cbro@golang.org>
2017-03-07 03:49:08 +00:00

41 lines
878 B
YAML

apiVersion: v1
kind: ReplicationController
metadata:
name: tipgodoc-v1
spec:
replicas: 1
selector:
app: tipgodoc
template:
metadata:
name: tipgodoc
labels:
app: tipgodoc
spec:
volumes:
- name: cache-volume
emptyDir: {}
containers:
- name: gitmirror
image: gcr.io/symbolic-datum-552/tip:v1
imagePullPolicy: Always
command: ["/go/bin/tip", "--autocert=tip.golang.org"]
env:
- name: TMPDIR
value: /build
- name: TIP_BUILDER
value: godoc
volumeMounts:
- mountPath: /build
name: cache-volume
ports:
- containerPort: 8080
- containerPort: 443
resources:
requests:
cpu: "1"
memory: "2Gi"
limits:
cpu: "2"
memory: "4Gi"