-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
192 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
# Apache Dubbo Admin | ||
# Apache Dubbo Admin for Kubernetes | ||
|
||
A Helm chart for Dubbo Admin The ops and reference implementation for Apache Dubbo. | ||
Apache Dubbo Admin is an Distributed application monitoring and management platform. | ||
|
||
![license](https://img.shields.io/badge/license-Apache--2.0-green.svg) | ||
![Helm: v3](https://img.shields.io/static/v1?label=Helm&message=v3&color=informational&logo=helm) | ||
|
||
## Prerequisites | ||
|
||
* Kubernetes v1.14+ | ||
* Helm v3+ | ||
|
||
### Install | ||
|
||
```bash | ||
helm install [RELEASE_NAME] dubbo-admin --namespace dubbo-system --create-namespace | ||
``` | ||
|
||
### Uninstall | ||
## Usage | ||
|
||
```bash | ||
helm delete [RELEASE_NAME] --namespace dubbo-system | ||
helm install dubbo-admin charts/dubbo-admin | ||
``` |
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 |
---|---|---|
|
@@ -14,10 +14,10 @@ | |
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.vscode | ||
.project | ||
.idea/ | ||
*.tmproj | ||
OWNERS | ||
.vscode/ |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
apiVersion: v2 | ||
appVersion: "" | ||
appVersion: 3.2.11 | ||
name: dubbo-admin | ||
description: The ops and reference implementation for Apache Dubbo | ||
home: https://cn.dubbo.apache.org | ||
kubeVersion: '>=1.20.0-0' | ||
description: Distributed application monitoring and management platform. | ||
home: https://dubbo.apache.org | ||
kubeVersion: '>=1.28.0-0' | ||
maintainers: | ||
- email: [email protected] | ||
name: dubbo | ||
sources: | ||
- https://github.com/apache/dubbo | ||
- name: dubbo | ||
email: [email protected] | ||
type: application | ||
version: 0.5.0 |
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 |
---|---|---|
@@ -1,14 +1,2 @@ | ||
## 1. Project download to local | ||
``` | ||
git clone https://github.com/apache/dubbo-admin.git | ||
``` | ||
We no longer provide specific `values.yaml` configuration information. For more detailed content, please refer to the official website. | ||
|
||
## 2. Switch project directory | ||
``` | ||
cd dubbo-admin/deploy/charts/dubbo-admin | ||
``` | ||
|
||
## 3. Install dubbo-admin | ||
``` | ||
helm install dubbo-admin -f values.yaml . | ||
``` |
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,41 @@ | ||
CHART NAME: {{ .Chart.Name }} | ||
CHART VERSION: {{ .Chart.Version }} | ||
APP VERSION: {{ .Chart.AppVersion }} | ||
===================================== | ||
{{- if contains "NodePort" .Values.service.type }} | ||
You can execute the following command: | ||
|
||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "dubbo-admin.name" . }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
|
||
echo http://$NODE_IP:$NODE_PORT | ||
|
||
{{- else if contains "LoadBalancer" .Values.service.type }} | ||
You can execute the following command: | ||
NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "dubbo-admin.name" . }}' | ||
|
||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "dubbo-admin.name" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") | ||
|
||
echo http://$SERVICE_IP:{{ .Values.service.port }} | ||
|
||
{{- else if contains "ClusterIP" .Values.service.type }} | ||
You can execute the following command: | ||
|
||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "dubbo-admin.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") | ||
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") | ||
|
||
echo "Visit http://127.0.0.1:8080 to use your application" | ||
|
||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT | ||
{{- end }} | ||
|
||
{{- if not .Values.persistence.enabled }} | ||
|
||
==================================================== | ||
Not enabled for persistent storage. | ||
If you have important data, please enable it. | ||
==================================================== | ||
{{- end }} | ||
|
||
For more details, please visit https://dubbo.apache.org. |
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
Oops, something went wrong.