-
Notifications
You must be signed in to change notification settings - Fork 2
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: Tamal Saha <[email protected]>
- Loading branch information
Showing
73 changed files
with
5,199 additions
and
46 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
content/docs/v2024.9.30/examples/mssqlserver/autoscaler/compute/ms-as-compute.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,24 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: MSSQLServerAutoscaler | ||
metadata: | ||
name: ms-as-compute | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: mssqlserver-ag-cluster | ||
opsRequestOptions: | ||
timeout: 5m | ||
apply: IfReady | ||
compute: | ||
mssqlserver: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 10 | ||
minAllowed: | ||
cpu: 800m | ||
memory: 2Gi | ||
maxAllowed: | ||
cpu: 1 | ||
memory: 3Gi | ||
containerControlledValues: "RequestsAndLimits" | ||
controlledResources: ["cpu", "memory"] |
46 changes: 46 additions & 0 deletions
46
content/docs/v2024.9.30/examples/mssqlserver/autoscaler/compute/mssqlserver-ag-cluster.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,46 @@ | ||
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 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: mssql | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "1.5Gi" | ||
limits: | ||
cpu: "600m" | ||
memory: "1.6Gi" | ||
storageType: Durable | ||
storage: | ||
storageClassName: "longhorn" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
15 changes: 15 additions & 0 deletions
15
content/docs/v2024.9.30/examples/mssqlserver/autoscaler/storage/ms-as-storage.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,15 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: MSSQLServerAutoscaler | ||
metadata: | ||
name: ms-as-storage | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: mssqlserver-ag-cluster | ||
storage: | ||
mssqlserver: | ||
trigger: "On" | ||
usageThreshold: 60 | ||
scalingThreshold: 50 | ||
expansionMode: "Offline" | ||
upperBound: "100Gi" |
46 changes: 46 additions & 0 deletions
46
content/docs/v2024.9.30/examples/mssqlserver/autoscaler/storage/mssqlserver-ag-cluster.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,46 @@ | ||
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 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: mssql | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "1.5Gi" | ||
limits: | ||
cpu: "600m" | ||
memory: "1.6Gi" | ||
storageType: Durable | ||
storage: | ||
storageClassName: "longhorn" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
48 changes: 48 additions & 0 deletions
48
content/docs/v2024.9.30/examples/mssqlserver/monitoring/mssql-monitoring.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,48 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: MSSQLServer | ||
metadata: | ||
name: mssql-monitoring | ||
namespace: demo | ||
spec: | ||
version: "2022-cu12" | ||
replicas: 1 | ||
tls: | ||
issuerRef: | ||
name: mssqlserver-ca-issuer | ||
kind: Issuer | ||
apiGroup: "cert-manager.io" | ||
clientTLS: false | ||
monitor: | ||
agent: prometheus.io/operator | ||
prometheus: | ||
exporter: | ||
port: 9399 | ||
resources: | ||
limits: | ||
memory: 512Mi | ||
requests: | ||
cpu: 200m | ||
memory: 256Mi | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: | ||
- ALL | ||
runAsGroup: 10001 | ||
runAsNonRoot: true | ||
runAsUser: 10001 | ||
seccompProfile: | ||
type: RuntimeDefault | ||
serviceMonitor: | ||
interval: 10s | ||
labels: | ||
release: prometheus | ||
storageType: Durable | ||
storage: | ||
storageClassName: standard | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
11 changes: 11 additions & 0 deletions
11
content/docs/v2024.9.30/examples/mssqlserver/restart/msops-restart.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: 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
35
content/docs/v2024.9.30/examples/mssqlserver/restart/mssqlserver-ag-cluster.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,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
8
content/docs/v2024.9.30/examples/mssqlserver/restart/mssqlserver-ca-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,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: mssqlserver-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: mssqlserver-ca |
11 changes: 11 additions & 0 deletions
11
...nt/docs/v2024.9.30/examples/mssqlserver/scaling/horizontal-scaling/msops-hscale-down.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: MSSQLServerOpsRequest | ||
metadata: | ||
name: msops-hscale-down | ||
namespace: demo | ||
spec: | ||
type: HorizontalScaling | ||
databaseRef: | ||
name: mssql-ag-cluster | ||
horizontalScaling: | ||
replicas: 2 |
11 changes: 11 additions & 0 deletions
11
content/docs/v2024.9.30/examples/mssqlserver/scaling/horizontal-scaling/msops-hscale-up.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: MSSQLServerOpsRequest | ||
metadata: | ||
name: msops-hscale-up | ||
namespace: demo | ||
spec: | ||
type: HorizontalScaling | ||
databaseRef: | ||
name: mssql-ag-cluster | ||
horizontalScaling: | ||
replicas: 3 |
46 changes: 46 additions & 0 deletions
46
...ent/docs/v2024.9.30/examples/mssqlserver/scaling/horizontal-scaling/mssql-ag-cluster.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,46 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: MSSQLServer | ||
metadata: | ||
name: mssql-ag-cluster | ||
namespace: demo | ||
spec: | ||
version: "2022-cu12" | ||
replicas: 2 | ||
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 | ||
podTemplate: | ||
spec: | ||
containers: | ||
- name: mssql | ||
resources: | ||
requests: | ||
cpu: "500m" | ||
memory: "1.5Gi" | ||
limits: | ||
cpu: 1 | ||
memory: "2Gi" | ||
storageType: Durable | ||
storage: | ||
storageClassName: "standard" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
deletionPolicy: WipeOut |
8 changes: 8 additions & 0 deletions
8
content/docs/v2024.9.30/examples/mssqlserver/scaling/mssqlserver-ca-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,8 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: mssqlserver-ca-issuer | ||
namespace: demo | ||
spec: | ||
ca: | ||
secretName: mssqlserver-ca |
18 changes: 18 additions & 0 deletions
18
...docs/v2024.9.30/examples/mssqlserver/scaling/vertical-scaling/mops-vscale-ag-cluster.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,18 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MSSQLServerOpsRequest | ||
metadata: | ||
name: mops-vscale-ag-cluster | ||
namespace: demo | ||
spec: | ||
type: VerticalScaling | ||
databaseRef: | ||
name: mssql-ag-cluster | ||
verticalScaling: | ||
mssqlserver: | ||
resources: | ||
requests: | ||
memory: "1.7Gi" | ||
cpu: "700m" | ||
limits: | ||
cpu: 2 | ||
memory: "4Gi" |
17 changes: 17 additions & 0 deletions
17
...docs/v2024.9.30/examples/mssqlserver/scaling/vertical-scaling/mops-vscale-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,17 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: MSSQLServerOpsRequest | ||
metadata: | ||
name: mops-vscale-standalone | ||
namespace: demo | ||
spec: | ||
type: VerticalScaling | ||
databaseRef: | ||
name: mssql-standalone | ||
verticalScaling: | ||
mssqlserver: | ||
resources: | ||
requests: | ||
memory: "5Gi" | ||
cpu: "1000m" | ||
limits: | ||
memory: "5Gi" |
Oops, something went wrong.