Key pgReplicas..volumeSpec.matchLabels

Hi
What is the value for a particular replica?
What do you mean between two points?

tried adding a replica name. like this - not working
without a replica name does not work either

  pgReplicas:
    hotStandby:
      size: 1
    nsi-repl1:
      volumeSpec:
        size: 1G
        accessmode: ReadWriteOnce
        storagetype: create
        storageclass: ""
        matchLabels: "pv=nsi-repl"

for pgPrimary this place looks like this and works as it should

  pgPrimary:
    volumeSpec:
      size: 1G
      accessmode: ReadWriteOnce
      storagetype: create
      storageclass: ""
      matchLabels: "pv=nsi-prim"

How to correctly specify the value for a specific replica?

1 Like

It comes out like this: pgReplicas.hotStandby.volumeSpec
With one replica it worked correctly like this.

  pgReplicas:
    hotStandby:
      size: 1
      volumeSpec:
        size: 1G
        accessmode: ReadWriteOnce
        storagetype: create
        storageclass: ""
        matchLabels: "pv=nsi-repl"
1 Like