Skupper CRD: sites-skupper-io

Source: human/skupper/config/crd/bases/skupper_site_crd.yaml

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: sites.skupper.io
spec:
  group: skupper.io
  versions:
    - name: v2alpha1
      served: true
      storage: true
      schema:
        openAPIV3Schema:
          description: |-
            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.
          type: object
          properties:
            spec:
              type: object
              properties:
                serviceAccount:
                  description: |-
                    Advanced. The name of the Kubernetes service account under
                    which to run the Skupper router. A service account is
                    generated if none is specified.
                  type: string
                linkAccess:
                  description: |-
                    Configure external access for links from remote sites. When
                    set, implies a RouterAccess resource with accessType set
                    according to the linkAccess value.
 
                    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. Choices include:
                    - `none`: No linking to this site is enabled.
                    - `default`: Use the default link access for the current platform. For OpenShift, the default is `route`. For other Kubernetes flavors, the default is `loadbalancer`.
                    - `route`: Use an OpenShift route.
                    - `loadbalancer`: Use a Kubernetes load balancer.
                    - `ingress` / `ingress-nginx`: When enabled on the controller, use a Kubernetes Ingress. Use `ingress` for generic controllers; `ingress-nginx` adds NGINX-specific TLS annotations. Set `ingressClassName` via RouterAccess `spec.settings` or controller `SKUPPER_INGRESS_CLASS_NAME`.
                  type: string
                defaultIssuer:
                  description: |-
                    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. Defaults to `skupper-site-ca`
                  type: string
                ha:
                  type: boolean
                  description: |-
                    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.
 
                    By default, Pod anti-affinity will be configured on the router
                    Deployments when HA is enabled. To overwrite this behavior
                    see the `disable-anti-affinity` Site setting.
                edge:
                  type: boolean
                  description: |-
                    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.
                settings:
                  description: |-
                    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 router worker threads. Minimum 2.
                    - `routerLogging`: Set the number of router logging level. Options are "info", "warning", "error".
                    - `disable-anti-affinity`: Set to "true" in order to prevent skupper from specifying router pod affinity.
                    - `size`: The desired site sizing profile to use for constraining pod resources. Corresponds to a ConfigMap with matching `skupper.io/site-sizing` label.
                    - `tls-prior-valid-revisions`: Set the number of revisions to TLS Secrets backing Site Link connections that are permissible to hold open to preserve established service connections. An unsigned integer defaults to 1. Set to 0 to immediately disrupt connections secured with old TLS configurations.
                    - `ingressClassName`: When using `ingress` or `ingress-nginx` link access, sets the Kubernetes IngressClass for Skupper-managed Ingress resources (also copied to RouterAccess). Overrides controller `SKUPPER_INGRESS_CLASS_NAME`. Use empty string to clear a previously set class.
                  type: object
                  additionalProperties:
                    type: string
            status:
              type: object
              properties:
                defaultIssuer:
                  description: |-
                    The name of the Kubernetes secret containing the active default signing CA.
                  type: string
                status:
                  description: |-
                    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.
                  type: string
                message:
                  description: |-
                    A human-readable status message. Error messages are reported here.
                  type: string
                controller:
                  type: object
                  properties:
                    name:
                      type: string
                    namespace:
                      type: string
                    version:
                      type: string
                conditions:
                  type: array
                  description: |-
                    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.
                  items:
                    type: object
                    properties:
                      lastTransitionTime:
                        format: date-time
                        type: string
                      message:
                        maxLength: 32768
                        type: string
                      observedGeneration:
                        format: int64
                        minimum: 0
                        type: integer
                      reason:
                        maxLength: 1024
                        minLength: 1
                        pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
                        type: string
                      status:
                        enum:
                        - "True"
                        - "False"
                        - Unknown
                        type: string
                      type:
                        maxLength: 316
                        pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
                        type: string
                    required:
                    - lastTransitionTime
                    - message
                    - reason
                    - status
                    - type
                endpoints:
                  description: |-
                    An array of connection endpoints. Each item has a name, host, port, and group. These include connection endpoints for link access.
                  type: array
                  items:
                    type: object
                    properties:
                      host:
                        type: string
                      port:
                        type: string
                      name:
                        type: string
                      group:
                        type: string
                sitesInNetwork:
                  type: integer
                network:
                  type: array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                      name:
                        type: string
                      namespace:
                        type: string
                      platform:
                        type: string
                      version:
                        type: string
                      links:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            remoteSiteId:
                              type: string
                            remoteSiteName:
                              type: string
                            operational:
                              type: boolean
                      services:
                        type: array
                        items:
                          type: object
                          properties:
                            routingKey:
                              type: string
                            connectors:
                              type: array
                              items:
                                type: string
                            listeners:
                              type: array
                              items:
                                type: string
      subresources:
        status: {}
      additionalPrinterColumns:
      - name: Status
        type: string
        description: The status of the site
        jsonPath: .status.status
      - name: Sites In Network
        type: integer
        description: The number of sites in the network
        jsonPath: .status.sitesInNetwork
      - name: Message
        type: string
        description: Any human readable message relevant to the site
        jsonPath: .status.message
  scope: Namespaced
  names:
    plural: sites
    singular: site
    kind: Site
    shortNames:
    - st