Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions input/kube-yaml/service-exposure.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ If you create a site in one namespace and need to expose a service in a differen

1. Create a workload that you want to expose on the network in a non-site namespace, for example:
```bash
kubectl create deployment backend --image quay.io/skupper/hello-world-backend --replicas 3
kubectl create deployment backend --image quay.io/skupper/hello-world-backend --replicas 3 --namespace attached
```

2. Create an AttachedConnector resource YAML file in the same namespace:
Expand All @@ -159,14 +159,13 @@ If you create a site in one namespace and need to expose a service in a differen
3. Create an AttachedConnectorBinding resource YAML file in the site namespace:
```yaml
apiVersion: skupper.io/v2alpha1
kind: AttachedConnector
kind: AttachedConnectorBinding
metadata:
name: backend
namespace: attached
name: backend
namespace: east
spec:
siteNamespace: skupper
selector: app=backend
port: 8080
connectorNamespace: attached
routingKey: backend
```

To create the AttachedConnectorBinding resource:
Expand All @@ -179,7 +178,7 @@ If you create a site in one namespace and need to expose a service in a differen



3. Check the AttachedConnectorBinding status from the context of the site namespace:
4. Check the AttachedConnectorBinding status from the context of the site namespace:
```bash
kubectl get AttachedConnectorBinding
```
Expand All @@ -190,9 +189,6 @@ If you create a site in one namespace and need to expose a service in a differen
NAME ROUTING KEY CONNECTOR NAMESPACE STATUS HAS MATCHING LISTENER
backend backend attached Ready true
```
**📌 NOTE**
By default, the routing key name is set to the name of the connector.
If you want to use a custom routing key, set the `--routing-key` to your custom name.

There are many options to consider when creating connectors using YAML, see [Connector resource][connector-resource].

Expand Down