~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/socialweb-computer-console

console.socialweb.computer: kcp, kubectl and ssh compiled to wasm in a browser tab with a terminal; a kcp fork

0
0
main
79 lines · 3.3 KB Raw History

description: Changes kcp has made to etcd storage paths.

etcd structure

kcp has made some changes to etcd storage paths to support logical clusters and APIExport identities. Please see below for details.

Built-in APIs

Built-in APIs, such as namespaces, configmaps, clusterroles, etc., use the following storage path structure:

/etcd prefix/API group name/API resource name/logical cluster name/[namespace, if applicable]/name

Let's break down the segments in the etcd path for this example ConfigMap instance:

/registry/core/configmaps/root/default/kube-root-ca.crt
Segment nameDescription
registryetcd prefix
coreAPI group name
configmapsAPI resource name
rootlogical cluster name
defaultnamespace
kube-root-ca.crtConfigMap name

Standard custom resource instances

Custom resource instances for a CustomResourceDefinition in a workspace use the following storage path structure:

/etcd prefix/API group name/API resource name/"customresources"/logical cluster name/[namespace, if applicable]/name

Let's break down the segments in the etcd path for this example APIBinding instance:

/registry/apis.kcp.io/apibindings/customresources/2cynbfy2m0wtjqcs/scheduling.kcp.io-1mc2w
Segment nameDescription
registryetcd prefix
apis.kcp.ioAPI group name
apibindingsAPI resource name
customresourceshard-coded (as opposed to an APIExport identity hash)
2cynbfy2m0wtjqcslogical cluster name
scheduling.kcp.io-1mc2wAPIBinding name

"Bound" custom resource instances

Custom resource instances for an API provided by an APIExport, bound by an APIBinding, use the following storage path structure:

/etcd prefix/API group name/API resource name/APIExport identity hash/logical cluster name/[namespace, if applicable]
/name

Let's break down the segments in the etcd path for this example Workspace instance:

/registry/tenancy.kcp.io/workspaces/cbf732f90c9b7eac67e3d8f8e4c22cf8de0e36acefab6bbab738a85535c0d4cf/root/compute
Segment nameDescription
registryetcd prefix
tenancy.kcp.ioAPI group name
workspacesAPI resource name
cbf732f90c9b7eac67e3d8f8e4c22cf8de0e36acefab6bbab738a85535c0d4cfAPIExport identity hash
rootlogical cluster name
computeWorkspace name