在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):salesforce/sloop开源软件地址(OpenSource Url):https://github.com/salesforce/sloop开源编程语言(OpenSource Language):Go 88.8%开源软件介绍(OpenSource Introduction):Sloop - Kubernetes History VisualizationSloop monitors Kubernetes, recording histories of events and resource state changes and providing visualizations to aid in debugging past events. Key features:
ScreenshotsArchitecture OverviewInstallSloop can be installed using any of these options: Helm ChartUsers can install sloop by using helm chart now, for instructions refer helm readme Precompiled Binaries
Build from SourceBuilding Sloop from source needs a working Go environment with version 1.13 or greater installed. Clone the sloop repository and build using mkdir -p $GOPATH/src/github.com/salesforce
cd $GOPATH/src/github.com/salesforce
git clone https://github.com/salesforce/sloop.git
cd sloop
go env -w GO111MODULE=auto
make
$GOPATH/bin/sloop When complete, you should have a running Sloop version accessing the current context from your kubeConfig. Just point your browser at http://localhost:8080/ Other makefile targets:
Local Docker RunTo run from Docker you need to host mount your kubeconfig: make docker-snapshot
docker run --rm -it -p 8080:8080 -v ~/.kube/:/kube/ -e KUBECONFIG=/kube/config sloop In this mode, data is written to a memory-backed volume and is discarded after each run. To preserve the data, you can host-mount /data with something like Updating webfiles folderTo reflect any changes to webserver/webfiles, run the following command on terminal while within the webserver directory before submitting a pr: go-bindata -pkg webserver -o bindata.go webfiles/ This will update the bindata folder with your changes to any html, css or javascript files within the directory. Local Docker Run and connecting to EKSThis is very similar to above but abstracts running docker with AWS credentials for connecting to EKS make docker
export AWS_ACCESS_KEY_ID=<access_key_id> AWS_SECRET_ACCESS_KEY=<secret_access_key> AWS_SESSION_TOKEN=<session_token>
./providers/aws/sloop_to_eks.sh <cluster name> Data retention policy stated above still applies in this case. Backup & Restore
To download a backup of the database, navigate to http://localhost:8080/data/backup To restore from a backup, start Memory ConsumptionSloop's memory usage can be managed by tweaking several options:
Apart from these flags some other values can be tweaked to fit in the memory constraints. Following are some examples of setups.
Apart from the above settings, max-disk-mb and max-look-back can be tweaked according to input data and memory constraints. ContributingRefer to CONTRIBUTING.md LicenseBSD 3-Clause |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论