Skip to content

Commit 34d10b6

Browse files
committed
cmd/tip: add staging deployment configuration
We want to be able to test cmd/tip changes on staging before pushing to production. This change adds configuration files to be used for the staging environment. Mirror the production environment, but use a staging-specific load balancer IP, domain, and autocert GCS bucket (golang-tip-dev-autocert). Also rename the existing production configuration files to mirror the pattern in other directories. This is especially important now that there are both production and staging configuration files. Updates golang/go#30232 Change-Id: I11c8cf643654d2c5bfa4add50f9ac8ca6771606b Reviewed-on: https://go-review.googlesource.com/c/162914 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 0261b66 commit 34d10b6

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed
File renamed without changes.

cmd/tip/deployment-staging.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: extensions/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: tipgodoc-deployment
5+
spec:
6+
replicas: 1
7+
template:
8+
metadata:
9+
name: tipgodoc
10+
labels:
11+
app: tipgodoc
12+
spec:
13+
volumes:
14+
- name: cache-volume
15+
emptyDir: {}
16+
containers:
17+
- name: tipgodoc
18+
image: gcr.io/go-dashboard-dev/tip:latest
19+
imagePullPolicy: Always
20+
command: ["/go/bin/tip", "--autocert=tip-staging.golang.org", "--autocert-bucket=golang-tip-dev-autocert"]
21+
env:
22+
- name: TMPDIR
23+
value: /build
24+
- name: TIP_BUILDER
25+
value: godoc
26+
volumeMounts:
27+
- mountPath: /build
28+
name: cache-volume
29+
ports:
30+
- containerPort: 8080
31+
- containerPort: 443
32+
resources:
33+
requests:
34+
cpu: "1"
35+
memory: "4Gi"
36+
limits:
37+
cpu: "2"
38+
memory: "8Gi"
File renamed without changes.

cmd/tip/service-staging.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: tipgodoc
5+
spec:
6+
ports:
7+
- port: 80
8+
targetPort: 8080
9+
name: http
10+
- port: 443
11+
targetPort: 443
12+
name: https
13+
selector:
14+
app: tipgodoc
15+
type: LoadBalancer
16+
loadBalancerIP: 35.192.124.190

0 commit comments

Comments
 (0)