-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgrpc-server.yaml
55 lines (55 loc) · 1.5 KB
/
grpc-server.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: drive-deposits-grpc
spec:
replicas: 1
selector:
matchLabels:
app: drive-deposits-grpc
template:
metadata:
labels:
app: drive-deposits-grpc
spec:
containers:
- name: drive-deposits-grpc
image: k8s-drive-deposits-grpc-server:latest
imagePullPolicy: Never
ports:
- containerPort: 50052
env:
- name: RUST_LOG
value: "drive_deposits_rest_types=debug,drive_deposits_proto_grpc_types=debug,drive_deposits_event_source=debug,drive_deposits_cal_types=debug,drive_deposits_grpc_server=debug"
- name: SEND_CAL_EVENTS
value: "true"
- name: USE_LOCALSTACK
value: "false"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_ACCESS_KEY_ID
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_SECRET_ACCESS_KEY
- name: AWS_DEFAULT_REGION
valueFrom:
secretKeyRef:
name: aws-credentials
key: AWS_DEFAULT_REGION
---
apiVersion: v1
kind: Service
metadata:
name: drive-deposits-grpc
spec:
selector:
app: drive-deposits-grpc
ports:
- protocol: TCP
port: 50052
targetPort: 50052
type: ClusterIP