github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/postgresql.cnpg.io/Cluster/testdata/cluster_healthy.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-25T20:44:24Z"
     8    generation: 1
     9    name: cluster-example
    10    namespace: default
    11    resourceVersion: "20230"
    12    uid: 987fe1ba-bba7-4021-9d25-f06ca9a8c0d2
    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 20:39:24 +0000 UTC
    91        cluster-example-replication: 2025-07-24 20:39:25 +0000 UTC
    92        cluster-example-server: 2025-07-24 20:39:25 +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-25T20:45:33Z"
   113      message: Cluster is Ready
   114      reason: ClusterIsReady
   115      status: "True"
   116      type: Ready
   117    - lastTransitionTime: "2025-04-25T20:44:53Z"
   118      message: Continuous archiving is working
   119      reason: ContinuousArchivingSuccess
   120      status: "True"
   121      type: ContinuousArchiving
   122    configMapResourceVersion:
   123      metrics:
   124        cnpg-default-monitoring: "19786"
   125    currentPrimary: cluster-example-1
   126    currentPrimaryTimestamp: "2025-04-25T20:44:38.190232Z"
   127    healthyPVC:
   128    - cluster-example-1
   129    - cluster-example-2
   130    - cluster-example-3
   131    image: ghcr.io/cloudnative-pg/postgresql:13
   132    instanceNames:
   133    - cluster-example-1
   134    - cluster-example-2
   135    - cluster-example-3
   136    instances: 3
   137    instancesReportedState:
   138      cluster-example-1:
   139        isPrimary: true
   140        timeLineID: 1
   141      cluster-example-2:
   142        isPrimary: false
   143        timeLineID: 1
   144      cluster-example-3:
   145        isPrimary: false
   146        timeLineID: 1
   147    instancesStatus:
   148      healthy:
   149      - cluster-example-1
   150      - cluster-example-2
   151      - cluster-example-3
   152    latestGeneratedNode: 3
   153    managedRolesStatus: {}
   154    phase: Cluster in healthy state
   155    poolerIntegrations:
   156      pgBouncerIntegration: {}
   157    pvcCount: 3
   158    readService: cluster-example-r
   159    readyInstances: 3
   160    secretsResourceVersion:
   161      applicationSecretVersion: "19755"
   162      clientCaSecretVersion: "19752"
   163      replicationSecretVersion: "19754"
   164      serverCaSecretVersion: "19752"
   165      serverSecretVersion: "19753"
   166    switchReplicaClusterStatus: {}
   167    targetPrimary: cluster-example-1
   168    targetPrimaryTimestamp: "2025-04-25T20:44:26.214164Z"
   169    timelineID: 1
   170    topology:
   171      instances:
   172        cluster-example-1: {}
   173        cluster-example-2: {}
   174        cluster-example-3: {}
   175      nodesUsed: 3
   176      successfullyExtracted: true
   177    writeService: cluster-example-rw