Skip to content

Commit 6058344

Browse files
committed
Add SSD storageClass example
1 parent 2bb6bd7 commit 6058344

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

docs/examples/production/README.md docs/examples/production-ready/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ kubectl apply -f rabbitmq.yaml
1515
```
1616

1717
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.
18+
19+
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).

docs/examples/production/rabbitmq.yaml docs/examples/production-ready/rabbitmq.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: rabbitmq.com/v1beta1
22
kind: RabbitmqCluster
33
metadata:
4-
name: production
4+
name: production-ready
55
spec:
66
replicas: 3
77
resources:

ssd-gke.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This example is GKE specific, other Kubernetes deployments will have a different `storageClass` for SSD disks.
2+
#
3+
# https://cloud.google.com/kubernetes-engine/docs/how-to/persistent-volumes/ssd-pd
4+
# https://cloud.google.com/compute/docs/disks/performance#ssd_persistent_disk
5+
apiVersion: storage.k8s.io/v1
6+
kind: StorageClass
7+
metadata:
8+
name: ssd
9+
provisioner: kubernetes.io/gce-pd
10+
parameters:
11+
type: pd-ssd
12+

0 commit comments

Comments
 (0)