Skip to content

Commit

Permalink
Finish reconfigure tls for ag
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Nov 18, 2024
1 parent ff4d46f commit 3ab051d
Show file tree
Hide file tree
Showing 11 changed files with 434 additions and 483 deletions.
17 changes: 0 additions & 17 deletions docs/examples/mssqlserver/reconfigure-tls/mg-replicaset.yaml

This file was deleted.

24 changes: 24 additions & 0 deletions docs/examples/mssqlserver/reconfigure-tls/msops-ag-add-tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MSSQLServerOpsRequest
metadata:
name: msops-ag-add-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mssql-ag-cluster
tls:
issuerRef:
name: mssqlserver-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
certificates:
- alias: client
subject:
organizations:
- mssqlserver
organizationalUnits:
- client
clientTLS: true
timeout: 5m
apply: IfReady
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MSSQLServerOpsRequest
metadata:
name: msops-ag-change-issuer
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mssql-ag-cluster
tls:
issuerRef:
name: mssqlserver-new-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
11 changes: 11 additions & 0 deletions docs/examples/mssqlserver/reconfigure-tls/msops-ag-remove.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MSSQLServerOpsRequest
metadata:
name: msops-ag-remove
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mssql-ag-cluster
tls:
remove: true
13 changes: 13 additions & 0 deletions docs/examples/mssqlserver/reconfigure-tls/msops-ag-rotate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MSSQLServerOpsRequest
metadata:
name: msops-ag-rotate
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mssql-ag-cluster
tls:
rotateCertificates: true
timeout: 5m
apply: IfReady

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
apiVersion: kubedb.com/v1alpha2
kind: MSSQLServer
metadata:
name: mssqlserver-ag-cluster
name: mssql-ag-cluster
namespace: demo
spec:
version: "2022-cu12"
configSecret:
name: ms-custom-config
replicas: 3
topology:
mode: AvailabilityGroup
Expand All @@ -28,7 +26,13 @@ spec:
- name: ACCEPT_EULA
value: "Y"
- name: MSSQL_PID
value: Developer
value: Evaluation
resources:
requests:
cpu: "500m"
memory: "1.5Gi"
limits:
memory: "2Gi"
storageType: Durable
storage:
storageClassName: "standard"
Expand Down
Loading

0 comments on commit 3ab051d

Please sign in to comment.