Last active
December 28, 2023 10:44
-
-
Save tamalsaha/ddbe66c306f2d80fc56675ca695e4f41 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: node.k8s.appscode.com/v1alpha1 | |
kind: NodeTopology | |
metadata: | |
name: gke-n1-standard | |
spec: | |
nodeSelectionPolicy: Taint | |
topologyKey: nodepool_type | |
nodeGroups: | |
- allocatable: | |
cpu: 940m | |
memory: 2.56Gi | |
topologyValue: n1-standard-1 | |
- allocatable: | |
cpu: 1930m | |
memory: 5.48Gi | |
topologyValue: n1-standard-2 | |
- allocatable: | |
cpu: 3920m | |
memory: 12.07Gi | |
topologyValue: n1-standard-4 | |
- allocatable: | |
cpu: 7910m | |
memory: 25.89Gi | |
topologyValue: n1-standard-8 | |
- allocatable: | |
cpu: 15890m | |
memory: 53.57Gi | |
topologyValue: n1-standard-16 | |
- allocatable: | |
cpu: 31850m | |
memory: 109.03Gi | |
topologyValue: n1-standard-32 | |
- allocatable: | |
cpu: 63770m | |
memory: 224.45Gi | |
topologyValue: n1-standard-64 |
This file contains hidden or 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
apiVersion: node.k8s.appscode.com/v1alpha1 | |
kind: NodeTopology | |
metadata: | |
name: gke-n2-standard | |
spec: | |
nodeSelectionPolicy: Taint | |
topologyKey: nodepool_type | |
nodeGroups: | |
- allocatable: | |
cpu: 1930m | |
memory: 5.89Gi | |
topologyValue: n2-standard-2 | |
- allocatable: | |
cpu: 3920m | |
memory: 12.97Gi | |
topologyValue: n2-standard-4 | |
- allocatable: | |
cpu: 7910m | |
memory: 27.74Gi | |
topologyValue: n2-standard-8 | |
- allocatable: | |
cpu: 15890m | |
memory: 57.27Gi | |
topologyValue: n2-standard-16 | |
- allocatable: | |
cpu: 31850m | |
memory: 116.64Gi | |
topologyValue: n2-standard-32 | |
- allocatable: | |
cpu: 47810m | |
memory: 178.35Gi | |
topologyValue: n2-standard-48 | |
- allocatable: | |
cpu: 63770m | |
memory: 240.07Gi | |
topologyValue: n2-standard-64 |
This file contains hidden or 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
apiVersion: kubedb.com/v1alpha2 | |
kind: MongoDB | |
metadata: | |
name: mg-database | |
namespace: demo | |
spec: | |
version: "4.4.26" | |
terminationPolicy: WipeOut | |
replicas: 3 | |
replicaSet: | |
name: "rs" | |
podTemplate: | |
spec: | |
nodeSelector: | |
app: "kubedb" | |
instance: "mongodb" | |
component: "mg-database" | |
tolerations: | |
- key: nodepool_type | |
value: n1-standard-2 | |
effect: NoSchedule | |
- key: app | |
value: kubedb | |
effect: NoSchedule | |
- key: instance | |
value: mongodb | |
effect: NoSchedule | |
- key: component | |
value: mg-database | |
effect: NoSchedule | |
resources: | |
requests: | |
"cpu": "1435m" | |
"memory": "4.02Gi" | |
limits: | |
"cpu": "1930m" | |
"memory": "5.48Gi" | |
storage: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
This file contains hidden or 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
apiVersion: autoscaling.kubedb.com/v1alpha1 | |
kind: MongoDBAutoscaler | |
metadata: | |
name: mg-database | |
namespace: demo | |
spec: | |
databaseRef: | |
name: mg-database | |
opsRequestOptions: | |
timeout: 10m | |
apply: IfReady | |
compute: | |
replicaSet: | |
trigger: "On" | |
# podLifeTimeThreshold: 5m | |
# resourceDiffPercentage: 50 | |
minAllowed: | |
cpu: "1292m" | |
memory: "3.62Gi" | |
maxAllowed: | |
cpu: "63770m" | |
memory: "224.45Gi" | |
controlledResources: ["cpu", "memory"] | |
containerControlledValues: "RequestsAndLimits" | |
nodeTopology: | |
name: gke-n1-standard |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment