use relative paths to work through kubectl proxy

This commit is contained in:
Henning Jacobs
2016-12-16 23:41:58 +01:00
parent 3997b5b90f
commit ca9184d35a
3 changed files with 20 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ What it is not:
Usage
=====
You can run the app locally:
.. code-block:: bash
$ pip3 install -r requirements.txt
@@ -36,6 +38,21 @@ Usage
Now direct your browser to http://localhost:8080
You can find example Kubernetes manifests for deployment in the ``deploy`` folder.
It should be as simple as:
.. code-block:: bash
$ kubectl apply -f deploy/deployment.yaml deploy/service.yaml
Afterwards you can open "kube-ops-view" via the kubectl proxy:
.. code-block:: bash
$ kubectl proxy
Now direct your browser to http://localhost:8001/api/v1/proxy/namespaces/default/services/kube-ops-view/
Supported Browsers
==================

View File

@@ -292,7 +292,7 @@ function update(clusters) {
}
function fetchData() {
fetch('/kubernetes-clusters')
fetch('kubernetes-clusters')
.then(function(response) {
return response.json()
})

View File

@@ -6,7 +6,7 @@
<style>* {padding: 0; margin: 0}</style>
</head>
<body>
<script src="/static/vendor/pixi.min.js"></script>
<script src="/static/app.js"></script>
<script src="static/vendor/pixi.min.js"></script>
<script src="static/app.js"></script>
</body>
</html>