Advertisement
Guest User

operator conf

a guest
Nov 17th, 2021
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: v1
  2. kind: ServiceAccount
  3. metadata:
  4. name: pgo-deployer-sa
  5. namespace: possu2
  6. ---
  7. kind: ClusterRole
  8. apiVersion: rbac.authorization.k8s.io/v1
  9. metadata:
  10. name: pgo-deployer-cr
  11. rules:
  12. - apiGroups:
  13. - ''
  14. resources:
  15. - namespaces
  16. verbs:
  17. - get
  18. - list
  19. - create
  20. - patch
  21. - delete
  22. - apiGroups:
  23. - ''
  24. resources:
  25. - pods
  26. verbs:
  27. - list
  28. - apiGroups:
  29. - ''
  30. resources:
  31. - secrets
  32. verbs:
  33. - list
  34. - get
  35. - create
  36. - delete
  37. - patch
  38. - apiGroups:
  39. - ''
  40. resources:
  41. - configmaps
  42. - services
  43. - persistentvolumeclaims
  44. verbs:
  45. - get
  46. - create
  47. - delete
  48. - list
  49. - patch
  50. - apiGroups:
  51. - ''
  52. resources:
  53. - serviceaccounts
  54. verbs:
  55. - get
  56. - create
  57. - delete
  58. - patch
  59. - list
  60. - apiGroups:
  61. - apps
  62. - extensions
  63. resources:
  64. - deployments
  65. - replicasets
  66. verbs:
  67. - get
  68. - list
  69. - watch
  70. - create
  71. - delete
  72. - apiGroups:
  73. - apiextensions.k8s.io
  74. resources:
  75. - customresourcedefinitions
  76. verbs:
  77. - get
  78. - create
  79. - delete
  80. - apiGroups:
  81. - rbac.authorization.k8s.io
  82. resources:
  83. - clusterroles
  84. - clusterrolebindings
  85. - roles
  86. - rolebindings
  87. verbs:
  88. - get
  89. - create
  90. - delete
  91. - bind
  92. - escalate
  93. - apiGroups:
  94. - rbac.authorization.k8s.io
  95. resources:
  96. - roles
  97. verbs:
  98. - create
  99. - delete
  100. - apiGroups:
  101. - batch
  102. resources:
  103. - jobs
  104. verbs:
  105. - delete
  106. - list
  107. - apiGroups:
  108. - pg.percona.com
  109. resources:
  110. - perconapgclusters
  111. - pgclusters
  112. - pgreplicas
  113. - pgpolicies
  114. - pgtasks
  115. verbs:
  116. - delete
  117. - list
  118. ---
  119. apiVersion: v1
  120. kind: ConfigMap
  121. metadata:
  122. name: pgo-deployer-cm
  123. namespace: possu2
  124. data:
  125. values.yaml: |-
  126. # =====================
  127. # Configuration Options
  128. # More info for these options can be found in the docs
  129. # https://access.crunchydata.com/documentation/postgres-operator/latest/installation/configuration/
  130. # =====================
  131. archive_mode: "true"
  132. archive_timeout: "60"
  133. backrest_aws_s3_bucket: ""
  134. backrest_aws_s3_endpoint: ""
  135. backrest_aws_s3_key: ""
  136. backrest_aws_s3_region: ""
  137. backrest_aws_s3_secret: ""
  138. backrest_aws_s3_uri_style: ""
  139. backrest_aws_s3_verify_tls: "true"
  140. backrest_gcs_bucket: ""
  141. backrest_gcs_endpoint: ""
  142. backrest_gcs_key_type: ""
  143. backrest_port: "2022"
  144. badger: "false"
  145. ccp_image_prefix: "percona/percona-postgresql-operator"
  146. ccp_image_pull_secret: ""
  147. ccp_image_pull_secret_manifest: ""
  148. ccp_image_tag: "1.0.0-postgres-ha"
  149. create_rbac: "true"
  150. crunchy_debug: "false"
  151. db_name: ""
  152. db_password_age_days: "0"
  153. db_password_length: "24"
  154. db_port: "5432"
  155. db_replicas: "0"
  156. db_user: "testuser"
  157. default_instance_memory: "128Mi"
  158. default_pgbackrest_memory: "48Mi"
  159. default_pgbouncer_memory: "24Mi"
  160. default_exporter_memory: "24Mi"
  161. delete_operator_namespace: "false"
  162. delete_watched_namespaces: "false"
  163. disable_auto_failover: "false"
  164. disable_fsgroup: "false"
  165. reconcile_rbac: "true"
  166. exporterport: "9187"
  167. metrics: "false"
  168. namespace: "possu2"
  169. namespace_mode: "dynamic"
  170. pgbadgerport: "10000"
  171. pgo_add_os_ca_store: "false"
  172. pgo_admin_password: "examplepassword"
  173. pgo_admin_perms: "*"
  174. pgo_admin_role_name: "pgoadmin"
  175. pgo_admin_username: "admin"
  176. pgo_apiserver_port: "8443"
  177. pgo_apiserver_url: "https://postgres-operator"
  178. pgo_client_cert_secret: "pgo.tls"
  179. pgo_client_container_install: "false"
  180. pgo_client_install: "false"
  181. pgo_client_version: "4.7.1"
  182. pgo_cluster_admin: "false"
  183. pgo_disable_eventing: "false"
  184. pgo_disable_tls: "false"
  185. pgo_image_prefix: "percona/percona-postgresql-operator"
  186. pgo_image_pull_policy: "Always"
  187. pgo_image_pull_secret: ""
  188. pgo_image_pull_secret_manifest: ""
  189. pgo_image_tag: "1.0.0"
  190. pgo_installation_name: "devtest"
  191. pgo_noauth_routes: ""
  192. pgo_operator_namespace: "possu2"
  193. pgo_tls_ca_store: ""
  194. pgo_tls_no_verify: "false"
  195. pod_anti_affinity: "preferred"
  196. pod_anti_affinity_pgbackrest: ""
  197. pod_anti_affinity_pgbouncer: ""
  198. scheduler_timeout: "3600"
  199. service_type: "ClusterIP"
  200. sync_replication: "false"
  201. backrest_storage: "default"
  202. backup_storage: "default"
  203. primary_storage: "default"
  204. replica_storage: "default"
  205. pgadmin_storage: "default"
  206. wal_storage: ""
  207. storage1_name: "default"
  208. storage1_access_mode: "ReadWriteOnce"
  209. storage1_size: "1G"
  210. storage1_type: "dynamic"
  211. storage2_name: "hostpathstorage"
  212. storage2_access_mode: "ReadWriteMany"
  213. storage2_size: "1G"
  214. storage2_type: "create"
  215. storage3_name: "nfsstorage"
  216. storage3_access_mode: "ReadWriteMany"
  217. storage3_size: "1G"
  218. storage3_type: "create"
  219. storage3_supplemental_groups: "65534"
  220. storage4_name: "nfsstoragered"
  221. storage4_access_mode: "ReadWriteMany"
  222. storage4_size: "1G"
  223. storage4_match_labels: "crunchyzone=red"
  224. storage4_type: "create"
  225. storage4_supplemental_groups: "65534"
  226. storage5_name: "storageos"
  227. storage5_access_mode: "ReadWriteOnce"
  228. storage5_size: "5Gi"
  229. storage5_type: "dynamic"
  230. storage5_class: "fast"
  231. storage6_name: "primarysite"
  232. storage6_access_mode: "ReadWriteOnce"
  233. storage6_size: "4G"
  234. storage6_type: "dynamic"
  235. storage6_class: "primarysite"
  236. storage7_name: "alternatesite"
  237. storage7_access_mode: "ReadWriteOnce"
  238. storage7_size: "4G"
  239. storage7_type: "dynamic"
  240. storage7_class: "alternatesite"
  241. storage8_name: "gce"
  242. storage8_access_mode: "ReadWriteOnce"
  243. storage8_size: "300M"
  244. storage8_type: "dynamic"
  245. storage8_class: "standard"
  246. storage9_name: "rook"
  247. storage9_access_mode: "ReadWriteOnce"
  248. storage9_size: "1Gi"
  249. storage9_type: "dynamic"
  250. storage9_class: "rook-ceph-block"
  251. ---
  252. apiVersion: rbac.authorization.k8s.io/v1
  253. kind: ClusterRoleBinding
  254. metadata:
  255. name: pgo-deployer-crb
  256. roleRef:
  257. apiGroup: rbac.authorization.k8s.io
  258. kind: ClusterRole
  259. name: pgo-deployer-cr
  260. subjects:
  261. - kind: ServiceAccount
  262. name: pgo-deployer-sa
  263. namespace: possu2
  264. ---
  265. apiVersion: batch/v1
  266. kind: Job
  267. metadata:
  268. name: pgo-deploy
  269. namespace: possu2
  270. spec:
  271. backoffLimit: 0
  272. template:
  273. metadata:
  274. name: pgo-deploy
  275. spec:
  276. serviceAccountName: pgo-deployer-sa
  277. restartPolicy: Never
  278. containers:
  279. - name: pgo-deploy
  280. image: percona/percona-postgresql-operator:1.0.0-pgo-deployer
  281. imagePullPolicy: Always
  282. env:
  283. - name: DEPLOY_ACTION
  284. value: install
  285. volumeMounts:
  286. - name: deployer-conf
  287. mountPath: "/conf"
  288. volumes:
  289. - name: deployer-conf
  290. configMap:
  291. name: pgo-deployer-cm
Advertisement
RAW Paste Data Copied
Advertisement