-
Notifications
You must be signed in to change notification settings - Fork 0
/
imageStreamDeployment.yaml
74 lines (74 loc) · 1.57 KB
/
imageStreamDeployment.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
apiVersion: v1
kind: List
items:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
labels:
app: demosite
name: demosite
spec:
lookupPolicy:
local: false
tags:
- annotations:
openshift.io/imported-from: quay.io/daanders/demosite:0.2
from:
kind: DockerImage
name: quay.io/daanders/demosite:0.2
importPolicy:
scheduled: true
name: "0.2"
referencePolicy:
type: Source
- apiVersion: v1
kind: Service
metadata:
name: demosite
spec:
ports:
- port: 8080
protocol: TCP
targetPort: 8080
selector:
app: demosite
type: ClusterIP
- apiVersion: apps/v1
kind: Deployment
metadata:
name: demosite
labels:
app: demosite
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
image.openshift.io/triggers: '[{"from":{"kind":"ImageStreamTag","name":"demosite:0.2"},"fieldPath":"spec.template.spec.containers[?(@.name==\"demosite\")].image","pause":"false"}]'
spec:
replicas: 2
selector:
matchLabels:
app: demosite
template:
metadata:
labels:
app: demosite
spec:
containers:
- image: quay.io/daanders/demosite:0.2
name: demosite
ports:
- containerPort: 8080
protocol: TCP
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: demosite
name: demosite
spec:
path: /hello
port:
targetPort: 8080
to:
kind: Service
name: demosite
weight: 100