apiVersion: v1
data:
  config.json: |
    {
        "command": "glance-registry",
        "config_files": [
            {
                "source": "/var/lib/kolla/config_files/glance-registry.conf",
                "dest": "/etc/glance/glance-registry.conf",
                "owner": "glance",
                "perm": "0600"
            },
            {
                "source": "/var/lib/kolla/config_files/policy.json",
                "dest": "/etc/glance/policy.json",
                "owner": "glance",
                "perm": "0600",
                "optional": true
            }
        ],
        "permissions": [
            {
                "path": "/var/log/kolla/glance",
                "owner": "glance:glance",
                "recurse": true
            }
        ]
    }
  glance-registry.conf: |+
    [DEFAULT]
    debug = True
    log_file = /var/log/kolla/glance/registry.log
    bind_host = 0.0.0.0
    bind_port = 9191
    workers = 1
    transport_url = rabbit://openstack:n8ZKhaSiHmBQgZTwJ8QsKJEkV2cbJnsyqUi6waMl@rabbitmq:5672

    [database]
    connection = mysql+pymysql://glance:sgkRfkjn1oh110NcLxwUYthPOBuHDHr6KkGN0QRP@mariadb/glance
    max_retries = -1

    [keystone_authtoken]
    auth_uri = http://keystone-public:5000/v3
    auth_url = http://keystone-admin:35357/v3
    auth_type = password
    project_domain_id = default
    user_domain_id = default
    project_name = service
    username = glance
    password = 3TL2Tfj1nZBuvV39I709mREyehixmHMYNJr0MVLN
    memcache_security_strategy = ENCRYPT
    memcache_secret_key = CW0S0iOgZqFMSplvMXn6A2cL6nZIBDGdAyIYjPX0
    memcache_servers = memcached

    [paste_deploy]
    flavor = keystone

    [oslo_messaging_notifications]
    driver = noop

kind: ConfigMap
metadata:
  name: glance-registry
