This API server served as initial prototype for my GSoC Project—Storage API for Aggregated API Server, but it was decided to use CRDs instead. The new controller can be found in the xmudrii/etcdproxy-controller
repository.
Implements: https://groups.google.com/d/msg/kubernetes-sig-api-machinery/rHEoQ8cgYwk/iglsNeBwCgAJ
It provides an API for handling etcd
endpoints.
This API server provides the implementation for exposing namespace-proxied etcd
server as described in implementation.
HEAD of this repo will match HEAD of k8s.io/apiserver, k8s.io/apimachinery, and k8s.io/client-go.
Steps for running the API server is similar to steps for running sample-apiserver
, so check it out for running API server.
Once API server is running, you can use the following command to list all etcd
servers:
http --verify=no --cert client.crt --cert-key client.key \
https://localhost:8443/apis/etcdstorage.k8s.io/v1alpha1/namespaces/default/etcdstorages
To create an etcdstorage
, you can use the following command:
http --verify no -j --cert-key client.key --cert client.crt https://localhost:8443/apis/etcdstorage.k8s.io/v1alpha1/namespaces/default/flunders < <(python -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin), sys.stdout, indent=4)' < artifacts/etcdstorages/01-etcdstorage.yml)