@@ -65,6 +65,14 @@ For examples in this document we will assume the `logging` project.
6565You can use the ` default ` or another project if you want. This
6666implementation has no need to run in any specific project.
6767
68+ ## Create missing templates
69+
70+ If your installation did not create templates in the ` openshift `
71+ namespace, the ` logging-deployer-template ` and ` logging-deployer-account-template `
72+ templates may not exist. In that case you can create them with the following:
73+
74+ $ oc create -n openshift -f https://raw.githubusercontent.com/openshift/origin-aggregated-logging/v0.2/deployment/deployer.yaml ...
75+
6876## Create the Deployer Secret
6977
7078Security parameters for the logging infrastructure
@@ -98,20 +106,14 @@ An invocation supplying a properly signed Kibana cert might be:
98106## Create Supporting ServiceAccounts
99107
100108The deployer must run under a service account defined as follows:
109+ (Note: change ` :logging: ` below to match the project name.)
101110
102- $ oc create -f - <<API
103- apiVersion: v1
104- kind: ServiceAccount
105- metadata:
106- name: logging-deployer
107- secrets:
108- - name: logging-deployer
109- API
110-
111- $ oc policy add-role-to-user edit \
111+ $ oc process -n openshift logging-deployer-account-template | oc create -f -
112+ $ oc policy add-role-to-user edit --serviceaccount logging-deployer
113+ $ oc policy add-role-to-user daemonset-admin --serviceaccount logging-deployer
114+ $ oadm policy add-cluster-role-to-user oauth-editor \
112115 system:serviceaccount:logging:logging-deployer
113116
114- Note: change ` :logging: ` above to match the project name.
115117
116118The policy manipulation is required in order for the deployer pod to
117119create secrets, templates, and deployments in the project. By default
@@ -156,12 +158,6 @@ You run the deployer by instantiating a template. Here is an example with some p
156158 -v KIBANA_HOSTNAME=kibana.example.com,PUBLIC_MASTER_URL=https://localhost:8443 \
157159 | oc create -f -
158160
159- If your installation did not create templates in the ` openshift `
160- namespace, the ` logging-deployer-template ` template may not exist. In
161- that case you can just process the template source:
162-
163- $ oc process -f https://raw.githubusercontent.com/openshift/origin-aggregated-logging/v0.1/deployment/deployer.yaml ...
164-
165161This creates a deployer pod and prints its name. Wait until the pod
166162is running; this can take up to a few minutes to retrieve the deployer
167163image from its registry. You can watch it with:
@@ -179,19 +175,6 @@ are given below.
179175
180176## Deploy the templates created by the deployer
181177
182- ### Supporting definitions
183-
184- Create the supporting definitions from template (you must be cluster admin):
185-
186- $ oc process logging-support-template | oc create -f -
187-
188- Tip: Check the output to make sure that all objects were created
189- successfully. If any were not, it is probably because one or more
190- already existed from a previous deployment (potentially in a different
191- project). You can delete them all before trying again:
192-
193- $ oc process logging-support-template | oc delete -f -
194-
195178### ElasticSearch
196179
197180The deployer creates the number of ElasticSearch instances specified by
0 commit comments