github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/postgresql.cnpg.io/Cluster/testdata/cluster_progressing.yaml (about) 1 apiVersion: postgresql.cnpg.io/v1 2 kind: Cluster 3 metadata: 4 annotations: 5 kubectl.kubernetes.io/last-applied-configuration: | 6 {"apiVersion":"postgresql.cnpg.io/v1","kind":"Cluster","metadata":{"annotations":{},"name":"cluster-example","namespace":"default"},"spec":{"imageName":"ghcr.io/cloudnative-pg/postgresql:13","instances":3,"storage":{"size":"1Gi"}}} 7 creationTimestamp: "2025-04-25T19:59:15Z" 8 generation: 1 9 name: cluster-example 10 namespace: default 11 resourceVersion: "12305" 12 uid: ec7a9e21-a2fe-46cb-a7a3-d5c72e3fa9d4 13 spec: 14 affinity: 15 podAntiAffinityType: preferred 16 bootstrap: 17 initdb: 18 database: app 19 encoding: UTF8 20 localeCType: C 21 localeCollate: C 22 owner: app 23 enablePDB: true 24 enableSuperuserAccess: false 25 failoverDelay: 0 26 imageName: ghcr.io/cloudnative-pg/postgresql:13 27 instances: 3 28 logLevel: info 29 maxSyncReplicas: 0 30 minSyncReplicas: 0 31 monitoring: 32 customQueriesConfigMap: 33 - key: queries 34 name: cnpg-default-monitoring 35 disableDefaultQueries: false 36 enablePodMonitor: false 37 postgresGID: 26 38 postgresUID: 26 39 postgresql: 40 parameters: 41 archive_mode: "on" 42 archive_timeout: 5min 43 dynamic_shared_memory_type: posix 44 full_page_writes: "on" 45 log_destination: csvlog 46 log_directory: /controller/log 47 log_filename: postgres 48 log_rotation_age: "0" 49 log_rotation_size: "0" 50 log_truncate_on_rotation: "false" 51 logging_collector: "on" 52 max_parallel_workers: "32" 53 max_replication_slots: "32" 54 max_worker_processes: "32" 55 shared_memory_type: mmap 56 shared_preload_libraries: "" 57 ssl_max_protocol_version: TLSv1.3 58 ssl_min_protocol_version: TLSv1.3 59 wal_keep_size: 512MB 60 wal_level: logical 61 wal_log_hints: "on" 62 wal_receiver_timeout: 5s 63 wal_sender_timeout: 5s 64 syncReplicaElectionConstraint: 65 enabled: false 66 primaryUpdateMethod: restart 67 primaryUpdateStrategy: unsupervised 68 replicationSlots: 69 highAvailability: 70 enabled: true 71 slotPrefix: _cnpg_ 72 synchronizeReplicas: 73 enabled: true 74 updateInterval: 30 75 resources: {} 76 smartShutdownTimeout: 180 77 startDelay: 3600 78 stopDelay: 1800 79 storage: 80 resizeInUseVolumes: true 81 size: 1Gi 82 switchoverDelay: 3600 83 status: 84 availableArchitectures: 85 - goArch: amd64 86 hash: d54839c128b2b38034c6f73006b2a979d916c9715cda5d59a1241018cc44904e 87 certificates: 88 clientCASecret: cluster-example-ca 89 expirations: 90 cluster-example-ca: 2025-07-24 19:54:15 +0000 UTC 91 cluster-example-replication: 2025-07-24 19:54:16 +0000 UTC 92 cluster-example-server: 2025-07-24 19:54:15 +0000 UTC 93 replicationTLSSecret: cluster-example-replication 94 serverAltDNSNames: 95 - cluster-example-rw 96 - cluster-example-rw.default 97 - cluster-example-rw.default.svc 98 - cluster-example-rw.default.svc.cluster.local 99 - cluster-example-r 100 - cluster-example-r.default 101 - cluster-example-r.default.svc 102 - cluster-example-r.default.svc.cluster.local 103 - cluster-example-ro 104 - cluster-example-ro.default 105 - cluster-example-ro.default.svc 106 - cluster-example-ro.default.svc.cluster.local 107 serverCASecret: cluster-example-ca 108 serverTLSSecret: cluster-example-server 109 cloudNativePGCommitHash: 005e82a17 110 cloudNativePGOperatorHash: d54839c128b2b38034c6f73006b2a979d916c9715cda5d59a1241018cc44904e 111 conditions: 112 - lastTransitionTime: "2025-04-25T19:59:16Z" 113 message: Cluster Is Not Ready 114 reason: ClusterIsNotReady 115 status: "False" 116 type: Ready 117 configMapResourceVersion: 118 metrics: 119 cnpg-default-monitoring: "12266" 120 image: ghcr.io/cloudnative-pg/postgresql:13 121 initializingPVC: 122 - cluster-example-1 123 instanceNames: 124 - cluster-example-1 125 instances: 1 126 jobCount: 1 127 latestGeneratedNode: 1 128 managedRolesStatus: {} 129 phase: Setting up primary 130 phaseReason: Creating primary instance cluster-example-1 131 poolerIntegrations: 132 pgBouncerIntegration: {} 133 pvcCount: 1 134 readService: cluster-example-r 135 secretsResourceVersion: 136 applicationSecretVersion: "12239" 137 clientCaSecretVersion: "12236" 138 replicationSecretVersion: "12238" 139 serverCaSecretVersion: "12236" 140 serverSecretVersion: "12237" 141 switchReplicaClusterStatus: {} 142 targetPrimary: cluster-example-1 143 targetPrimaryTimestamp: "2025-04-25T19:59:18.018989Z" 144 topology: 145 successfullyExtracted: true 146 writeService: cluster-example-rw