Skip to content

Commit

Permalink
finish restart
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 1, 2024
1 parent 5a2ede8 commit 20a38df
Show file tree
Hide file tree
Showing 4 changed files with 191 additions and 101 deletions.
11 changes: 11 additions & 0 deletions docs/examples/mssqlserver/restart/msops-restart.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-restart
namespace: demo
spec:
type: Restart
databaseRef:
name: mssqlserver-ag-cluster
timeout: 3m
apply: Always
35 changes: 35 additions & 0 deletions docs/examples/mssqlserver/restart/mssqlserver-ag-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: kubedb.com/v1alpha2
kind: MSSQLServer
metadata:
name: mssqlserver-ag-cluster
namespace: demo
spec:
version: "2022-cu12"
replicas: 3
topology:
mode: AvailabilityGroup
availabilityGroup:
databases:
- agdb1
- agdb2
internalAuth:
endpointCert:
issuerRef:
apiGroup: cert-manager.io
name: mssqlserver-ca-issuer
kind: Issuer
tls:
issuerRef:
name: mssqlserver-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
clientTLS: false
storageType: Durable
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
deletionPolicy: WipeOut
8 changes: 8 additions & 0 deletions docs/examples/mssqlserver/restart/mssqlserver-ca-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: mssqlserver-ca-issuer
namespace: demo
spec:
ca:
secretName: mssqlserver-ca
Loading

0 comments on commit 20a38df

Please sign in to comment.