-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathbuildbuddy-app.enterprise.yaml
77 lines (77 loc) · 1.64 KB
/
buildbuddy-app.enterprise.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
apiVersion: v1
kind: Namespace
metadata:
name: buildbuddy
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: buildbuddy-app
namespace: buildbuddy
spec:
replicas: 1
serviceName: buildbuddy-app
selector:
matchLabels:
app: buildbuddy-app
template:
metadata:
labels:
app: buildbuddy-app
spec:
nodeSelector:
cloud.google.com/gke-nodepool: default-pool
containers:
- name: buildbuddy-app
image: gcr.io/flame-public/buildbuddy-app-enterprise:latest
imagePullPolicy: Always
env:
- name: ENV
value: "onprem"
- name: SERVICE_NAME
value: "app-backend"
- name: VERSION
value: "prod-1.0"
ports:
- name: http
containerPort: 8080
- name: grpc
containerPort: 1985
volumeMounts:
- mountPath: /data
name: data
- mountPath: "/config.yaml"
name: config
subPath: "config.yaml"
volumes:
- name: "config"
configMap:
name: "config"
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: buildbuddy-app-service
namespace: buildbuddy
spec:
selector:
app: buildbuddy-app
ports:
- name: http
protocol: "TCP"
port: 80
targetPort: 8080
- name: grpc
protocol: "TCP"
port: 1985
targetPort: 1985
type: LoadBalancer