forked from spring-projects/spring-petclinic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kube.yaml
76 lines (76 loc) · 1.41 KB
/
kube.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
apiVersion: v1
kind: Service
metadata:
name: test-service
namespace: test
labels:
app: test-app
spec:
type: ClusterIP
selector:
app: test-app
ports:
- port: 80
protocol: TCP
targetPort: 8080
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-deployment
namespace: test
labels:
app: test-app
spec:
replicas: 1
selector:
matchLabels:
app: test-app
template:
metadata:
labels:
app: test-app
spec:
containers:
- name: test
image: $DOCKER_IMAGE_NAME:$IMAGE_TAG
ports:
- containerPort: 8080
resources:
requests:
cpu: 128
memory: 128
limits:
cpu: 512
memory: 512
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 30
periodSeconds: 30
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
failureThreshold: 5
timeoutSeconds: 30
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: api-ingress-test
namespace: test
spec:
rules:
- host: test.com
http:
paths:
- path: /
backend:
serviceName: test-service
servicePort: 80 #port of service