Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Glance s3 config with s3_store_cacert config option #652

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions config/samples/backends/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,26 @@ spec:
...
```

**Note:**
If s3 is consumed via `https`, the option `s3_store_cacert` must be set, pointing
to the `ca-bundle.crt` path.
The `OpenStackControlPlane` is usually deployed by default with tls enabled,
and a CA certificate is mounted to the Pod in `/etc/pki/tls/certs/ca-bundle.crt`.
GlanceAPI `customServiceConfig` must be updated to reflect the following:

```
customServiceConfig: |
[DEFAULT]
debug=true
enabled_backends = default_backend:s3
[glance_store]
default_backend = default_backend
[default_backend]
s3_store_create_bucket_on_put = True
s3_store_bucket_url_format = "path"
s3_store_cacert = "/etc/pki/tls/certs/ca-bundle.crt"
```

If you are using `install_yamls` and you already have `crc` running you
can use the "s3" example and apply it to the control plane with the following
commands:
Expand Down
1 change: 1 addition & 0 deletions config/samples/backends/s3/s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
[default_backend]
s3_store_create_bucket_on_put = True
s3_store_bucket_url_format = "path"
s3_store_cacert = "/etc/pki/tls/certs/ca-bundle.crt"
databaseInstance: openstack
glanceAPIs:
default:
Expand Down