// Module included in the following assemblies:
//
// assembly-managing-address-spaces.adoc

[id='ref-address-space-example-exports-{context}']
= Address space example exports

You can export your address space information using the following three export types:

* `ConfigMap`
* `Secret`
* `Service`

== `ConfigMap` and `Secret` type export examples

This example shows the format used by the `ConfigMap` export type. The format of the `Secret` export type uses the same keys as the `ConfigMap` export type, but the values are Base64-encoded.

[source,yaml,options="nowrap"]
----
service.host: messaging.svc
service.port.amqp: 5672
external.host: external.example.com
external.port: 5671
ca.crt: // PEM formatted CA
----

== `Service` type export example

This example shows the format used by the `Service` export type. 

[source,yaml,options="nowrap"]
----
  externalName:  messaging.svc
    ports:
    - name: amqp
      port: 5672
      protocol: TCP
      targetPort: 5672
----

