Advertisement
Guest User

Percona XtraDB Cluster cr.yaml

a guest
Jan 10th, 2020
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.68 KB | None | 0 0
  1. apiVersion: pxc.percona.com/v1-3-0
  2. kind: PerconaXtraDBCluster
  3. metadata:
  4.   name: cluster1
  5.   finalizers:
  6.    - delete-pxc-pods-in-order
  7. spec:
  8.   secretsName: my-cluster-secrets
  9.   sslSecretName: my-cluster-ssl
  10.   sslInternalSecretName: my-cluster-ssl-internal
  11.   allowUnsafeConfigurations: false
  12.   pxc:
  13.     size: 3
  14.     image: percona/percona-xtradb-cluster-operator:1.3.0-pxc
  15.     configuration: |
  16.      [mysqld]
  17.       sql_mode=NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
  18.       pxc_strict_mode=PERMISSIVE
  19.     resources:
  20.       requests:
  21.         memory: 1G
  22.         cpu: 600m
  23.     affinity:
  24.       antiAffinityTopologyKey: "kubernetes.io/hostname"
  25.     podDisruptionBudget:
  26.       maxUnavailable: 1
  27.     volumeSpec:
  28.       hostPath:
  29.         path: /cloud/percona-data
  30.         type: Directory
  31.       persistentVolumeClaim:
  32.         resources:
  33.           requests:
  34.             storage: 6Gi
  35.     gracePeriod: 600
  36.   proxysql:
  37.     enabled: true
  38.     size: 3
  39.     image: percona/percona-xtradb-cluster-operator:1.3.0-proxysql
  40.     resources:
  41.       requests:
  42.         memory: 1G
  43.         cpu: 600m
  44.     affinity:
  45.       antiAffinityTopologyKey: "kubernetes.io/hostname"
  46.     volumeSpec:
  47.       hostPath:
  48.         path: /cloud/percona-data
  49.         type: Directory
  50.       persistentVolumeClaim:
  51.         resources:
  52.           requests:
  53.             storage: 2Gi
  54.     podDisruptionBudget:
  55.       maxUnavailable: 1
  56.     gracePeriod: 30
  57.   pmm:
  58.     enabled: false
  59.     image: percona/percona-xtradb-cluster-operator:1.3.0-pmm
  60.     serverHost: monitoring-service
  61.     serverUser: pmm
  62.   backup:
  63.     image: percona/percona-xtradb-cluster-operator:1.3.0-backup
  64.     serviceAccountName: percona-xtradb-cluster-operator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement