-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from fmount/samples
Update glance samples to use OpenStackControlPlane
- Loading branch information
Showing
20 changed files
with
234 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
resources: | ||
- ../backend/multistore | ||
- ../backends/multistore | ||
|
||
patches: | ||
- target: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
# Inject inject_metadata config | ||
apiVersion: glance.openstack.org/v1beta1 | ||
kind: Glance | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: glance | ||
name: openstack | ||
spec: | ||
serviceUser: glance | ||
customServiceConfig: | | ||
[image_format] | ||
disk_formats=raw,iso | ||
glance: | ||
template: | ||
databaseInstance: openstack | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:swift | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
swift_store_create_container_on_put = True | ||
swift_store_auth_version = 3 | ||
swift_store_auth_address = {{ .KeystoneInternalURL }} | ||
swift_store_endpoint_type = internalURL | ||
swift_store_user = service:glance | ||
swift_store_key = {{ .ServicePassword }} | ||
[image_format] | ||
disk_formats=raw,iso | ||
glanceAPIs: | ||
default: | ||
replicas: 1 | ||
secret: osp-secret | ||
storage: | ||
storageRequest: 1G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
resources: | ||
- ../layout/base | ||
- ../backends/base/openstack | ||
|
||
patches: | ||
- path: ./disk_format.yaml | ||
- path: disk_format.yaml | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ resources: | |
|
||
patches: | ||
- path: image-cache.yaml | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 40 additions & 49 deletions
89
config/samples/import_plugins/image_decompression/image_decompression.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,46 @@ | ||
# Sample using Ceph as a glance backend with image decompression plugin | ||
# Requires a running Ceph cluster and its `/etc/ceph` files in secret `ceph-conf-files` | ||
# This can be achieved with the `ceph` target of `install_yamls` | ||
apiVersion: glance.openstack.org/v1beta1 | ||
kind: Glance | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: glance | ||
name: openstack | ||
spec: | ||
serviceUser: glance | ||
containerImage: quay.io/podified-antelope-centos9/openstack-glance-api:current-podified | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:rbd | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
rbd_store_ceph_conf = /etc/ceph/ceph.conf | ||
store_description = "RBD backend" | ||
rbd_store_pool = images | ||
rbd_store_user = openstack | ||
[image_import_opts] | ||
image_import_plugins = [image_decompression] | ||
databaseInstance: openstack | ||
databaseAccount: glance | ||
glanceAPI: | ||
preserveJobs: false | ||
replicas: 1 | ||
secret: osp-secret | ||
storage: | ||
storageClass: "" | ||
storageRequest: 1G | ||
extraMounts: | ||
- name: v1 | ||
region: r1 | ||
extraVol: | ||
- propagation: | ||
- Glance | ||
extraVolType: Ceph | ||
volumes: | ||
- name: ceph | ||
projected: | ||
sources: | ||
- secret: | ||
glance: | ||
template: | ||
databaseInstance: openstack | ||
serviceUser: glance | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:rbd | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
rbd_store_ceph_conf = /etc/ceph/ceph.conf | ||
store_description = "RBD backend" | ||
rbd_store_pool = images | ||
rbd_store_user = openstack | ||
[image_import_opts] | ||
image_import_plugins = [image_decompression] | ||
databaseAccount: glance | ||
glanceAPIs: | ||
default: | ||
preserveJobs: false | ||
replicas: 1 | ||
secret: osp-secret | ||
storage: | ||
storageClass: "" | ||
storageRequest: 1G | ||
extraMounts: | ||
- name: v1 | ||
region: r1 | ||
extraVol: | ||
- extraVolType: Ceph | ||
volumes: | ||
- name: ceph | ||
secret: | ||
name: ceph-conf-files | ||
- name: image-import-staging-workspace | ||
persistentVolumeClaim: | ||
claimName: image-import-staging-workspace | ||
readOnly: false | ||
mounts: | ||
- name: ceph | ||
mountPath: "/etc/ceph" | ||
readOnly: true | ||
- name: image-import-staging-workspace | ||
mountPath: /var/lib/glance/os_glance_staging_store/ | ||
readOnly: false | ||
mounts: | ||
- name: ceph | ||
mountPath: "/etc/ceph" | ||
readOnly: true |
11 changes: 0 additions & 11 deletions
11
config/samples/import_plugins/image_decompression/image_decompression_pvc.yaml
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
config/samples/import_plugins/image_decompression/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resources: | ||
- ../../backends/base/openstack | ||
|
||
patches: | ||
- path: image_decompression.yaml | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
39 changes: 29 additions & 10 deletions
39
config/samples/import_plugins/inject_metadata/inject_metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,32 @@ | ||
# Inject inject_metadata config | ||
apiVersion: glance.openstack.org/v1beta1 | ||
kind: Glance | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: glance | ||
name: openstack | ||
spec: | ||
serviceUser: glance | ||
customServiceConfig: | | ||
[image_import_opts] | ||
image_import_plugins = [inject_image_metadata] | ||
[inject_metadata_properties] | ||
ignore_user_roles = admin,user1 | ||
inject = "property1":"value1","property2":"value2" | ||
glance: | ||
template: | ||
databaseInstance: openstack | ||
customServiceConfig: | | ||
[DEFAULT] | ||
enabled_backends = default_backend:swift | ||
[glance_store] | ||
default_backend = default_backend | ||
[default_backend] | ||
swift_store_create_container_on_put = True | ||
swift_store_auth_version = 3 | ||
swift_store_auth_address = {{ .KeystoneInternalURL }} | ||
swift_store_endpoint_type = internalURL | ||
swift_store_user = service:glance | ||
swift_store_key = {{ .ServicePassword }} | ||
[image_import_opts] | ||
image_import_plugins = [inject_image_metadata] | ||
[inject_metadata_properties] | ||
ignore_user_roles = admin,user1 | ||
inject = "property1":"value1","property2":"value2" | ||
glanceAPIs: | ||
default: | ||
replicas: 1 | ||
secret: osp-secret | ||
storage: | ||
storageRequest: 1G |
5 changes: 3 additions & 2 deletions
5
config/samples/import_plugins/inject_metadata/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
resources: | ||
- ../../layout/base | ||
- ../../backends/base/openstack | ||
|
||
patches: | ||
- path: ./inject_metadata.yaml | ||
- path: inject_metadata.yaml | ||
|
||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: core.openstack.org/v1beta1 | ||
kind: OpenStackControlPlane | ||
metadata: | ||
name: openstack | ||
spec: | ||
glance: | ||
template: | ||
serviceUser: glance | ||
customServiceConfig: | | ||
[oslo_policy] | ||
policy_file=/etc/glance/policy.d/policy.yaml | ||
enforce_scope=true | ||
enforce_new_defaults=true | ||
databaseInstance: openstack | ||
databaseAccount: glance | ||
glanceAPIs: | ||
replicas: 1 | ||
secret: osp-secret | ||
storage: | ||
storageRequest: 10G | ||
extraMounts: | ||
- name: v1 | ||
region: r1 | ||
extraVol: | ||
- extraVolType: Policy | ||
volumes: | ||
- name: glance-policy | ||
configMap: | ||
name: glance-policy | ||
mounts: | ||
- name: glance-policy | ||
mountPath: /etc/glance/policy.d/ | ||
readOnly: true |
Oops, something went wrong.