-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perforator][docs] add tutorial for deploying perforator in Kubernetes
commit_hash:1d24d3fdcea67316ea030f65c29f77247bbdb2e4
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Perforator Helm Chart | ||
In this tutorial we will deploy Perforator on a Kubernetes cluster via the Helm package manager without additional database setup. | ||
|
||
{% note warning %} | ||
|
||
This setup is intended solely for demonstration. | ||
There is no guarantee for compatibility with older versions of the chart. | ||
Please do not use it in production environments. | ||
|
||
{% endnote %} | ||
|
||
## Prerequisites | ||
|
||
- Kubernetes cluster | ||
- Helm 3+ | ||
|
||
## Adding Helm Repository | ||
|
||
``` | ||
helm repo add perforator https://helm.perforator.tech | ||
helm repo update | ||
``` | ||
|
||
## Installing Helm Chart | ||
|
||
Create file `my-values.yaml` with values: | ||
|
||
my-values.yaml example | ||
```yaml | ||
databases: | ||
postgresql: | ||
migrations: | ||
enabled: true | ||
db: "perforator" | ||
user: "perforator" | ||
password: "perforator" | ||
clickhouse: | ||
migrations: | ||
enabled: true | ||
insecure: true | ||
db: "perforator" | ||
user: "perforator" | ||
password: "perforator" | ||
s3: | ||
buckets: | ||
profiles: "perforator-profile" | ||
binaries: "perforator-binary" | ||
taskResults: "perforator-task-results" | ||
binariesGSYM: "perforator-binary-gsym" | ||
insecure: true | ||
force_path_style: true | ||
accessKey: "perforator" | ||
secretKey: "perforator" | ||
|
||
proxy: | ||
url_prefix: "http://localhost:8080/static/results/" | ||
|
||
testing: | ||
enableTestingDatabases: true | ||
``` | ||
Use created values to install chart: | ||
```console | ||
helm install perforator-release -n perforator perforator/perforator -f my-values.yaml --create-namespace | ||
``` | ||
|
||
## Connecting to Perforator UI | ||
|
||
To access the Perforator UI, configure port forwarding to the local machine: | ||
|
||
```console | ||
kubectl port-forward svc/perforator-release-perforator-web-service -n perforator 8080:80 | ||
``` | ||
Then open `http://localhost:8080` in your browser | ||
|
||
## Uninstalling Helm Chart | ||
|
||
```console | ||
helm uninstall perforator-release -n perforator | ||
``` |