2018-06-20 10:33:51 -06:00
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
2017-03-03 13:43:35 -07:00
|
|
|
metadata:
|
2018-06-20 10:33:51 -06:00
|
|
|
name: tipgodoc-deployment
|
2017-03-03 13:43:35 -07:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
name: tipgodoc
|
|
|
|
labels:
|
|
|
|
app: tipgodoc
|
|
|
|
spec:
|
|
|
|
volumes:
|
|
|
|
- name: cache-volume
|
|
|
|
emptyDir: {}
|
|
|
|
containers:
|
2018-06-20 10:33:51 -06:00
|
|
|
- name: tipgodoc
|
|
|
|
image: gcr.io/symbolic-datum-552/tip:latest
|
2017-03-03 13:43:35 -07:00
|
|
|
imagePullPolicy: Always
|
2018-06-20 10:33:51 -06:00
|
|
|
command: ["/go/bin/tip", "--autocert=tip.golang.org,beta.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: "2"
|
|
|
|
memory: "4Gi"
|
2018-12-14 07:45:46 -07:00
|
|
|
limits:
|
|
|
|
cpu: "2"
|
|
|
|
memory: "8Gi"
|