Managed Configuration#

PGDオペレーターを使用すると、PG4Kクラスターのmanaged セクションを構成できます。 spec.cnp.managed スタンザは、クラスター内でサポートされている管理ロールを構成するために使用されます。

この例では、postgresで設定された指定されたプロパティを使用してfoo という名前の管理ロールを持つようにpgdgroupを構成します。

apiVersion: pgd.k8s.enterprisedb.io/v1beta1
kind: PGDGroup
metadata:
  name: group-example-with-managed
spec:
  [...]
  cnp:
    [...]
    managed:
      roles:
        - name: foo
          comment: Foo
          ensure: present
          connectionLimit: 100
          login: true
          superuser: true
          createdb: true
          createrole: true
          replication: true

管理対象ロールの詳細については、 EDB Postgres for Kubernetes recovery - Database Role Management を参照してください。