-
Notifications
You must be signed in to change notification settings - Fork 2
/
ip_location_server.yaml
48 lines (48 loc) · 1.01 KB
/
ip_location_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
apiVersion: apps/v1
kind: Deployment
metadata:
name: ip-location-server
namespace: production
spec:
replicas: 1
selector:
matchLabels:
app: ip-location-server
template:
metadata:
labels:
app: ip-location-server
spec:
containers:
- name: ip-location-server
image: ip_location_server:latest
env:
- name: HTTP_ME_USE_HEADER
valueFrom:
configMapKeyRef:
name: ip-location-server-configmap
key: http-me-use-header
- name: GRPC_ME_USE_HEADER
valueFrom:
configMapKeyRef:
name: ip-location-server-configmap
key: grpc-me-use-header
---
apiVersion: v1
kind: Service
metadata:
name: ip-location-server-service
namespace: production
spec:
selector:
app: ip-location-server
ports:
- name: http-endpoint
protocol: TCP
port: 80
targetPort: 80
- name: grpc-endpoint
protocol: TCP
port: 8081
targetPort: 8081
type: ClusterIP