-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add documentation about busola in k8s and adjust k8s configs #3547
base: main
Are you sure you want to change the base?
Conversation
30debff
to
b19a45c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the instruction to deploy busola to local k3d cluster, but I failed to access this cluster from busola. Probably the latest image does not include all the changes required to work properly. I've seen also some errors to fetch localhost:3001/backend, even though my busola is hosted on port 80.
(cd resources && kubectl apply -f ingress/ingress.yaml) | ||
``` | ||
|
||
Go to `localhost` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What port? Provide a command to create k3d cluster with load balancer port mapping, e.g.
k3d cluster create -p "80:80@loadbalancer"
Otherwise, the port is not exposed in the host machine (at least on mac os)
|
||
```shell | ||
k3d kubeconfig get ${K3D_CLUSTER_NAME} > k3d-kubeconfig.yaml | ||
yq --inplace '.clusters[].cluster.server = "https://kubernetes.default.svc:443"' k3d-kubeconfig.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yq not mentioned before
I suppose the edited kubeconfig should be used in busola. Mention it.
@@ -178,6 +178,78 @@ For the information on how to run tests and configure them, go to the [`tests`]( | |||
docker run --rm -it -p 3001:3001 -v <path to your custom config>:/app/core-ui/environments/ --env ENVIRONMENT={your-env} --pid=host --name busola europe-docker.pkg.dev/kyma-project/prod/busola:latest | |||
``` | |||
|
|||
## Deploy Busola in Kubernetes Cluster | |||
|
|||
To install Busola on Kubernetes cluster run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To install Busola on Kubernetes cluster run: | |
To install Busola on the Kubernetes cluster, run: |
@@ -178,6 +178,78 @@ For the information on how to run tests and configure them, go to the [`tests`]( | |||
docker run --rm -it -p 3001:3001 -v <path to your custom config>:/app/core-ui/environments/ --env ENVIRONMENT={your-env} --pid=host --name busola europe-docker.pkg.dev/kyma-project/prod/busola:latest | |||
``` | |||
|
|||
## Deploy Busola in Kubernetes Cluster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Deploy Busola in Kubernetes Cluster | |
## Deploy Busola on the Kubernetes Cluster |
(cd resources && kustomize build base/ | kubectl apply -f- ) | ||
``` | ||
|
||
To install Busola using specific environment configuration, set `ENVIRONMENT` shell environment variable and run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To install Busola using specific environment configuration, set `ENVIRONMENT` shell environment variable and run: | |
To install Busola using a specific environment configuration, set the `ENVIRONMENT` shell environment variable and run: |
(cd resources && kustomize build environments/${ENVIRONMENT} | kubectl apply -f- ) | ||
``` | ||
|
||
## Access Busola installed on Kubernetes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## Access Busola installed on Kubernetes | |
## Access Busola Installed on Kubernetes |
|
||
## Access Busola installed on Kubernetes | ||
|
||
### Kubectl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Kubectl | |
### kubectl |
|
||
Prerequisites: | ||
|
||
- Sidecar Proxy injection enabled, see [Kyma docs](https://kyma-project.io/#/istio/user/tutorials/01-40-enable-sidecar-injection?id=enable-istio-sidecar-proxy-injection), how to enable it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Sidecar Proxy injection enabled, see [Kyma docs](https://kyma-project.io/#/istio/user/tutorials/01-40-enable-sidecar-injection?id=enable-istio-sidecar-proxy-injection), how to enable it. | |
- Sidecar Proxy injection enabled, see [Enable Istio Sidecar Proxy Injection](https://kyma-project.io/#/istio/user/tutorials/01-40-enable-sidecar-injection?id=enable-istio-sidecar-proxy-injection). |
Prerequisites: | ||
|
||
- Sidecar Proxy injection enabled, see [Kyma docs](https://kyma-project.io/#/istio/user/tutorials/01-40-enable-sidecar-injection?id=enable-istio-sidecar-proxy-injection), how to enable it. | ||
- Api gateway module installed, see [install docs](https://kyma-project.io/#/02-get-started/01-quick-install) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Api gateway module installed, see [install docs](https://kyma-project.io/#/02-get-started/01-quick-install) | |
- The API Gateway module installed, see [Quick Install](https://kyma-project.io/#/02-get-started/01-quick-install) |
- Sidecar Proxy injection enabled, see [Kyma docs](https://kyma-project.io/#/istio/user/tutorials/01-40-enable-sidecar-injection?id=enable-istio-sidecar-proxy-injection), how to enable it. | ||
- Api gateway module installed, see [install docs](https://kyma-project.io/#/02-get-started/01-quick-install) | ||
|
||
Install Istio needed resources by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install Istio needed resources by running: | |
1. Install the Istio required resources: |
(cd resources && kubectl apply -k istio) | ||
``` | ||
|
||
To get Busola address run: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To get Busola address run: | |
2. To get the Busola address, run: |
kubectl get virtualservices.networking.istio.io | ||
``` | ||
|
||
and find `busola-***` virtual service. Under `HOSTS` there is address to access Busola page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and find `busola-***` virtual service. Under `HOSTS` there is address to access Busola page. | |
and find the `busola-***` virtual service. Under `HOSTS,` there is an address where you can access the Busola page. |
Description
Changes proposed in this pull request:
Related issue(s)
Definition of done
backlog#4567
#3375