logging-deployer.yaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. apiVersion: "v1"
  2. kind: "List"
  3. items:
  4. -
  5. apiVersion: "v1"
  6. kind: "Template"
  7. metadata:
  8. name: logging-deployer-account-template
  9. annotations:
  10. description: "Template for creating the deployer account and roles needed for the aggregated logging deployer. Create as cluster-admin."
  11. tags: "infrastructure"
  12. objects:
  13. -
  14. apiVersion: v1
  15. kind: ServiceAccount
  16. name: logging-deployer
  17. metadata:
  18. name: logging-deployer
  19. labels:
  20. logging-infra: deployer
  21. provider: openshift
  22. component: deployer
  23. -
  24. apiVersion: v1
  25. kind: ServiceAccount
  26. metadata:
  27. name: aggregated-logging-kibana
  28. -
  29. apiVersion: v1
  30. kind: ServiceAccount
  31. metadata:
  32. name: aggregated-logging-elasticsearch
  33. -
  34. apiVersion: v1
  35. kind: ServiceAccount
  36. metadata:
  37. name: aggregated-logging-fluentd
  38. -
  39. apiVersion: v1
  40. kind: ServiceAccount
  41. metadata:
  42. name: aggregated-logging-curator
  43. - apiVersion: v1
  44. kind: ClusterRole
  45. metadata:
  46. name: oauth-editor
  47. rules:
  48. - resources:
  49. - oauthclients
  50. verbs:
  51. - create
  52. - delete
  53. - apiVersion: v1
  54. kind: ClusterRole
  55. metadata:
  56. name: daemonset-admin
  57. rules:
  58. - resources:
  59. - daemonsets
  60. apiGroups:
  61. - extensions
  62. verbs:
  63. - create
  64. - get
  65. - list
  66. - watch
  67. - delete
  68. - update
  69. -
  70. apiVersion: v1
  71. kind: RoleBinding
  72. metadata:
  73. name: logging-deployer-edit-role
  74. roleRef:
  75. name: edit
  76. subjects:
  77. - kind: ServiceAccount
  78. name: logging-deployer
  79. -
  80. apiVersion: v1
  81. kind: RoleBinding
  82. metadata:
  83. name: logging-deployer-dsadmin-role
  84. roleRef:
  85. name: daemonset-admin
  86. subjects:
  87. - kind: ServiceAccount
  88. name: logging-deployer
  89. -
  90. apiVersion: "v1"
  91. kind: "Template"
  92. metadata:
  93. name: logging-deployer-template
  94. annotations:
  95. description: "Template for running the aggregated logging deployer in a pod. Requires empowered 'logging-deployer' service account."
  96. tags: "infrastructure"
  97. labels:
  98. logging-infra: deployer
  99. provider: openshift
  100. objects:
  101. -
  102. apiVersion: v1
  103. kind: Pod
  104. metadata:
  105. generateName: logging-deployer-
  106. spec:
  107. containers:
  108. - image: ${IMAGE_PREFIX}logging-deployer:${IMAGE_VERSION}
  109. imagePullPolicy: Always
  110. name: deployer
  111. volumeMounts:
  112. - name: empty
  113. mountPath: /etc/deploy
  114. env:
  115. - name: PROJECT
  116. valueFrom:
  117. fieldRef:
  118. fieldPath: metadata.namespace
  119. - name: IMAGE_PREFIX
  120. value: ${IMAGE_PREFIX}
  121. - name: IMAGE_VERSION
  122. value: ${IMAGE_VERSION}
  123. - name: IMAGE_PULL_SECRET
  124. value: ${IMAGE_PULL_SECRET}
  125. - name: INSECURE_REGISTRY
  126. value: ${INSECURE_REGISTRY}
  127. - name: ENABLE_OPS_CLUSTER
  128. value: ${ENABLE_OPS_CLUSTER}
  129. - name: KIBANA_HOSTNAME
  130. value: ${KIBANA_HOSTNAME}
  131. - name: KIBANA_OPS_HOSTNAME
  132. value: ${KIBANA_OPS_HOSTNAME}
  133. - name: PUBLIC_MASTER_URL
  134. value: ${PUBLIC_MASTER_URL}
  135. - name: MASTER_URL
  136. value: ${MASTER_URL}
  137. - name: ES_INSTANCE_RAM
  138. value: ${ES_INSTANCE_RAM}
  139. - name: ES_PVC_SIZE
  140. value: ${ES_PVC_SIZE}
  141. - name: ES_PVC_PREFIX
  142. value: ${ES_PVC_PREFIX}
  143. - name: ES_PVC_DYNAMIC
  144. value: ${ES_PVC_DYNAMIC}
  145. - name: ES_CLUSTER_SIZE
  146. value: ${ES_CLUSTER_SIZE}
  147. - name: ES_NODE_QUORUM
  148. value: ${ES_NODE_QUORUM}
  149. - name: ES_RECOVER_AFTER_NODES
  150. value: ${ES_RECOVER_AFTER_NODES}
  151. - name: ES_RECOVER_EXPECTED_NODES
  152. value: ${ES_RECOVER_EXPECTED_NODES}
  153. - name: ES_RECOVER_AFTER_TIME
  154. value: ${ES_RECOVER_AFTER_TIME}
  155. - name: ES_OPS_INSTANCE_RAM
  156. value: ${ES_OPS_INSTANCE_RAM}
  157. - name: ES_OPS_PVC_SIZE
  158. value: ${ES_OPS_PVC_SIZE}
  159. - name: ES_OPS_PVC_PREFIX
  160. value: ${ES_OPS_PVC_PREFIX}
  161. - name: ES_OPS_PVC_DYNAMIC
  162. value: ${ES_OPS_PVC_DYNAMIC}
  163. - name: ES_OPS_CLUSTER_SIZE
  164. value: ${ES_OPS_CLUSTER_SIZE}
  165. - name: ES_OPS_NODE_QUORUM
  166. value: ${ES_OPS_NODE_QUORUM}
  167. - name: ES_OPS_RECOVER_AFTER_NODES
  168. value: ${ES_OPS_RECOVER_AFTER_NODES}
  169. - name: ES_OPS_RECOVER_EXPECTED_NODES
  170. value: ${ES_OPS_RECOVER_EXPECTED_NODES}
  171. - name: ES_OPS_RECOVER_AFTER_TIME
  172. value: ${ES_OPS_RECOVER_AFTER_TIME}
  173. - name: FLUENTD_NODESELECTOR
  174. value: ${FLUENTD_NODESELECTOR}
  175. - name: ES_NODESELECTOR
  176. value: ${ES_NODESELECTOR}
  177. - name: ES_OPS_NODESELECTOR
  178. value: ${ES_OPS_NODESELECTOR}
  179. - name: KIBANA_NODESELECTOR
  180. value: ${KIBANA_NODESELECTOR}
  181. - name: KIBANA_OPS_NODESELECTOR
  182. value: ${KIBANA_OPS_NODESELECTOR}
  183. - name: CURATOR_NODESELECTOR
  184. value: ${CURATOR_NODESELECTOR}
  185. - name: CURATOR_OPS_NODESELECTOR
  186. value: ${CURATOR_OPS_NODESELECTOR}
  187. - name: MODE
  188. value: ${MODE}
  189. dnsPolicy: ClusterFirst
  190. restartPolicy: Never
  191. serviceAccount: logging-deployer
  192. volumes:
  193. - name: empty
  194. emptyDir: {}
  195. parameters:
  196. -
  197. description: "The mode that the deployer runs in."
  198. name: MODE
  199. value: "install"
  200. -
  201. description: 'Specify prefix for logging components; e.g. for "registry.access.redhat.com/openshift3/logging-deployer:3.3.1", set prefix "registry.access.redhat.com/openshift3/"'
  202. name: IMAGE_PREFIX
  203. value: "registry.access.redhat.com/openshift3/"
  204. -
  205. description: 'Specify version for logging components; e.g. for "registry.access.redhat.com/openshift3/logging-deployer:3.3.1", set version "3.3.1"'
  206. name: IMAGE_VERSION
  207. value: "3.3.1"
  208. -
  209. description: "(Deprecated) Specify the name of an existing pull secret to be used for pulling component images from an authenticated registry."
  210. name: IMAGE_PULL_SECRET
  211. -
  212. description: "(Deprecated) Allow the registry for logging component images to be non-secure (not secured with a certificate signed by a known CA)"
  213. name: INSECURE_REGISTRY
  214. value: "false"
  215. -
  216. description: "(Deprecated) If true, set up to use a second ES cluster for ops logs."
  217. name: ENABLE_OPS_CLUSTER
  218. value: "false"
  219. -
  220. description: "(Deprecated) External hostname where clients will reach kibana"
  221. name: KIBANA_HOSTNAME
  222. value: "kibana.example.com"
  223. -
  224. description: "(Deprecated) External hostname at which admins will visit the ops Kibana."
  225. name: KIBANA_OPS_HOSTNAME
  226. value: kibana-ops.example.com
  227. -
  228. description: "(Deprecated) External URL for the master, for OAuth purposes"
  229. name: PUBLIC_MASTER_URL
  230. value: "https://localhost:8443"
  231. -
  232. description: "(Deprecated) Internal URL for the master, for authentication retrieval"
  233. name: MASTER_URL
  234. value: "https://kubernetes.default.svc.cluster.local"
  235. -
  236. description: "(Deprecated) How many instances of ElasticSearch to deploy."
  237. name: ES_CLUSTER_SIZE
  238. value: "1"
  239. -
  240. description: "(Deprecated) Amount of RAM to reserve per ElasticSearch instance."
  241. name: ES_INSTANCE_RAM
  242. value: "8G"
  243. -
  244. description: "(Deprecated) Size of the PersistentVolumeClaim to create per ElasticSearch instance, e.g. 100G. If empty, no PVCs will be created and emptyDir volumes are used instead."
  245. name: ES_PVC_SIZE
  246. -
  247. description: "(Deprecated) Prefix for the names of PersistentVolumeClaims to be created; a number will be appended per instance. If they don't already exist, they will be created with size ES_PVC_SIZE."
  248. name: ES_PVC_PREFIX
  249. value: "logging-es-"
  250. -
  251. description: '(Deprecated) Set to "true" to request dynamic provisioning (if enabled for your cluster) of a PersistentVolume for the ES PVC. '
  252. name: ES_PVC_DYNAMIC
  253. -
  254. description: "(Deprecated) Number of nodes required to elect a master (ES minimum_master_nodes). By default, derived from ES_CLUSTER_SIZE / 2 + 1."
  255. name: ES_NODE_QUORUM
  256. -
  257. description: "(Deprecated) Number of nodes required to be present before the cluster will recover from a full restart. By default, one fewer than ES_CLUSTER_SIZE."
  258. name: ES_RECOVER_AFTER_NODES
  259. -
  260. description: "(Deprecated) Number of nodes desired to be present before the cluster will recover from a full restart. By default, ES_CLUSTER_SIZE."
  261. name: ES_RECOVER_EXPECTED_NODES
  262. -
  263. description: "(Deprecated) Timeout for *expected* nodes to be present when cluster is recovering from a full restart."
  264. name: ES_RECOVER_AFTER_TIME
  265. value: "5m"
  266. -
  267. description: "(Deprecated) How many ops instances of ElasticSearch to deploy. By default, ES_CLUSTER_SIZE."
  268. name: ES_OPS_CLUSTER_SIZE
  269. -
  270. description: "(Deprecated) Amount of RAM to reserve per ops ElasticSearch instance."
  271. name: ES_OPS_INSTANCE_RAM
  272. value: "8G"
  273. -
  274. description: "(Deprecated) Size of the PersistentVolumeClaim to create per ElasticSearch ops instance, e.g. 100G. If empty, no PVCs will be created and emptyDir volumes are used instead."
  275. name: ES_OPS_PVC_SIZE
  276. -
  277. description: "(Deprecated) Prefix for the names of PersistentVolumeClaims to be created; a number will be appended per instance. If they don't already exist, they will be created with size ES_OPS_PVC_SIZE."
  278. name: ES_OPS_PVC_PREFIX
  279. value: "logging-es-ops-"
  280. -
  281. description: '(Deprecated) Set to "true" to request dynamic provisioning (if enabled for your cluster) of a PersistentVolume for the ES ops PVC. '
  282. name: ES_OPS_PVC_DYNAMIC
  283. -
  284. description: "(Deprecated) Number of ops nodes required to elect a master (ES minimum_master_nodes). By default, derived from ES_CLUSTER_SIZE / 2 + 1."
  285. name: ES_OPS_NODE_QUORUM
  286. -
  287. description: "(Deprecated) Number of ops nodes required to be present before the cluster will recover from a full restart. By default, one fewer than ES_OPS_CLUSTER_SIZE."
  288. name: ES_OPS_RECOVER_AFTER_NODES
  289. -
  290. description: "(Deprecated) Number of ops nodes desired to be present before the cluster will recover from a full restart. By default, ES_OPS_CLUSTER_SIZE."
  291. name: ES_OPS_RECOVER_EXPECTED_NODES
  292. -
  293. description: "(Deprecated) Timeout for *expected* ops nodes to be present when cluster is recovering from a full restart."
  294. name: ES_OPS_RECOVER_AFTER_TIME
  295. value: "5m"
  296. -
  297. description: "(Deprecated) The nodeSelector used for the Fluentd DaemonSet."
  298. name: FLUENTD_NODESELECTOR
  299. value: "logging-infra-fluentd=true"
  300. -
  301. description: "(Deprecated) Node selector Elasticsearch cluster (label=value)."
  302. name: ES_NODESELECTOR
  303. value: ""
  304. -
  305. description: "(Deprecated) Node selector Elasticsearch operations cluster (label=value)."
  306. name: ES_OPS_NODESELECTOR
  307. value: ""
  308. -
  309. description: "(Deprecated) Node selector Kibana cluster (label=value)."
  310. name: KIBANA_NODESELECTOR
  311. value: ""
  312. -
  313. description: "(Deprecated) Node selector Kibana operations cluster (label=value)."
  314. name: KIBANA_OPS_NODESELECTOR
  315. value: ""
  316. -
  317. description: "(Deprecated) Node selector Curator (label=value)."
  318. name: CURATOR_NODESELECTOR
  319. value: ""
  320. -
  321. description: "(Deprecated) Node selector operations Curator (label=value)."
  322. name: CURATOR_OPS_NODESELECTOR
  323. value: ""