From 2df6547c8abf277afa6f71afc36d2b3ebb41101e Mon Sep 17 00:00:00 2001
From: Paul Wright Specifying link cost
For example, in a two site network linked with a high cost with servers and clients on both sites, you can see that a client is served by the local servers while a local server is available.
After creating a service network, exposed services can communicate across that network.
The skupper
CLI has two options for exposing services that already exist in a namespace:
service create
and service bind
is a more flexible method of exposing services, for example, if you have multiple services for a deployment.
See Exposing complex services on the service network for instructions.This section describes how services can be enabled for a service network for simple use cases.
Create a deployment, some pods, or a service in one of your sites, for example:
@@ -290,7 +290,7 @@📌 NOTE
If you do not specify ports, skupper
uses the containerPort
value of the deployment.
This section describes how services can be enabled for a service network for more complex use cases.
Create a deployment, some pods, or a service in one of your sites, for example:
@@ -324,7 +324,7 @@This section shows how to expose a service from a namespace where Skupper is not deployed.
Skupper allows you expose Kubernetes services from other namespaces for any site. However, if you want to expose workloads, for example deployments, you must create a site as described in this section.
@@ -363,7 +363,7 @@After creating a service network, you can expose services from a local machine on the service network.
For example, if you run a database on a server in your data center, you can deploy a front end in a cluster that can access the data as if the database was running in the cluster.
This section shows how to expose a single service running locally on a service network.
The URL field shows the underlying communication and can be ignored.
-This section shows more advanced usage of skupper gateway.
Create a Skupper gateway:
@@ -471,7 +471,7 @@If you have access to a cluster from one machine but want to create a gateway to the service network from a different machine, you can create the gateway definition bundle on the first machine and later apply that definition bundle on a second machine as described in this procedure. For example, if you want to expose a local database service to the service network, but you never want to access the cluster from the database server, you can use this procedure to create the definition bundle and apply it on the database server.
📌 NOTE
If you need to change the gateway definition, for example to change port, you need to remove the existing gateway and repeat this procedure from the start to redefine the gateway.
The Creating a gateway and applying it on a different machine describes how to create a gateway to apply on a separate machine using a gateway definition YAML file.
The following are valid entries in a gateway definition YAML file.
5672
.Skupper includes a command to allow you report all the sites and the services available on a service network.
Skupper provides default, built-in security that scales across clusters and clouds. This section describes additional security you can configure.
See Securing a service network using policies for information about creating granular policies for each cluster.
-By default, if you expose a service on the service network, that service is also accessible from other namespaces in the cluster.
You can avoid this situation when creating a site using the --create-network-policy
option.
You can now expose services on the service network and those services are not accessible from other namespaces in the cluster.
-By default, the traffic between sites is encrypted, however the traffic between the service pod and the router pod is not encrypted. For services exposed as TCP or HTTP2, the traffic between the pod and the router pod can be encrypted using TLS.
Test calling the service from a TLS enabled frontend.
Skupper supports the following protocols for your service network:
For a full list of options, see the Skupper Kubernetes CLI reference and Skupper Podman CLI reference documentation.