-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogging-app-template.yaml
77 lines (77 loc) · 1.62 KB
/
logging-app-template.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
77
apiVersion: template.openshift.io/v1
kind: Template
metadata:
name: logging-app
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ${APP_NAME}
labels:
app: ${APP_NAME}
spec:
lookupPolicy:
local: false
status:
- apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
labels:
app: ${APP_NAME}
name: ${APP_NAME}
spec:
output:
to:
kind: ImageStreamTag
name: ${APP_NAME}:latest
runPolicy: Serial
source:
git:
uri: https://github.com/t0ffel/logging-app.git
type: Git
strategy:
sourceStrategy:
from:
kind: DockerImage
name: centos/python-36-centos7
successfulBuildsHistoryLimit: 5
triggers:
- type: ConfigChange
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: ${APP_NAME}
name: ${APP_NAME}
spec:
replicas: 1
selector:
app: ${APP_NAME}
deploymentconfig: ${APP_NAME}
template:
metadata:
labels:
app: ${APP_NAME}
deploymentconfig: ${APP_NAME}
spec:
containers:
- env:
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
imagePullPolicy: Always
name: ${APP_NAME}
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- ${APP_NAME}
from:
kind: ImageStreamTag
name: ${APP_NAME}:latest
type: ImageChange
parameters:
- name: APP_NAME
value: logging-app