From 964cadc3b3dcad97f4397d512812712b668b2ace Mon Sep 17 00:00:00 2001 From: Henning Jacobs Date: Thu, 22 Dec 2016 15:52:03 +0100 Subject: [PATCH] how to configure --- README.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.rst b/README.rst index b6eaf65..aea8293 100644 --- a/README.rst +++ b/README.rst @@ -79,11 +79,25 @@ You can also run the latest Docker image directly: $ docker run -it -p 8080:8080 -e MOCK=true hjacobs/kube-ops-view +Multiple Clusters +================= + +Multiple clusters are supported by passing a list of API server URLs in the ``CLUSTERS`` environment variable. +These can either be unprotected ``localhost`` URLs or OAuth 2 protected API endpoints. +Note that authentication via client-certificates is currently not supported! + +The needed OAuth credentials (``Bearer`` access token) must be provided via a file ``${CREDENTIALS_DIR}/read-only-token``. + + Configuration ============= The following environment variables are supported: +``AUTHORIZE_URL`` + Optional OAuth 2 authorization endpoint URL for protecting the UI. +``ACCESS_TOKEN_URL`` + Optional token endpoint URL for the OAuth 2 Authorization Code Grant flow. ``CLUSTERS`` Comma separated list of Kubernetes API server URLs. It defaults to ``http://localhost:8001/`` (default endpoint of ``kubectl proxy``). ``CREDENTIALS_DIR``