forked from siamaksade/openshift-gitops-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy pathdeployment.yaml
53 lines (53 loc) · 1.3 KB
/
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:
annotations:
labels:
app: spring-petclinic
app.kubernetes.io/component: web
app.kubernetes.io/instance: spring-petclinic
app.kubernetes.io/name: spring-petclinic
app.kubernetes.io/part-of: spring-petclinic
app.openshift.io/runtime: java
name: spring-petclinic
spec:
replicas: 1
selector:
matchLabels:
app: spring-petclinic
template:
metadata:
labels:
app: spring-petclinic
spec:
containers:
- name: spring-petclinic
imagePullPolicy: Always
image: quay.io/service-binding/spring-petclinic:latest
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 45
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
- containerPort: 8778
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: 8080
scheme: HTTP
initialDelaySeconds: 45
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5