Skip to content

Commit

Permalink
feat(k8s): add Sloop
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored and mergify[bot] committed May 9, 2022
1 parent 0d277d2 commit b7f9008
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "autoscaler"]
path = submodules/autoscaler
url = https://github.com/kubernetes/autoscaler
[submodule "sloop"]
path = submodules/sloop
url = https://github.com/salesforce/sloop
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This diagram shows the architecture of this repository.

It is way over-engineering. So make sure to know the tradeoffs before onboarding any technology to your project.

![Architecture](https://user-images.githubusercontent.com/3375461/167074724-f0b622cd-9f42-4801-82ee-fcd31ba6065f.png)
![Architecture](https://user-images.githubusercontent.com/3375461/167353801-7ef27cfd-00c6-4e38-aa11-fecdfad33cf5.png)

## Setup

Expand Down Expand Up @@ -219,6 +219,7 @@ make clean
- **Goldilocks** - Kubernetes resource requests recommending
- **Polaris** - Kubernetes best practices validating
- **Kubecost** - Kubernetes cost monitoring and management
- **Sloop** - Kubernetes history visualization

### Ops

Expand Down Expand Up @@ -341,6 +342,22 @@ make clean

![Kibana screenshot](https://user-images.githubusercontent.com/3375461/90955224-50d80c00-e4ae-11ea-9345-dfa8e97ed41a.jpg)

#### Kubecost

![Kubecost screenshot](https://user-images.githubusercontent.com/3375461/167351502-ee32bb31-3499-4a9c-9dcc-87b38099aa62.jpg)

#### Polaris

![Polaris screenshot](https://user-images.githubusercontent.com/3375461/167352130-75b7c8ee-d7e1-4731-9765-c4d05e22f684.jpg)

#### Goldilocks

![Goldilocks screenshot](https://user-images.githubusercontent.com/3375461/167352330-f2d99896-e99d-4e89-876c-91ea0741e1c2.jpg)

#### Sloop

![Sloop screenshot](https://user-images.githubusercontent.com/3375461/167351205-0f7e0921-07ff-4072-b5b9-c343d88f25c4.jpg)

### Data

#### Big Data Processing - Flink
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/bin/utils/installGoldilocks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ helm install \
--namespace=hm-goldilocks \
--set=dashboard.service.port=34617 \
--set=dashboard.replicaCount=1
# helm uninstall goldilocks --namespace=goldilocks
# helm uninstall goldilocks --namespace=hm-goldilocks
echo "=================================================="

echo "# Label namespaces for Goldilocks"
Expand Down
15 changes: 15 additions & 0 deletions kubernetes/bin/utils/installSloop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -e

echo "# Install Sloop"
# https://github.com/salesforce/sloop/blob/master/helm/sloop/README.md
kubectl apply --filename=kubernetes/manifests/sloop/hm-sloop-namespace.yaml
helm install \
sloop \
submodules/sloop/helm/sloop \
--namespace=hm-sloop \
--values=kubernetes/manifests/sloop/helm/my-values.yaml

# Delete:
# helm uninstall sloop --namespace=hm-sloop
echo "=================================================="
4 changes: 4 additions & 0 deletions kubernetes/manifests/sloop/helm/my-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://github.com/salesforce/sloop/blob/master/helm/sloop/values.yaml

service:
port: 16850
4 changes: 4 additions & 0 deletions kubernetes/manifests/sloop/hm-sloop-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: hm-sloop
1 change: 1 addition & 0 deletions submodules/sloop
Submodule sloop added at ccf783

0 comments on commit b7f9008

Please sign in to comment.