def create_service(*, name):
    """Create a Service resource for the Schema Registry.

    Parameters
    ----------
    name : `str`
        Name of the StrimziKafkaUser, which is also used as the name of the
        deployment.

    Returns
    -------
    service : `dict`
        The Service resource.
    """
    s = {
        'apiVersion': 'v1',
        'kind': 'Service',
        'metadata': {
            'name': name,
            'labels': {
                'name': name
            }
        },
        'spec': {
            'ports': [
                {
                    'name': 'schema-registry',
                    'port': 8081
                }
            ],
            'selector': {
                'app': name,
            }
        }
    }

    return s