-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-gateway.yaml
More file actions
41 lines (41 loc) · 849 Bytes
/
api-gateway.yaml
File metadata and controls
41 lines (41 loc) · 849 Bytes
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-gateway
labels:
app: api-gateway
spec:
replicas: 1
selector:
matchLabels:
app: api-gateway
template:
metadata:
labels:
app: api-gateway
spec:
containers:
- name: api-gateway
image: guill392/api-gateway:latest
env:
- name: EUREKA_CLIENT_SERVICE_URL_DEFAULTZONE
value: http://discovery-server-service:8761/eureka
- name: SPRING_APPLICATION_NAME
value: API-GATEWAY
ports:
- containerPort: 9000
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: api-gateway-service
spec:
type: NodePort
selector:
app: api-gateway
ports:
- protocol: TCP
port: 9000
targetPort: 9000
nodePort: 32000