Skip to content

Commit

Permalink
Add SSD storageClass example
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Nov 4, 2020
1 parent 2bb6bd7 commit 6058344
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ kubectl apply -f rabbitmq.yaml
```

Please keep in mind that you need a multi-zone Kubernetes cluster with 12 CPUs, 30Gi RAM, 1.5Ti disk space available as well as a `storageClass` called `ssd` to deploy this example as-is. Of course you can adjust these values to your environment if needed.

An SSD storage class can be defined using [the example](ssd-gke.yaml) (which is GKE-specific and needs to be adjusted for other environments). Read more about the expected disk perforamnce [in Google Cloud Documentation](https://cloud.google.com/compute/docs/disks/performance#ssd_persistent_disk).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
name: production
name: production-ready
spec:
replicas: 3
resources:
Expand Down
12 changes: 12 additions & 0 deletions ssd-gke.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This example is GKE specific, other Kubernetes deployments will have a different `storageClass` for SSD disks.
#
# https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/ssd-pd
# https://cloud.google.com/compute/docs/disks/performance#ssd_persistent_disk
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: ssd
provisioner: kubernetes.io/gce-pd
parameters:
type: pd-ssd

0 comments on commit 6058344

Please sign in to comment.