use relative paths to work through kubectl proxy
This commit is contained in:
17
README.rst
17
README.rst
@@ -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
|
||||
==================
|
||||
|
||||
@@ -292,7 +292,7 @@ function update(clusters) {
|
||||
}
|
||||
|
||||
function fetchData() {
|
||||
fetch('/kubernetes-clusters')
|
||||
fetch('kubernetes-clusters')
|
||||
.then(function(response) {
|
||||
return response.json()
|
||||
})
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user