Skip to content

Instantly share code, notes, and snippets.

@elsonrodriguez
Last active March 6, 2020 22:46
Show Gist options
  • Save elsonrodriguez/47123fc59478b3828ccd2e3ca71caa50 to your computer and use it in GitHub Desktop.
Save elsonrodriguez/47123fc59478b3828ccd2e3ca71caa50 to your computer and use it in GitHub Desktop.
How to run Stateful services on GKE

Don't.

Events:
  Type     Reason              Age                       From                                         Message
  ----     ------              ----                      ----                                         -------
  Warning  FailedMount         6m35s (x3278 over 5d3h)   kubelet, gke-cluster-1-pool-1-7f7f8d03-gzgt  Unable to mount volumes for pod "mysql-1-0_default(26843a14-94ff-49dd-90a7-5214f575f70d)": timeout expired waiting for volumes to attach or mount for pod "default"/"mysql-1-0". list of unmounted volumes=[rootfs]. list of unattached volumes=[vls-72d7-mysql-1-vm volumes rootfs lvmdata udevdata cgroups default-token-pr9xg]
  Warning  FailedAttachVolume  3m40s (x1751 over 4d21h)  attachdetach-controller                      AttachVolume.Attach failed for volume "pvc-0885265c-b5c3-4d96-8383-31489181eb01" : attachment timeout for volume simple-pvc-0885265c-b5c3-4d96-8383-31489181eb01
@elsonrodriguez
Copy link
Author

Also

  Normal   Scheduled           15s   default-scheduler        Successfully assigned default/mysql-1-0 to gke-cluster-1-pool-1-7f7f8d03-qlnw
  Warning  FailedAttachVolume  15s   attachdetach-controller  Multi-Attach error for volume "vls-pv-vls-72d7-mysql-1-vm" Volume is already exclusively attached to one node and can't be attached to another

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment