forked from nexus-Six/openshift-gitops-getting-started
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeployment.yaml
More file actions
56 lines (56 loc) · 1.51 KB
/
deployment.yaml
File metadata and controls
56 lines (56 loc) · 1.51 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"workshop:latest","namespace":"workshop-prod"},"fieldPath":"spec.template.spec.containers[?(@.name==\"workshop\")].image","pause":"true"}]
labels:
app: workshop
app.kubernetes.io/component: workshop
app.kubernetes.io/instance: workshop
app.kubernetes.io/name: workshop
app.kubernetes.io/part-of: workshop
app.openshift.io/runtime: java
app.openshift.io/runtime-version: openjdk-11-el7
name: workshop
spec:
replicas: 2
selector:
matchLabels:
app: workshop
template:
metadata:
labels:
app: workshop
spec:
containers:
- name: workshop
imagePullPolicy: Always
image: quay.io/nexus6/hello-microshift:1.0.0-SNAPSHOT
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