@@ -65,6 +65,14 @@ For examples in this document we will assume the `logging` project.
65
65
You can use the ` default ` or another project if you want. This
66
66
implementation has no need to run in any specific project.
67
67
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
+
68
76
## Create the Deployer Secret
69
77
70
78
Security parameters for the logging infrastructure
@@ -98,20 +106,14 @@ An invocation supplying a properly signed Kibana cert might be:
98
106
## Create Supporting ServiceAccounts
99
107
100
108
The deployer must run under a service account defined as follows:
109
+ (Note: change ` :logging: ` below to match the project name.)
101
110
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 \
112
115
system:serviceaccount:logging:logging-deployer
113
116
114
- Note: change ` :logging: ` above to match the project name.
115
117
116
118
The policy manipulation is required in order for the deployer pod to
117
119
create 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
156
158
-v KIBANA_HOSTNAME=kibana.example.com,PUBLIC_MASTER_URL=https://localhost:8443 \
157
159
| oc create -f -
158
160
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
-
165
161
This creates a deployer pod and prints its name. Wait until the pod
166
162
is running; this can take up to a few minutes to retrieve the deployer
167
163
image from its registry. You can watch it with:
@@ -179,19 +175,6 @@ are given below.
179
175
180
176
## Deploy the templates created by the deployer
181
177
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
-
195
178
### ElasticSearch
196
179
197
180
The deployer creates the number of ElasticSearch instances specified by
0 commit comments