You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: input/kube-cli/service-exposure.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
<aid="kube-exposing-services-cli"></a>
1
2
# Exposing services on the application network using the CLI
2
3
3
4
After creating an application network by linking sites, you can expose services from one site using connectors and consume those services on other sites using listeners.
@@ -6,6 +7,8 @@ For example, if you create a connector with the routing key `backend`, you need
6
7
7
8
This section assumes you have created and linked at least two sites.
8
9
10
+
<aid="kube-creating-connector-cli"></a>
11
+
<!-- Creating a connector on Kubernetes using the CLI -->
9
12
## Creating a connector using the CLI
10
13
11
14
A connector binds a local workload to listeners in remote sites.
@@ -47,7 +50,8 @@ For more information about connectors see [Connector concept][connector]
47
50
48
51
There are many options to consider when creating connectors using the CLI, see [CLI Reference][cli-ref], including *frequently used* options.
49
52
50
-
53
+
<aid="kube-creating-listener-cli"></a>
54
+
<!-- Creating a listener on Kubernetes using the CLI -->
51
55
## Creating a listener using the CLI
52
56
53
57
A listener binds a local connection endpoint to connectors in remote sites.
Copy file name to clipboardExpand all lines: input/kube-cli/site-linking.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
+
<aid="kube-linking-cli"></a>
1
2
# Linking sites on Kubernetes using the Skupper CLI
2
3
3
4
Using the Skupper command-line interface (CLI) allows you to create links between sites.
4
5
The link direction is not significant, and is typically determined by ease of connectivity. For example, if east is behind a firewall, linking from east to west is the easiest option.
5
6
6
7
Once sites are linked, services can be exposed and consumed across the application network without the need to open ports or manage inter-site connectivity.
7
8
9
+
<aid="kube-token-cli"></a>
8
10
## Linking sites using a token
9
11
10
12
A token provides a secure method to link sites.
@@ -76,6 +78,7 @@ To link sites, you create a token on one site and redeem that token on the other
76
78
77
79
There are many options to consider when linking sites using the CLI, see [CLI Reference][cli-ref], including *frequently used* options.
78
80
81
+
<aid="kube-link-cli"></a>
79
82
## Linking sites using a `link` resource
80
83
81
84
An alternative approach to linking sites using tokens is to create a `link` resource YAML file using the CLI, and to apply that resource to another site.
Copy file name to clipboardExpand all lines: input/kube-yaml/service-exposure.md
+86-1Lines changed: 86 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
<aid="kube-exposing-services-yaml"></a>
1
2
# Exposing services on the application network using YAML
2
3
3
4
After creating an application network by linking sites, you can expose services from one site using connectors and consume those services on other sites using listeners.
@@ -6,6 +7,8 @@ For example, if you create a connector with the routing key `backend`, you need
6
7
7
8
This section assumes you have created and linked at least two sites.
8
9
10
+
<aid="kube-creating-connector-yaml"></a>
11
+
<!-- Creating a connector on Kubernetes using YAML -->
9
12
## Creating a connector using YAML
10
13
11
14
A connector binds a local workload to listeners in remote sites.
@@ -60,7 +63,8 @@ For more information about connectors see [Connector concept][connector]
60
63
61
64
There are many options to consider when creating connectors using YAML, see [CLI Reference][cli-ref], including *frequently used* options.
62
65
63
-
66
+
<a id="kube-creating-listener-yaml"></a>
67
+
<!-- Creating a listener on Kubernetes using YAML -->
64
68
## Creating a listener using YAML
65
69
66
70
A listener binds a local connection endpoint to connectors in remote sites.
@@ -111,5 +115,86 @@ Listeners and connectors are matched using routing keys.
111
115
112
116
There are many options to consider when creating connectors using YAML, see [CLI Reference][cli-ref], including *frequently used* options.
113
117
118
+
119
+
<a id="kube-creating-attachedconnector-yaml"></a>
120
+
## Creating a connector for a different namespace using YAML
121
+
122
+
A connector binds a local workload to listeners in remote sites.
123
+
124
+
If you create a site in one namespace and need to expose a service in a different namespace, use this procedure to create an *attached connector* in the other namespace and an *AttachedConnectorBinding* in the site namespace.
125
+
126
+
* An attached connector is a connector in a peer namespace, that is, not the site namespace.
127
+
* The AttachedConnectorBinding is a binding to an attached connector in a peer namespace and is created in the site namespace.
128
+
129
+
**Procedure**
130
+
131
+
1. Create a workload that you want to expose on the network in a non-site namespace, for example:
0 commit comments