Site resource¶
A site is a place on the network where application workloads are running. Sites are joined by links.
The Site resource is the basis for site configuration. It is the parent of all Skupper resources in its namespace. There can be only one active Site resource per namespace.
Examples¶
A minimal site:
A site configured to accept links:
apiVersion: skupper.io/v2alpha1
kind: Site
metadata:
name: west
namespace: hello-world-west
spec:
linkAccess: default
Metadata properties¶
name
string
required
The name of the resource.
| See also | Kubernetes object names |
|---|
namespace
string
The namespace of the resource.
| See also | Platform concept, Kubernetes namespaces |
|---|
Spec properties¶
linkAccess
string
frequently used
Configure external access for links from remote sites.
Sites and links are the basis for creating application
networks. In a simple two-site network, at least one of
the sites must have link access enabled.
| Default |
| ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Choices |
| ||||||||
| Updatable | True | ||||||||
| See also | Link concept |
ha
boolean
Configure the site for high availability (HA). HA sites
have two active routers.
Note that Skupper routers are stateless, and they restart
after failure. This already provides a high level of
availability. Enabling HA goes further and reduces the
window of downtime caused by restarts.
| Default | False |
|---|---|
| Updatable | True |
defaultIssuer
string
advanced
The name of a Kubernetes secret containing the signing CA
used to generate a certificate from a token. A secret is
generated if none is specified.
This issuer is used by AccessGrant and RouterAccess if a
specific issuer is not set.
| Default |
|
|---|---|
| Updatable | True |
| See also | Kubernetes TLS secrets |
edge
boolean
advanced
Configure the site to operate in edge mode. Edge sites
cannot accept links from remote sites.
Edge mode can help you scale your network to large numbers
of sites. However, for networks with 16 or fewer sites,
there is little benefit.
Currently, edge sites cannot also have HA enabled.
| Default | False |
|---|
serviceAccount
string
advanced
The name of the Kubernetes service account under which to run
the Skupper router. A service account is generated if none is
specified.
| Default | Generated |
|---|---|
| See also | Kubernetes service accounts |
settings
object
advanced
A map containing additional settings. Each map entry has a
string name and a string value.
**Note:** In general, we recommend not changing settings from
their default values.
- `routerDataConnections`: Set the number of data
connections the router uses when linking to other
routers.
Default: *Computed based on the number of router worker threads. Minimum 2.* - `routerLogging`: Set the router logging level.
Default: `info`. Choices: `info`, `warning`, `error`.
Default: *Computed based on the number of router worker threads. Minimum 2.* - `routerLogging`: Set the router logging level.
Default: `info`. Choices: `info`, `warning`, `error`.
Status properties¶
status
string
The current state of the resource.
- `Pending`: The resource is being processed.
- `Error`: There was an error processing the resource. See
`message` for more information.
- `Ready`: The resource is ready to use.
message
string
A human-readable status message. Error messages are reported
here.
conditions
array
advanced
A set of named conditions describing the current state of the
resource.
- `Configured`: The output resources for this resource have
been created.
- `Running`: There is at least one router pod running.
- `Resolved`: The hostname or IP address for link access is
available.
- `Ready`: The site is ready for use. All other conditions
are true.
| See also | Kubernetes conditions |
|---|
defaultIssuer
string
advanced
The name of the Kubernetes secret containing the active
default signing CA.
| See also | Kubernetes TLS secrets |
|---|
endpoints
array
advanced
An array of connection endpoints. Each item has a name, host,
port, and group.
These include connection endpoints for link access.
| See also | Link concept |
|---|
network
array
advanced
sitesInNetwork
integer
advanced
| See also | Network concept |
|---|