Bug 1704892 - [DOCS] Sample event router template doesn't work
Summary: [DOCS] Sample event router template doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.1.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.1.0
Assignee: Michael Burke
QA Contact: Anping Li
Vikram Goyal
URL: https://docs.openshift.com/container-...
Whiteboard: 4.0_Readiness_Feedback
Depends On:
Blocks: 1664187
TreeView+ depends on / blocked
 
Reported: 2019-04-30 18:14 UTC by rvanderp
Modified: 2019-05-26 12:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-05-26 12:46:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description rvanderp 2019-04-30 18:14:36 UTC
Document URL: https://docs.openshift.com/container-platform/4.1/logging/efk-logging-eventrouter.html#efk-logging-eventrouter-deploy-efk-logging-curator


Section Number and Name: 

efk-logging-eventrouter-deploy-efk-logging-curator

Describe the issue: 

Creating a resource from the template produces the following error:

oc create -f event_fwd.yaml 
error: unable to recognize "event_fwd.yaml": no matches for /, Kind=Template

Changing apiVersion to:
apiVersion: template.openshift.io/v1

Suggestions for improvement: 

Additional information:

Comment 1 rvanderp 2019-04-30 18:16:08 UTC
Edit:

Changing apiVersion in template to:
apiVersion: template.openshift.io/v1 works

Comment 2 rvanderp 2019-04-30 20:10:42 UTC
I retried this on a new cluster install and the original instructions work now.  I will try to reproduce and re-open if I can.

Comment 3 rvanderp 2019-04-30 20:16:44 UTC
I was able to reproduce the problem again.

Comment 6 Anping Li 2019-05-13 05:32:43 UTC
@rvanderp, which cluster version are you using?

Comment 7 Michael Burke 2019-05-13 13:35:09 UTC
Works for me also.

$ oc get clusterversion
NAME      VERSION      AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.1.0-rc.1   True        False         41m     Cluster version is 4.1.0-rc.1

$ oc process -f event-router.yaml | oc apply -f -
serviceaccount/cluster-logging-eventrouter unchanged
clusterrole.authorization.openshift.io/event-reader created
clusterrolebinding.authorization.openshift.io/event-reader-binding created
configmap/cluster-logging-eventrouter created
deployment.apps/cluster-logging-eventrouter created

$ oc get pods --selector  component=eventrouter -o name
pod/cluster-logging-eventrouter-5866f97957-b58jr


Note You need to log in before you can comment on or make changes to this bug.