Skip to content

Commit

Permalink
Switch glance store backend to swift
Browse files Browse the repository at this point in the history
This provides the options to move the glance store
to swift. We leave the default value to pvc so as
not to break existing deployments accidently. Howerver,
providing a override on the helm command to --storage=swift
will deploy a glance with swift backend.

These values should be overwritten in your region
specific secrets file to ensure no mistake.
  • Loading branch information
sulochan committed Jun 24, 2024
1 parent 76c9771 commit 00d0333
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion helm-configs/glance/glance-helm-overrides.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# radosgw, rbd, swift or pvc
storage: pvc # This should likely be set to swift or rbd in production
storage: swift # Use override to switch to pvc or rbd

labels:
api:
Expand Down Expand Up @@ -251,6 +251,9 @@ conf:
rbd_store_ceph_conf: /etc/ceph/ceph.conf
filesystem_store_datadir: /var/lib/glance/images
default_swift_reference: ref1
swift_auth_address: https://swift.cluster.local
swift_user: glance:glance-store
swift_password: override_from_your_secrets_files
swift_store_container: glance
swift_store_create_container_on_put: true
swift_store_config_file: /etc/glance/swift-store.conf
Expand Down Expand Up @@ -367,6 +370,11 @@ conf:
auth_address = {{ tuple "ceph_object_store" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
user = {{ .Values.endpoints.ceph_object_store.auth.glance.username }}:swift
key = {{ .Values.endpoints.ceph_object_store.auth.glance.password }}
{{- else if eq .Values.storage "swift" }}
auth_version = 1
auth_address = {{ .Values.conf.glance.glance_store.swift_auth_address }}
user = {{ .Values.conf.glance.glance_store.swift_user }}
key = {{ .Values.conf.glance.glance_store.swift_password }}
{{- else }}
user = {{ .Values.endpoints.identity.auth.glance.project_name }}:{{ .Values.endpoints.identity.auth.glance.username }}
key = {{ .Values.endpoints.identity.auth.glance.password }}
Expand Down

0 comments on commit 00d0333

Please sign in to comment.