Skip to content

Instantly share code, notes, and snippets.

@abasu0713
Last active June 17, 2024 17:46
Show Gist options
  • Save abasu0713/5c8fb05944b2dc6bdcc49de6bd74bed8 to your computer and use it in GitHub Desktop.
Save abasu0713/5c8fb05944b2dc6bdcc49de6bd74bed8 to your computer and use it in GitHub Desktop.
Enable S3 compatible Ceph Object/Rados Gateway on Ceph cluster deployed using Microceph

Enable S3 Compatible Ceph Object Gateway

You can run this from any node that is part of the Ceph Cluster deployed using Microceph. The node you run the following commands from becomes the host for the Object/Rados Gateway service.

If you are going to use this cluster as a storage layer for your different Kubernetes applications, then I recommend doing this from your Active leader.

You might see an error like the following on a ceph cluster that you had previously tore down. It's just a false negative: Error: failed placing service rgw: failed to add DB record for rgw: failed to record role: This "services" entry already exists

# Enable the RGW Service on a host node of your choice
sudo microceph enable rgw

# Check the status - you should see a new RGW Service
sudo microceph.ceph status 

# Run a S3 API request to the RGW Endpoint from the same host
curl localhost:80
Image showing enabled RGW Service and a sample S3 API call * Enabled RGW Service and sample S3 response when you hit the endpoint without any authentication

References

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