github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/postgresql.cnpg.io/Cluster/testdata/cluster_suspended.yaml (about) 1 apiVersion: postgresql.cnpg.io/v1 2 kind: Cluster 3 metadata: 4 annotations: 5 cnpg.io/hibernation: "on" 6 kubectl.kubernetes.io/last-applied-configuration: | 7 {"apiVersion":"postgresql.cnpg.io/v1","kind":"Cluster","metadata":{"annotations":{},"labels":{"app.kubernetes.io/instance":"cloudnative-pg-clusters"},"name":"cluster-example","namespace":"cnpg-samples"},"spec":{"imageName":"ghcr.io/cloudnative-pg/postgresql:13","instances":3,"storage":{"size":"1Gi"}}} 8 creationTimestamp: "2025-05-03T19:20:53Z" 9 generation: 1 10 labels: 11 app.kubernetes.io/instance: cloudnative-pg-clusters 12 name: cluster-example 13 namespace: cnpg-samples 14 resourceVersion: "21135385" 15 uid: 994785d4-9a89-4b12-bfb6-b02f7a8b5402 16 spec: 17 affinity: 18 podAntiAffinityType: preferred 19 bootstrap: 20 initdb: 21 database: app 22 encoding: UTF8 23 localeCType: C 24 localeCollate: C 25 owner: app 26 enablePDB: true 27 enableSuperuserAccess: false 28 failoverDelay: 0 29 imageName: ghcr.io/cloudnative-pg/postgresql:13 30 instances: 3 31 logLevel: info 32 maxSyncReplicas: 0 33 minSyncReplicas: 0 34 monitoring: 35 customQueriesConfigMap: 36 - key: queries 37 name: cnpg-default-monitoring 38 disableDefaultQueries: false 39 enablePodMonitor: false 40 postgresGID: 26 41 postgresUID: 26 42 postgresql: 43 parameters: 44 archive_mode: "on" 45 archive_timeout: 5min 46 dynamic_shared_memory_type: posix 47 full_page_writes: "on" 48 log_destination: csvlog 49 log_directory: /controller/log 50 log_filename: postgres 51 log_rotation_age: "0" 52 log_rotation_size: "0" 53 log_truncate_on_rotation: "false" 54 logging_collector: "on" 55 max_parallel_workers: "32" 56 max_replication_slots: "32" 57 max_worker_processes: "32" 58 shared_memory_type: mmap 59 shared_preload_libraries: "" 60 ssl_max_protocol_version: TLSv1.3 61 ssl_min_protocol_version: TLSv1.3 62 wal_keep_size: 512MB 63 wal_level: logical 64 wal_log_hints: "on" 65 wal_receiver_timeout: 5s 66 wal_sender_timeout: 5s 67 syncReplicaElectionConstraint: 68 enabled: false 69 primaryUpdateMethod: restart 70 primaryUpdateStrategy: unsupervised 71 replicationSlots: 72 highAvailability: 73 enabled: true 74 slotPrefix: _cnpg_ 75 synchronizeReplicas: 76 enabled: true 77 updateInterval: 30 78 resources: {} 79 smartShutdownTimeout: 180 80 startDelay: 3600 81 stopDelay: 1800 82 storage: 83 resizeInUseVolumes: true 84 size: 1Gi 85 switchoverDelay: 3600 86 status: 87 availableArchitectures: 88 - goArch: amd64 89 hash: 0a8f22a9c14805f67b92f6994d6487da7570929108443d1a70a66b8d47a51b2f 90 - goArch: arm64 91 hash: c8318d0576271cba8bdb120a6500f273038035a9bf97e36c9a367ea0ae3590c0 92 certificates: 93 clientCASecret: cluster-example-ca 94 expirations: 95 cluster-example-ca: 2025-08-01 19:15:53 +0000 UTC 96 cluster-example-replication: 2025-08-01 19:15:54 +0000 UTC 97 cluster-example-server: 2025-08-01 19:15:53 +0000 UTC 98 replicationTLSSecret: cluster-example-replication 99 serverAltDNSNames: 100 - cluster-example-rw 101 - cluster-example-rw.cnpg-samples 102 - cluster-example-rw.cnpg-samples.svc 103 - cluster-example-rw.cnpg-samples.svc.cluster.local 104 - cluster-example-r 105 - cluster-example-r.cnpg-samples 106 - cluster-example-r.cnpg-samples.svc 107 - cluster-example-r.cnpg-samples.svc.cluster.local 108 - cluster-example-ro 109 - cluster-example-ro.cnpg-samples 110 - cluster-example-ro.cnpg-samples.svc 111 - cluster-example-ro.cnpg-samples.svc.cluster.local 112 serverCASecret: cluster-example-ca 113 serverTLSSecret: cluster-example-server 114 cloudNativePGCommitHash: c56e00d4 115 cloudNativePGOperatorHash: c8318d0576271cba8bdb120a6500f273038035a9bf97e36c9a367ea0ae3590c0 116 conditions: 117 - lastTransitionTime: "2025-05-03T19:41:11Z" 118 message: Cluster is Ready 119 reason: ClusterIsReady 120 status: "True" 121 type: Ready 122 - lastTransitionTime: "2025-05-03T19:40:28Z" 123 message: Continuous archiving is working 124 reason: ContinuousArchivingSuccess 125 status: "True" 126 type: ContinuousArchiving 127 - lastTransitionTime: "2025-05-03T19:53:47Z" 128 message: Cluster has been hibernated 129 reason: Hibernated 130 status: "True" 131 type: cnpg.io/hibernation 132 configMapResourceVersion: 133 metrics: 134 cnpg-default-monitoring: "21125563" 135 currentPrimary: cluster-example-1 136 currentPrimaryTimestamp: "2025-05-03T19:40:28.384836Z" 137 danglingPVC: 138 - cluster-example-1 139 - cluster-example-2 140 - cluster-example-3 141 image: ghcr.io/cloudnative-pg/postgresql:13 142 instanceNames: 143 - cluster-example-1 144 - cluster-example-2 145 - cluster-example-3 146 instances: 3 147 latestGeneratedNode: 3 148 managedRolesStatus: {} 149 phase: Cluster in healthy state 150 poolerIntegrations: 151 pgBouncerIntegration: {} 152 pvcCount: 3 153 readService: cluster-example-r 154 secretsResourceVersion: 155 applicationSecretVersion: "21125529" 156 clientCaSecretVersion: "21125524" 157 replicationSecretVersion: "21125528" 158 serverCaSecretVersion: "21125524" 159 serverSecretVersion: "21125527" 160 switchReplicaClusterStatus: {} 161 targetPrimary: cluster-example-1 162 targetPrimaryTimestamp: "2025-05-03T19:40:24.717007Z" 163 timelineID: 5 164 topology: 165 successfullyExtracted: true 166 writeService: cluster-example-rw