-
Notifications
You must be signed in to change notification settings - Fork 56
feat: Add documentation about busola in k8s and adjust k8s configs #3547
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
Changes from 17 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
f2b87c8
063ef28
a26faa2
d52a6c9
e646f99
5f2e4bc
95ecbe4
6036f88
2895c05
6b71bd6
1c2c190
d22af69
22c968a
baca096
b06c739
55fcd90
51d846e
25205d1
4183c33
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,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: | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ```shell | ||||||
| (cd resources && kustomize build base/ | kubectl apply -f- ) | ||||||
| ``` | ||||||
|
|
||||||
| To install Busola using specific environment configuration, set `ENVIRONMENT` shell environment variable and run: | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ```shell | ||||||
| (cd resources && kustomize build environments/${ENVIRONMENT} | kubectl apply -f- ) | ||||||
| ``` | ||||||
|
|
||||||
| ## Access Busola installed on Kubernetes | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ### Kubectl | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| The simplest method which always works is to use capabilities of `kubectl`. | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| ```shell | ||||||
| kubectl port-forward services/busola 3001:3001 | ||||||
| ``` | ||||||
|
|
||||||
| ### Busola installed on K3d | ||||||
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
|
||||||
| Prerequisites: | ||||||
|
|
||||||
| - K3d with installed Traefik, by default it's installed. | ||||||
|
||||||
| - K3d with installed Traefik, by default it's installed. | |
| - k3d with [Traefik](https://k3d.io/v5.6.0/usage/k3s/#traefik) (installed by default). |
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
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)
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
pbochynski marked this conversation as resolved.
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
dbadura marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
| 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.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.