2017-03-03 13:43:35 -07:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
2017-07-31 23:59:20 -06:00
|
|
|
name: tipgodoc
|
2017-03-03 13:43:35 -07:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
app: tipgodoc
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: tipgodoc
|
|
|
|
labels:
|
|
|
|
app: tipgodoc
|
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: cache-volume
|
|
|
|
emptyDir: {}
|
|
|
|
containers:
|
|
|
|
- name: gitmirror
|
2017-07-31 23:59:20 -06:00
|
|
|
image: gcr.io/symbolic-datum-552/tip:v2
|
2017-03-03 13:43:35 -07:00
|
|
|
imagePullPolicy: Always
|
2017-07-31 23:59:20 -06:00
|
|
|
command: ["/go/bin/tip", "--autocert=tip.golang.org", "--autocert-bucket=golang-tip-autocert"]
|
2017-03-03 13:43:35 -07:00
|
|
|
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"
|