sharded-test-server

command
v0.26.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 36 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

sharded-test-server starts the kcp-front-proxy and one or more (in the future) kcp shard. It also sets up the required certificates and keys for the front-proxy to connect to the shards:

     ┌────────────────┐ ┌────────────────┐ ┌────────────────┐
     │                │ │                │ │                │ All accept .kcp/client-ca.crt client certs.
     │ Root shard     │ │ Shard 1        │ │ Shard 2        │ All accept .kcp/requestheader.crt requests with user/group headers.
     │                │ │                │ │                │ All use .kcp/serving-ca.crt compatible serving certs.
     │ .kcp-0/kcp.log │ │ .kcp-1/kcp.log │ │ .kcp-2/kcp.log │
     │                │ │                │ │                │
     └────────────────┘ └────────────────┘ └────────────────┘
            ▲ ▲                   ▲               ▲
    Watches │ │ Redirects traffic │  ┌────────────┘
    shards  │ │ to correct shard  │  │
            │ └─────────┐         │  │
            │           │.kcp-front-proxy/requestheader.crt/key
            │        ┌──┴──────────────┐
            └────────┤                 │
.kcp/root.kubeconfig │                 │
                     │ kcp-front-proxy │
                     │                 │
                     │                 │
                     └─────────────────┘
                              ▲
        .kcp/admin.kubeconfig │
                              │
                     e2e test or kubectl

Invocation: cmd/sharded-test-server --v=3 --proxy-v=4 --shard-v=5

It will create generic files in .kcp, proxy files in .kcp-front-proxy and shard specific files in .kcp-0, .kcp-1, .kcp-2. The usual .kcp/admin.kubeconfig will direct to the front-proxy. The individual shard .kcp/admin.kubeconfig will direct to the shards.

Directories

Path Synopsis
third_party
library-go/crypto
this is copied from https://github.com/openshift/library-go/tree/master/pkg/crypto.
this is copied from https://github.com/openshift/library-go/tree/master/pkg/crypto.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL