forked from CDCgov/openshift-fluentd-forwarder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfluentd-forwarder-build-config-template.yaml
66 lines (66 loc) · 1.56 KB
/
fluentd-forwarder-build-config-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
---
apiVersion: v1
kind: Template
metadata:
name: fluentd-forwarder-build
annotations:
description: Build Config template for collecting and forwarding fluentd logs to a remote log collection point like rsyslog or splunk.
labels:
name: fluentd-forwarder
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ubi7-ruby25
spec:
tags:
- annotations: null
from:
kind: DockerImage
name: registry.access.redhat.com/ubi7/ruby-25:latest
importPolicy: {}
name: latest
referencePolicy:
type: Source
- apiVersion: v1
kind: ImageStream
metadata:
name: ${IMAGE_NAME}
labels:
app: fluentd-forwarder
- apiVersion: v1
kind: BuildConfig
metadata:
name: ${IMAGE_NAME}
labels:
app: ${IMAGE_NAME}
spec:
runPolicy: Serial
source:
type: Git
git:
uri: ${GIT_URI}
ref: ${GIT_REF}
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
name: 'ubi7-ruby25:latest'
output:
to:
kind: ImageStreamTag
name: 'fluentd-forwarder:latest'
parameters:
- name: GIT_URI
description: The Git URI.
value: "https://github.com/cnuland/openshift-fluentd-forwarder.git"
required: true
- name: GIT_REF
description: The git reference (tag, branch or other reference) to build from.
value: master
required: true
- name: IMAGE_NAME
description: The name of the image to be used when performing the pull operation.
value: fluentd-forwarder
required: true