mirror of
https://github.com/zoriya/snow.git
synced 2026-08-05 05:48:46 +00:00
New try of cert manager with cnpg
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: postgres-ca
|
||||
namespace: postgres
|
||||
spec:
|
||||
isCA: true
|
||||
commonName: postgres-ca
|
||||
secretName: postgres-ca
|
||||
privateKey:
|
||||
algorithm: ECDSA
|
||||
size: 256
|
||||
issuerRef:
|
||||
name: selfsigned
|
||||
kind: ClusterIssuer
|
||||
group: cert-manager.io
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: postgres-ca
|
||||
namespace: postgres
|
||||
spec:
|
||||
ca:
|
||||
secretName: postgres-ca
|
||||
+16
-28
@@ -1,36 +1,10 @@
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: postgres-ca
|
||||
name: postgres-server-cert
|
||||
namespace: postgres
|
||||
spec:
|
||||
isCA: true
|
||||
commonName: postgres-ca
|
||||
secretName: postgres-ca
|
||||
privateKey:
|
||||
algorithm: ECDSA
|
||||
size: 256
|
||||
issuerRef:
|
||||
name: selfsigned
|
||||
kind: ClusterIssuer
|
||||
group: cert-manager.io
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Issuer
|
||||
metadata:
|
||||
name: postgres-ca
|
||||
namespace: postgres
|
||||
spec:
|
||||
ca:
|
||||
secretName: postgres-ca
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: postgres-replication-cert
|
||||
namespace: postgres
|
||||
spec:
|
||||
secretName: postgres-replication-cert
|
||||
secretName: postgres-server-cert
|
||||
secretTemplate:
|
||||
labels:
|
||||
cnpg.io/reload: ""
|
||||
@@ -50,3 +24,17 @@ spec:
|
||||
name: postgres-ca
|
||||
kind: Issuer
|
||||
group: cert-manager.io
|
||||
---
|
||||
apiVersion: cert-manager.io/v1
|
||||
kind: Certificate
|
||||
metadata:
|
||||
name: postgres-replication-cert
|
||||
spec:
|
||||
secretName: postgres-replication-cert
|
||||
usages:
|
||||
- client auth
|
||||
commonName: streaming_replica
|
||||
issuerRef:
|
||||
name: postgres-ca
|
||||
kind: Issuer
|
||||
group: cert-manager.io
|
||||
|
||||
@@ -10,7 +10,9 @@ spec:
|
||||
size: 10Gi
|
||||
|
||||
certificates:
|
||||
clientCASecret: postgres-ca
|
||||
serverTLSSecret: postgres-ca
|
||||
serverCASecret: postgres-ca
|
||||
clientCASecret: postgres-server-cert
|
||||
replicationTLSSecret: postgres-replication-cert
|
||||
|
||||
# this is here because no `Role` crd exsists yet.
|
||||
|
||||
Reference in New Issue
Block a user