Home > Software engineering >  How to use gke-boot-disk=pd-ssd disk with GKE Autopilot?
How to use gke-boot-disk=pd-ssd disk with GKE Autopilot?

Time:02-18

Autopilot makes all decisions about the nodes but, why are all nodes being created with cloud.google.com/gke-boot-disk=pd-standard? Is it possible to all nodes be created with ssd disk? If so, how can it be done?

CodePudding user response:

To be able to use SSDs for your GKE deployment, you need to use the premium-rwo storage class from the Compute Engine persistent disk CSI Driver to provision your volumes. For that, you need to set up the storageClassName field to premium-rwo in your PersistentVolumeClaim in your manifest file (YAML). Here is an example:

# ssd-claim.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-volume
spec:
  storageClassName: premium-rwo
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 30Gi

Please use the following GCP GKE’s official documentation as a detailed guide.

CodePudding user response:

Currently, Autopilot managed node does not use SSD as the boot device, it doesn't support local SSD either. This behavior is not amendable.

  • Related