-
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?
Changes from all commits
8d7152d
4fc041e
c34619e
13f3721
c8ae781
6e305b4
b79c481
3f42b81
7875c80
a995107
b5e436e
bfb8321
fcfde0b
575accc
c342b15
b1c5fc6
b78c98d
18dc70e
25ea0c8
2c5c145
a3da831
8c6a293
b0b31f3
0ce0f6c
b4819a3
2606242
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,84 @@ 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 the Kubernetes Cluster | ||
|
||
To install Busola in the Kubernetes cluster, run: | ||
|
||
```shell | ||
(cd resources && kustomize build base/ | kubectl apply -f- ) | ||
``` | ||
|
||
To install Busola using a specific environment configuration, set the `ENVIRONMENT` shell environment variable and run: | ||
|
||
```shell | ||
(cd resources && kustomize build environments/${ENVIRONMENT} | kubectl apply -f- ) | ||
``` | ||
|
||
## Access Busola Installed on Kubernetes | ||
|
||
### kubectl | ||
|
||
The simplest method that always works is to use the capabilities of kubectl. | ||
|
||
```shell | ||
kubectl port-forward services/busola 3001:3001 | ||
``` | ||
|
||
### k3d | ||
|
||
Prerequisites: | ||
|
||
- K3d with exposed loadbalancer on port 80. | ||
> **TIP:** To create K3d with exposed load balancer run: `k3d cluster create -p "80:80@loadbalancer"`. | ||
> See [Exposing Services](https://k3d.io/v5.6.3/usage/exposing_services/) for more details. | ||
1. Install Ingress resources: | ||
|
||
```shell | ||
(cd resources && kubectl apply -f ingress/ingress.yaml) | ||
``` | ||
|
||
2. Go to `localhost` | ||
|
||
#### Connect to the k3d Cluster With Busola Installed. | ||
|
||
To connect to the same k3d cluster with Busola installed, download kubeconfig and change the cluster server address to `https://kubernetes.default.svc:443`. | ||
|
||
Using shell. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To do what? Maybe we don't need this sentence. |
||
|
||
Prerequisites: | ||
|
||
- [yq](https://mikefarah.gitbook.io/yq) | ||
|
||
Set the `K3D_CLUSTER_NAME` shell environment variable to the name of your cluster and run: | ||
|
||
```shell | ||
k3d kubeconfig get ${K3D_CLUSTER_NAME} > k3d-kubeconfig.yaml | ||
yq --inplace '.clusters[].cluster.server = "https://kubernetes.default.svc:443"' k3d-kubeconfig.yaml | ||
pbochynski marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
### Kubernetes Cluster with Istio Installed | ||
|
||
Prerequisites: | ||
|
||
- 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). | ||
- The API Gateway module installed, see [Quick Install](https://kyma-project.io/#/02-get-started/01-quick-install) | ||
|
||
1. Install the Istio required resources: | ||
|
||
```shell | ||
(cd resources && kubectl apply -k istio) | ||
``` | ||
|
||
2. To get the Busola address, run: | ||
|
||
```shell | ||
kubectl get virtualservices.networking.istio.io | ||
``` | ||
|
||
and find the `busola-***` virtual service. Under `HOSTS,` there is an address where you can access the Busola page. | ||
|
||
## Troubleshooting | ||
|
||
> **TIP:** To solve most of the problems with Busola development, clear the browser cache or do a hard refresh of the website. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
APP_NAME = busola-backend | ||
IMG_NAME := $(DOCKER_PUSH_REPOSITORY)$(DOCKER_PUSH_DIRECTORY)/$(APP_NAME) | ||
TAG := $(DOCKER_TAG) | ||
|
||
|
||
build-image: | ||
docker build -t $(APP_NAME) -f Dockerfile . | ||
push-image: | ||
docker tag $(APP_NAME):latest $(IMG_NAME):$(TAG) | ||
docker push $(IMG_NAME):$(TAG) | ||
|
||
release: build-image push-image | ||
##@ General | ||
.DEFAULT_GOAL=help | ||
.PHONY: help | ||
.PHONY: help | ||
help: ## Display this help. | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: web | ||
name: busola | ||
labels: | ||
app: busola | ||
spec: | ||
ports: | ||
- port: 8080 | ||
name: http-web | ||
targetPort: 8080 | ||
- port: 3001 | ||
name: http-busola | ||
targetPort: 3001 | ||
selector: | ||
app: busola |
This file was deleted.
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.
Now that I think of it. What does it mean?
Go to the localhost folder? Something else?