-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtomcat.deployment.yaml
45 lines (45 loc) · 1.23 KB
/
tomcat.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
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"tomcat:latest","namespace":"rbohne-vw-autostadt"},"fieldPath":"spec.template.spec.containers[?(@.name==\"tomcat\")].image","pause":"false"}]'
name: tomcat
labels:
app: tomcat
app.kubernetes.io/component: tomcat
app.kubernetes.io/instance: tomcat
app.kubernetes.io/name: tomcat
app.kubernetes.io/part-of: tomcat-example
app.openshift.io/runtime: tomcat
app.openshift.io/runtime-version: latest
spec:
replicas: 1
selector:
matchLabels:
app: tomcat
template:
metadata:
creationTimestamp: null
labels:
app: tomcat
deployment: tomcat
spec:
containers:
- name: tomcat
image: 'dummy'
ports:
- containerPort: 8009
protocol: TCP
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
resources: {}
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600