-
Notifications
You must be signed in to change notification settings - Fork 238
/
api-gateway-deployment.yaml
53 lines (53 loc) · 1.27 KB
/
api-gateway-deployment.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: api-gateway
name: api-gateway
namespace: spring-petclinic
spec:
replicas: 1
selector:
matchLabels:
app: api-gateway
strategy: {}
template:
metadata:
labels:
app: api-gateway
spec:
containers:
- image: ${REPOSITORY_PREFIX}/spring-petclinic-cloud-api-gateway:latest
name: api-gateway
imagePullPolicy: Always
livenessProbe:
httpGet:
port: 8080
path: /actuator/health/liveness
initialDelaySeconds: 90
periodSeconds: 5
readinessProbe:
httpGet:
port: 8080
path: /actuator/health/readiness
initialDelaySeconds: 15
lifecycle:
preStop:
exec:
command: ["sh", "-c", "sleep 10"]
resources:
limits:
memory: 1Gi
requests:
cpu: 2000m
memory: 1Gi
env:
- name: SPRING_PROFILES_ACTIVE
value: kubernetes
- name: MANAGEMENT_METRICS_EXPORT_WAVEFRONT_URI
value: proxy://wavefront-proxy.spring-petclinic.svc.cluster.local:2878
ports:
- containerPort: 8080
restartPolicy: Always
status: {}