-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Neaj Morshad <[email protected]>
- Loading branch information
1 parent
8b86a72
commit 3572373
Showing
11 changed files
with
528 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: mg-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: mongo-ca |
17 changes: 17 additions & 0 deletions
17
docs/examples/mssqlserver/reconfigure-tls/mg-replicaset.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: MongoDB | ||
metadata: | ||
name: mg-rs | ||
namespace: demo | ||
spec: | ||
version: "4.4.26" | ||
replicas: 3 | ||
replicaSet: | ||
name: rs0 | ||
storage: | ||
storageClassName: "standard" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
21 changes: 21 additions & 0 deletions
21
docs/examples/mssqlserver/reconfigure-tls/mops-add-tls.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MongoDBOpsRequest | ||
metadata: | ||
name: mops-add-tls | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: mg-rs | ||
tls: | ||
issuerRef: | ||
name: mg-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" | ||
certificates: | ||
- alias: client | ||
subject: | ||
organizations: | ||
- mongo | ||
organizationalUnits: | ||
- client |
14 changes: 14 additions & 0 deletions
14
docs/examples/mssqlserver/reconfigure-tls/mops-change-issuer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MongoDBOpsRequest | ||
metadata: | ||
name: mops-change-issuer | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: mg-rs | ||
tls: | ||
issuerRef: | ||
name: mg-new-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" |
11 changes: 11 additions & 0 deletions
11
docs/examples/mssqlserver/reconfigure-tls/mops-remove.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MongoDBOpsRequest | ||
metadata: | ||
name: mops-remove | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: mg-rs | ||
tls: | ||
remove: true |
11 changes: 11 additions & 0 deletions
11
docs/examples/mssqlserver/reconfigure-tls/mops-rotate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MongoDBOpsRequest | ||
metadata: | ||
name: mops-rotate | ||
namespace: demo | ||
spec: | ||
type: ReconfigureTLS | ||
databaseRef: | ||
name: mg-rs | ||
tls: | ||
rotateCertificates: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: mg-new-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: mongo-new-ca |
12 changes: 12 additions & 0 deletions
12
docs/examples/mssqlserver/volume-expansion/mops-volume-exp-std.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MSSQLServerOpsRequest | ||
metadata: | ||
name: mops-volume-exp-std | ||
namespace: demo | ||
spec: | ||
type: VolumeExpansion | ||
databaseRef: | ||
name: mssql-standalone | ||
volumeExpansion: | ||
mode: "Offline" # Online | ||
mssqlserver: 2Gi |
38 changes: 38 additions & 0 deletions
38
docs/examples/mssqlserver/volume-expansion/mssql-standalone.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: MSSQLServer | ||
metadata: | ||
name: mssql-standalone | ||
namespace: demo | ||
spec: | ||
version: "2022-cu12" | ||
replicas: 1 | ||
storageType: Durable | ||
tls: | ||
issuerRef: | ||
name: mssqlserver-ca-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" | ||
clientTLS: false | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: mssql | ||
env: | ||
- name: ACCEPT_EULA | ||
value: "Y" | ||
- name: MSSQL_PID | ||
value: Evaluation | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "1.5Gi" | ||
limits: | ||
memory: "2Gi" | ||
storage: | ||
storageClassName: "longhorn" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.