This is an automated email from the ASF dual-hosted git repository.
zhongxjian pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-kubernetes.git
The following commit(s) were added to refs/heads/master by this push:
new f2d6939e Migrate part of Helm to the target repository and update the
readme (#853)
f2d6939e is described below
commit f2d6939ea061852cbb7d07a8a194a10a849d4a1e
Author: mfordjody <[email protected]>
AuthorDate: Fri Jan 23 12:09:15 2026 +0800
Migrate part of Helm to the target repository and update the readme (#853)
---
README.md | 2 +-
manifests/charts/admin/Chart.yaml | 30 --
manifests/charts/admin/README.md | 52 ----
manifests/charts/admin/templates/_pod.tpl | 122 --------
manifests/charts/admin/templates/clusterrole.yaml | 63 -----
.../charts/admin/templates/clusterrolebinding.yaml | 20 --
manifests/charts/admin/templates/deployment.yaml | 37 ---
manifests/charts/admin/templates/service.yaml | 20 --
.../charts/admin/templates/serviceaccount.yaml | 13 -
manifests/charts/admin/templates/zzz_profile.yaml | 13 -
manifests/charts/admin/values.yaml | 55 ----
.../register-discovery/nacos/Chart.yaml | 30 --
.../register-discovery/nacos/README.md | 52 ----
.../nacos/templates/configmap.yaml | 25 --
.../register-discovery/nacos/templates/mysql.yaml | 312 ---------------------
.../nacos/templates/poddisruptionbudget.yaml | 20 --
.../nacos/templates/service.yaml | 64 -----
.../nacos/templates/statefulset.yaml | 138 ---------
.../nacos/templates/zzz_profile.yaml | 13 -
.../register-discovery/nacos/values.yaml | 46 ---
.../register-discovery/zookeeper/Chart.yaml | 30 --
.../register-discovery/zookeeper/README.md | 52 ----
.../zookeeper/templates/configmap.yaml | 32 ---
.../zookeeper/templates/poddisruptionbudget.yaml | 20 --
.../zookeeper/templates/service.yaml | 53 ----
.../zookeeper/templates/statefulset.yaml | 79 ------
.../zookeeper/templates/zzz_profile.yaml | 13 -
.../register-discovery/zookeeper/values.yaml | 41 ---
28 files changed, 1 insertion(+), 1446 deletions(-)
diff --git a/README.md b/README.md
index 435d0938..11bf2c43 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ Implement an open-source service mesh for Dubbo in a
Kubernetes cluster, integra
- **api** — API definitions for Dubbo.
- **client-go** — Go client library for the Dubbo API.
-- **dubboctl** — Command-line tool that provides control plane management,
development framework setup, and application deployment capabilities.
+- **dubboctl** — Command-line tool that provides control plane management.
- **dubbod** — The control plane, communicating based on gRPC and xDS APIs.
- **operator** — Provides user-friendly options for operating the service mesh.
diff --git a/manifests/charts/admin/Chart.yaml
b/manifests/charts/admin/Chart.yaml
deleted file mode 100644
index d5485869..00000000
--- a/manifests/charts/admin/Chart.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: v2
-annotations:
- licenses: Apache-2.0
-name: admin
-home: https://github.com/apache/dubbo-kubernetes
-icon: https://avatars.githubusercontent.com/u/11751992?s=200&v=4
-description: Helm chart for dubbo admin dashboard.
-version: 0.1.2
-appVersion: 1.0.0
-maintainers:
- - name: mfordjody
- email: [email protected]
-sources:
- - https://dubbo.apache.org
- - https://github.com/apache/dubbo-kubernetes
\ No newline at end of file
diff --git a/manifests/charts/admin/README.md b/manifests/charts/admin/README.md
deleted file mode 100644
index 34c0729a..00000000
--- a/manifests/charts/admin/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Admin Helm Chart
-
-This chart installs an Admin deployment.
-
-## Setup Repo Info
-```
-helm repo add dubbo https://charts.dubbo.apache.org
-helm repo update
-```
-See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command
documentation.
-
-## Installing the Chart
-
-To install the chart with the release name dubbo:
-```
-kubectl create namespace dubbo-system
-helm install admin dubbo/admin --namespace dubbo-system
-```
-
-## Uninstalling the Chart
-
-To uninstall/delete the dubbo deployment:
-```
-helm delete dubbo --namespace dubbo-system
-```
-
-## Configuration
-
-To view support configuration options and documentation, run:
-```
-helm show values dubbo/admin
-```
-
-### profiles
-Dubbo Helm Chart introduces the concept of profiles, which are predefined sets
of configuration values. You can specify the desired profile using --set
profile=<profile>. For example, the demo profile provides a preset
configuration suitable for testing environments, with additional features
enabled and reduced resource requirements.
-
-To maintain consistency, all charts support the same profiles, even if some
settings don’t apply to a particular chart.
-
-The precedence of values is as follows:
-1. Explicitly set parameters (via --set)
-2. Values defined in the selected profile
-3. Default values of the chart
-
-In actual configuration, you do not need to include the nested path under
defaults. For example, you should use:
-```
---set some.field=true
-```
-
-instead of:
-```
---set defaults.some.field=true
-```
\ No newline at end of file
diff --git a/manifests/charts/admin/templates/_pod.tpl
b/manifests/charts/admin/templates/_pod.tpl
deleted file mode 100644
index 59530b3f..00000000
--- a/manifests/charts/admin/templates/_pod.tpl
+++ /dev/null
@@ -1,122 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-{{- define "admin.pod" -}}
-{{- $admin := .Values -}}
-{{- $zookeeper := .Values.zookeeper }}
-{{- $nacos := .Values.nacos }}
-serviceAccountName: admin-sa
-containers:
-- name: admin
- image: "{{ $admin.image }}:{{ $admin.tag }}"
- imagePullPolicy: IfNotPresent
- env:
- - name: DUBBO_DEPLOY_MODE
- value: {{ .Values.deployMode | quote }}
- - name: DUBBO_MODE
- value: {{ .Values.mode | quote }}
- {{- if $nacos.enabled }}
- - name: DUBBO_STORE_TRADITIONAL_REGISTRY
- value: {{ .Values.nacosAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_CONFIG_CENTER
- value: {{ .Values.nacosAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_METADATA_REPORT
- value: {{ .Values.nacosAddress | quote }}
- {{- end }}
- {{- if $zookeeper.enabled }}
- - name: DUBBO_STORE_TRADITIONAL_REGISTRY
- value: {{ .Values.zookeeperAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_CONFIG_CENTER
- value: {{ .Values.zookeeperAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_METADATA_REPORT
- value: {{ .Values.zookeeperAddress | quote }}
- {{- else if not ($nacos.enabled) }}
- - name: DUBBO_STORE_TRADITIONAL_REGISTRY
- value: {{ .Values.nacosAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_CONFIG_CENTER
- value: {{ .Values.nacosAddress | quote }}
- - name: DUBBO_STORE_TRADITIONAL_METADATA_REPORT
- value: {{ .Values.nacosAddress | quote }}
- {{- end }}
- - name: ADMIN_METRICDASHBOARDS_APPLICATION_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/a0b114ca-edf7-4dfe-ac2c-34a4fc545fed/application
- - name: ADMIN_METRICDASHBOARDS_INSTANCE_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/dcf5defe-d198-4704-9edf-6520838880e9/instance
- - name: ADMIN_METRICDASHBOARDS_SERVICE_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/ec689613-b4a1-45b1-b8bd-9d557059f970/service/
- - name: ADMIN_TRACEDASHBOARDS_APPLICATION_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/e968a89b-f03d-42e3-8ad3-930ae815cb0f/application
- - name: ADMIN_TRACEDASHBOARDS_INSTANCE_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/f5f48f75-13ec-489b-88ae-635ae38d8618/instance
- - name: ADMIN_TRACEDASHBOARDS_SERVICE_BASEURL
- value: {{ .Values.grafanaAddress
}}/d/b2e178fb-ada3-4d5e-9f54-de99e7f07662/service
- - name: ADMIN_PROMETHEUS
- value: {{ .Values.prometheusAddress | quote }}
- - name: ADMIN_GRAFANA
- value: {{ .Values.grafanaAddress | quote }}
- - name: ADMIN_AUTH_USER
- value: {{ .Values.user | quote }}
- - name: ADMIN_AUTH_PASSWORD
- value: {{ .Values.password | quote }}
- - name: ADMIN_AUTH_EXPIRATIONTIME
- value: {{ .Values.expirationTime | quote }}
- ports:
- - containerPort: 8888
- readinessProbe:
- httpGet:
- path: /admin
- port: 8888
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 30
- livenessProbe:
- httpGet:
- path: /admin
- port: 8888
- scheme: HTTP
- initialDelaySeconds: 5
- periodSeconds: 30
- startupProbe:
- httpGet:
- path: /admin
- port: 8888
- scheme: HTTP
- failureThreshold: 6
- initialDelaySeconds: 30
- periodSeconds: 10
- securityContext:
- allowPrivilegeEscalation: false
- readOnlyRootFilesystem: false
- runAsNonRoot: false
- capabilities:
- drop:
- - ALL
- volumeMounts:
- - name: data
- mountPath: /var/lib/admin
- - name: data
- mountPath: /log
-{{- with $admin.volumeMounts }}
-{{- toYaml . | nindent 10 }}
-{{- end }}
-resources:
-{{ toYaml $admin.resources | trim | indent 2 }}
-volumes:
-- name: data
- emptyDir: {}
-{{- with $admin.volumes }}
-{{- toYaml . | nindent 6 }}
-{{- end }}
-{{- end -}}
\ No newline at end of file
diff --git a/manifests/charts/admin/templates/clusterrole.yaml
b/manifests/charts/admin/templates/clusterrole.yaml
deleted file mode 100644
index 1f7c3c6f..00000000
--- a/manifests/charts/admin/templates/clusterrole.yaml
+++ /dev/null
@@ -1,63 +0,0 @@
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRole
-metadata:
- name: admin-clusterrole
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
-rules:
- - apiGroups:
- - ""
- resources:
- - deployments
- verbs:
- - get
- - list
- - watch
- - apiGroups:
- - ""
- resources:
- - services
- verbs:
- - get
- - list
- - watch
- - apiGroups:
- - ""
- resources:
- - namespaces
- - pods
- verbs:
- - get
- - list
- - watch
- - apiGroups:
- - ""
- resources:
- - secrets
- verbs:
- - get
- - list
- - watch
- - apiGroups:
- - "coordination.k8s.io"
- resources:
- - leases
- resourceNames:
- - "cp-leader-lease"
- verbs:
- - get
- - create
- - update
- - apiGroups:
- - ""
- resources:
- - events
- verbs:
- - create
- - update
diff --git a/manifests/charts/admin/templates/clusterrolebinding.yaml
b/manifests/charts/admin/templates/clusterrolebinding.yaml
deleted file mode 100644
index d69221fb..00000000
--- a/manifests/charts/admin/templates/clusterrolebinding.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: rbac.authorization.k8s.io/v1
-kind: ClusterRoleBinding
-metadata:
- name: admin-clusterrolebinding
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
-subjects:
-- kind: ServiceAccount
- name: admin-sa
- namespace: {{ .Release.Namespace }}
-roleRef:
- kind: ClusterRole
- name: admin-clusterrole
- apiGroup: rbac.authorization.k8s.io
\ No newline at end of file
diff --git a/manifests/charts/admin/templates/deployment.yaml
b/manifests/charts/admin/templates/deployment.yaml
deleted file mode 100644
index 91a86079..00000000
--- a/manifests/charts/admin/templates/deployment.yaml
+++ /dev/null
@@ -1,37 +0,0 @@
-{{- $admin := .Values -}}
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: admin
- namespace: {{ .Release.Namespace }}
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
-spec:
- replicas: {{ $admin.replicas }}
- strategy:
- rollingUpdate:
- maxSurge: {{ $admin.rollingMaxSurge }}
- maxUnavailable: {{ $admin.rollingMaxUnavailable }}
- selector:
- matchLabels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: admin
- template:
- metadata:
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default
"unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
- spec:
- {{- include "admin.pod" . | nindent 6 }}
diff --git a/manifests/charts/admin/templates/service.yaml
b/manifests/charts/admin/templates/service.yaml
deleted file mode 100644
index fb7713ed..00000000
--- a/manifests/charts/admin/templates/service.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: admin
- namespace: {{ .Release.Namespace }}
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
-spec:
- ports:
- - name: http
- port: 8888
- targetPort: 8888
- selector:
- app: admin
\ No newline at end of file
diff --git a/manifests/charts/admin/templates/serviceaccount.yaml
b/manifests/charts/admin/templates/serviceaccount.yaml
deleted file mode 100644
index d4131588..00000000
--- a/manifests/charts/admin/templates/serviceaccount.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-apiVersion: v1
-kind: ServiceAccount
-metadata:
- name: admin-sa
- namespace: {{ .Release.Namespace }}
- labels:
- app: admin
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Admin"
- dubbo: admin
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "dashboard"
\ No newline at end of file
diff --git a/manifests/charts/admin/templates/zzz_profile.yaml
b/manifests/charts/admin/templates/zzz_profile.yaml
deleted file mode 100644
index 2f620be4..00000000
--- a/manifests/charts/admin/templates/zzz_profile.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- if $.Values.defaults }}
-{{ fail (cat
- "`--set defaults.foo=bar` with `--set foo=bar`. Defaults set:\n"
- ($.Values.defaults | toYaml |nindent 4) ) }}
-
-{{- end }}
-{{- $defaults := $.Values._internal_default_values_not_set }}
-{{- $_ := unset $.Values "_internal_default_values_not_set " }}
-{{- $profile := dict }}
-{{- if false }}
-{{- $a := mustMergeOverwrite $defaults ($profile.global) ($.Values.global |
default dict) }}
-{{- end }}
-{{- $b := set $ "Values" (mustMergeOverwrite $defaults $.Values) }}
diff --git a/manifests/charts/admin/values.yaml
b/manifests/charts/admin/values.yaml
deleted file mode 100644
index d486f612..00000000
--- a/manifests/charts/admin/values.yaml
+++ /dev/null
@@ -1,55 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-_internal_default_values_not_set:
- replicas: 1
- rollingMaxSurge: 100%
- rollingMaxUnavailable: 25%
-
- image: sca-registry.cn-hangzhou.cr.aliyuncs.com/dubbo/dubbo-cp
- tag: v0.1.2
-
- volumeMounts: []
-
- volumes: []
-
- resources:
- limits:
- cpu: "256m"
- memory: "512Mi"
- requests:
- cpu: "256m"
- memory: "512Mi"
-
- # Support multi deploy status, see
https://github.com/apache/dubbo-kubernetes/blob/master/README.md
- # Available options: k8s(not supported yet), half, universal
- deployMode: half
-
- # Support multi-cluster
- # Available options: zone, global(not supported yet)
- mode: zone
-
- # dubbo-cp login
- user: admin
- password: Dubbo@2025
- expirationTime: 7200
-
- zookeeperAddress: zookeeper://zookeeper:2181
-
- nacosAddress: nacos://nacos:8848?username=nacos&password=nacos
-
- grafanaAddress: http://grafana.dubbo-system:3000
-
- prometheusAddress: http://prometheus.dubbo-system:9090
diff --git a/manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
deleted file mode 100644
index dbc5b8da..00000000
--- a/manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: v2
-annotations:
- licenses: Apache-2.0
-name: nacos
-home: https://github.com/apache/dubbo-kubernetes
-icon: https://avatars.githubusercontent.com/u/11751992?s=200&v=4
-description: Helm chart for nacos register plane.
-version: 0.1.2
-appVersion: 1.0.0
-maintainers:
- - name: mfordjody
- email: [email protected]
-sources:
- - https://dubbo.apache.org
- - https://github.com/apache/dubbo-kubernetes
diff --git a/manifests/charts/dubbo-control/register-discovery/nacos/README.md
b/manifests/charts/dubbo-control/register-discovery/nacos/README.md
deleted file mode 100644
index f92abd07..00000000
--- a/manifests/charts/dubbo-control/register-discovery/nacos/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Nacos Helm Chart
-
-This chart installs an Base deployment.
-
-## Setup Repo Info
-```
-helm repo add dubbo https://charts.dubbo.apache.org
-helm repo update
-```
-See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command
documentation.
-
-## Installing the Chart
-
-To install the chart with the release name dubbo:
-```
-kubectl create namespace dubbo-system
-helm install nacos dubbo/nacos --namespace dubbo-system
-```
-
-## Uninstalling the Chart
-
-To uninstall/delete the dubbo deployment:
-```
-helm delete dubbo --namespace dubbo-system
-```
-
-## Configuration
-
-To view support configuration options and documentation, run:
-```
-helm show values dubbo/nacos
-```
-
-### profiles
-Dubbo Helm Chart introduces the concept of profiles, which are predefined sets
of configuration values. You can specify the desired profile using --set
profile=<profile>. For example, the demo profile provides a preset
configuration suitable for testing environments, with additional features
enabled and reduced resource requirements.
-
-To maintain consistency, all charts support the same profiles, even if some
settings don’t apply to a particular chart.
-
-The precedence of values is as follows:
-1. Explicitly set parameters (via --set)
-2. Values defined in the selected profile
-3. Default values of the chart
-
-In actual configuration, you do not need to include the nested path under
defaults. For example, you should use:
-```
---set some.field=true
-```
-
-instead of:
-```
---set defaults.some.field=true
-```
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/configmap.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/configmap.yaml
deleted file mode 100644
index f2f60be1..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/configmap.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-{{- $nacos := .Values -}}
-{{- if eq $nacos.storage.type "mysql" }}
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: nacos-db-config
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-data:
- {{- with $nacos.storage }}
- mysql.db.host: {{ .database.host }}
- mysql.db.name: {{ .database.name }}
- mysql.port: "{{ .database.port | default 3306 }}"
- mysql.user: {{ .database.username }}
- mysql.password: {{ .database.password }}
- mysql.param: {{ .database.param | default
"characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
}}
- {{- end -}}
- {{- end -}}
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/mysql.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/mysql.yaml
deleted file mode 100644
index 42644f62..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/mysql.yaml
+++ /dev/null
@@ -1,312 +0,0 @@
-{{- $nacos := .Values -}}
-{{- if eq $nacos.storage.type "mysql" }}
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- name: nacos-mysql
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos-mysql
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- replicas: 1
- serviceName: nacos-mysql-headless
- selector:
- matchLabels:
- app: nacos-mysql
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: nacos
- template:
- metadata:
- labels:
- app: nacos-mysql
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default
"unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
- spec:
- containers:
- - name: mysql
- image: mysql:latest
- imagePullPolicy: IfNotPresent
- ports:
- - containerPort: 3306
- env:
- {{/* MySQL initialization first startup specifies password*/}}
- - name: MYSQL_ROOT_PASSWORD
- value: "root"
- - name: MYSQL_DATABASE
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.db.name
- - name: MYSQL_USER
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.user
- - name: MYSQL_PASSWORD
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.password
- lifecycle:
- postStart:
- exec:
- command: [ "/bin/sh", "-c", "sleep 30 && mysql -unacos -pnacos
-e 'SELECT 1 FROM nacos.config_info LIMIT 1;' || mysql -unacos -pnacos nacos <
/mysql-schema.sql" ]
- volumeMounts:
- - name: table-data
- mountPath: mysql-schema.sql
- subPath: mysql-schema.sql
- - name: data
- mountPath: /var/lib/mysql
- volumes:
- - name: table-data
- configMap:
- name: nacos-table-config
- defaultMode: 0755
- - name: data
- emptyDir: {}
----
-apiVersion: v1
-kind: Service
-metadata:
- name: nacos-mysql
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos-mysql
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- ports:
- - name: http
- port: 3306
- targetPort: 3306
- protocol: TCP
- selector:
- app: nacos-mysql
----
-apiVersion: v1
-kind: Service
-metadata:
- name: nacos-mysql-headless
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos-mysql
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- clusterIP: None
- ports:
- - name: http
- port: 3306
- targetPort: 3306
- protocol: TCP
- selector:
- app: nacos-mysql
----
-# mysql -unacos -pnacos nacos < mysql-schema.sql
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: nacos-table-config
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-data:
- #
https://github.com/alibaba/nacos/blob/develop/distribution/conf/mysql-schema.sql
- mysql-schema.sql: |-
- /******************************************/
- /* 表名称 = config_info */
- /******************************************/
- CREATE TABLE `config_info`
- (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
- `data_id` varchar(255) NOT NULL COMMENT 'data_id',
- `group_id` varchar(128) DEFAULT NULL COMMENT
'group_id',
- `content` longtext NOT NULL COMMENT 'content',
- `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '创建时间',
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '修改时间',
- `src_user` text COMMENT 'source user',
- `src_ip` varchar(50) DEFAULT NULL COMMENT
'source ip',
- `app_name` varchar(128) DEFAULT NULL COMMENT
'app_name',
- `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
- `c_desc` varchar(256) DEFAULT NULL COMMENT
'configuration description',
- `c_use` varchar(64) DEFAULT NULL COMMENT
'configuration usage',
- `effect` varchar(64) DEFAULT NULL COMMENT
'配置生效的描述',
- `type` varchar(64) DEFAULT NULL COMMENT
'配置的类型',
- `c_schema` text COMMENT '配置的模式',
- `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_configinfo_datagrouptenant`
(`data_id`,`group_id`,`tenant_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin
COMMENT='config_info';
-
- /******************************************/
- /* 表名称 = config_info since 2.5.0 */
- /******************************************/
- CREATE TABLE `config_info_gray`
- (
- `id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT
'id',
- `data_id` varchar(255) NOT NULL COMMENT 'data_id',
- `group_id` varchar(128) NOT NULL COMMENT 'group_id',
- `content` longtext NOT NULL COMMENT 'content',
- `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
- `src_user` text COMMENT 'src_user',
- `src_ip` varchar(100) DEFAULT NULL COMMENT
'src_ip',
- `gmt_create` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP
(3) COMMENT 'gmt_create',
- `gmt_modified` datetime(3) NOT NULL DEFAULT CURRENT_TIMESTAMP
(3) COMMENT 'gmt_modified',
- `app_name` varchar(128) DEFAULT NULL COMMENT
'app_name',
- `tenant_id` varchar(128) DEFAULT '' COMMENT
'tenant_id',
- `gray_name` varchar(128) NOT NULL COMMENT 'gray_name',
- `gray_rule` text NOT NULL COMMENT 'gray_rule',
- `encrypted_data_key` varchar(256) NOT NULL DEFAULT '' COMMENT
'encrypted_data_key',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_configinfogray_datagrouptenantgray`
(`data_id`,`group_id`,`tenant_id`,`gray_name`),
- KEY `idx_dataid_gmt_modified`
(`data_id`,`gmt_modified`),
- KEY `idx_gmt_modified` (`gmt_modified`)
- ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8
COMMENT='config_info_gray';
-
- /******************************************/
- /* 表名称 = config_tags_relation */
- /******************************************/
- CREATE TABLE `config_tags_relation`
- (
- `id` bigint(20) NOT NULL COMMENT 'id',
- `tag_name` varchar(128) NOT NULL COMMENT 'tag_name',
- `tag_type` varchar(64) DEFAULT NULL COMMENT 'tag_type',
- `data_id` varchar(255) NOT NULL COMMENT 'data_id',
- `group_id` varchar(128) NOT NULL COMMENT 'group_id',
- `tenant_id` varchar(128) DEFAULT '' COMMENT 'tenant_id',
- `nid` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'nid, 自增长标识',
- PRIMARY KEY (`nid`),
- UNIQUE KEY `uk_configtagrelation_configidtag`
(`id`,`tag_name`,`tag_type`),
- KEY `idx_tenant_id` (`tenant_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin
COMMENT='config_tag_relation';
-
- /******************************************/
- /* 表名称 = group_capacity */
- /******************************************/
- CREATE TABLE `group_capacity`
- (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT
COMMENT '主键ID',
- `group_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Group
ID,空字符表示整个集群',
- `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'配额,0表示使用默认值',
- `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'使用量',
- `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'单个配置大小上限,单位为字节,0表示使用默认值',
- `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'聚合子配置最大个数,,0表示使用默认值',
- `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
- `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'最大变更历史数量',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '创建时间',
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '修改时间',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_group_id` (`group_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin
COMMENT='集群、各Group容量信息表';
-
- /******************************************/
- /* 表名称 = his_config_info */
- /******************************************/
- CREATE TABLE `his_config_info`
- (
- `id` bigint(20) unsigned NOT NULL COMMENT 'id',
- `nid` bigint(20) unsigned NOT NULL AUTO_INCREMENT
COMMENT 'nid, 自增标识',
- `data_id` varchar(255) NOT NULL COMMENT 'data_id',
- `group_id` varchar(128) NOT NULL COMMENT 'group_id',
- `app_name` varchar(128) DEFAULT NULL COMMENT
'app_name',
- `content` longtext NOT NULL COMMENT 'content',
- `md5` varchar(32) DEFAULT NULL COMMENT 'md5',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '创建时间',
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '修改时间',
- `src_user` text COMMENT 'source user',
- `src_ip` varchar(50) DEFAULT NULL COMMENT
'source ip',
- `op_type` char(10) DEFAULT NULL COMMENT
'operation type',
- `tenant_id` varchar(128) DEFAULT '' COMMENT '租户字段',
- `encrypted_data_key` varchar(1024) NOT NULL DEFAULT '' COMMENT '密钥',
- `publish_type` varchar(50) DEFAULT 'formal' COMMENT
'publish type gray or formal',
- `gray_name` varchar(50) DEFAULT NULL COMMENT 'gray
name',
- `ext_info` longtext DEFAULT NULL COMMENT 'ext
info',
- PRIMARY KEY (`nid`),
- KEY `idx_gmt_create` (`gmt_create`),
- KEY `idx_gmt_modified` (`gmt_modified`),
- KEY `idx_did` (`data_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='多租户改造';
-
-
- /******************************************/
- /* 表名称 = tenant_capacity */
- /******************************************/
- CREATE TABLE `tenant_capacity`
- (
- `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT
COMMENT '主键ID',
- `tenant_id` varchar(128) NOT NULL DEFAULT '' COMMENT 'Tenant
ID',
- `quota` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'配额,0表示使用默认值',
- `usage` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'使用量',
- `max_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'单个配置大小上限,单位为字节,0表示使用默认值',
- `max_aggr_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'聚合子配置最大个数',
- `max_aggr_size` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'单个聚合数据的子配置大小上限,单位为字节,0表示使用默认值',
- `max_history_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT
'最大变更历史数量',
- `gmt_create` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '创建时间',
- `gmt_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP
COMMENT '修改时间',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_tenant_id` (`tenant_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='租户容量信息表';
-
-
- CREATE TABLE `tenant_info`
- (
- `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
- `kp` varchar(128) NOT NULL COMMENT 'kp',
- `tenant_id` varchar(128) default '' COMMENT 'tenant_id',
- `tenant_name` varchar(128) default '' COMMENT 'tenant_name',
- `tenant_desc` varchar(256) DEFAULT NULL COMMENT 'tenant_desc',
- `create_source` varchar(32) DEFAULT NULL COMMENT 'create_source',
- `gmt_create` bigint(20) NOT NULL COMMENT '创建时间',
- `gmt_modified` bigint(20) NOT NULL COMMENT '修改时间',
- PRIMARY KEY (`id`),
- UNIQUE KEY `uk_tenant_info_kptenantid` (`kp`,`tenant_id`),
- KEY `idx_tenant_id` (`tenant_id`)
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin
COMMENT='tenant_info';
-
- CREATE TABLE `users`
- (
- `username` varchar(50) NOT NULL PRIMARY KEY COMMENT 'username',
- `password` varchar(500) NOT NULL COMMENT 'password',
- `enabled` boolean NOT NULL COMMENT 'enabled'
- );
-
- CREATE TABLE `roles`
- (
- `username` varchar(50) NOT NULL COMMENT 'username',
- `role` varchar(50) NOT NULL COMMENT 'role',
- UNIQUE INDEX `idx_user_role` (`username` ASC, `role` ASC) USING BTREE
- );
-
- CREATE TABLE `permissions`
- (
- `role` varchar(50) NOT NULL COMMENT 'role',
- `resource` varchar(128) NOT NULL COMMENT 'resource',
- `action` varchar(8) NOT NULL COMMENT 'action',
- UNIQUE INDEX `uk_role_permission` (`role`,`resource`,`action`) USING
BTREE
- );
-{{- end -}}
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/poddisruptionbudget.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/poddisruptionbudget.yaml
deleted file mode 100644
index 28ec1110..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/poddisruptionbudget.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: policy/v1
-kind: PodDisruptionBudget
-metadata:
- name: nacos
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- minAvailable: 1
- selector:
- matchLabels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: nacos
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/service.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/service.yaml
deleted file mode 100644
index 27fd5bbe..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/service.yaml
+++ /dev/null
@@ -1,64 +0,0 @@
-{{- $nacos := .Values -}}
-{{- $ncs := .Values.nacos }}
-apiVersion: v1
-kind: Service
-metadata:
- name: nacos
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- ports:
- - name: http
- port: 8848
- targetPort: http
- protocol: TCP
- - name: clientgen-rpc
- port: {{ add 8848 1000 }}
- targetPort: clientgen-rpc
- protocol: TCP
- - name: raft-rpc
- port: {{ add 8848 1001 }}
- targetPort: raft-rpc
- protocol: TCP
- selector:
- app: nacos
----
-{{- if and (eq $nacos.mode "cluster" | default $ncs.mode) }}
-apiVersion: v1
-kind: Service
-metadata:
- name: nacos-headless
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- clusterIP: None
- ports:
- - name: http
- port: 8848
- targetPort: http
- protocol: TCP
- - name: clientgen-rpc
- port: {{ add 8848 1000 }}
- targetPort: clientgen-rpc
- protocol: TCP
- - name: raft-rpc
- port: {{ add 8848 1001 }}
- targetPort: raft-rpc
- protocol: TCP
- selector:
- app: nacos
-{{- end -}}
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/statefulset.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/statefulset.yaml
deleted file mode 100644
index 3bde1d9f..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/statefulset.yaml
+++ /dev/null
@@ -1,138 +0,0 @@
-{{- $nacos := .Values -}}
-{{- $ncs := .Values.nacos }}
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- name: nacos
- namespace: {{ .Release.Namespace }}
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- replicas: {{ $nacos.replicas }}
- {{- if eq $nacos.mode "cluster" }}
- serviceName: nacos-headless
- {{- else }}
- serviceName: nacos
- {{- end }}
- selector:
- matchLabels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: nacos
- updateStrategy:
- type: RollingUpdate
- rollingUpdate:
- partition: {{ $nacos.rollingPartition }}
- template:
- metadata:
- labels:
- app: nacos
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default
"unknown" }}
- operator.dubbo.apache.org/component: "Nacos"
- dubbo: nacos
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
- spec:
- {{- if eq $nacos.storage.type "mysql" }}
- initContainers:
- - name: wait-init-mysql
- image: busybox
- command:
- - "/bin/sh"
- - "-c"
- - "sleep 45"
- {{- end }}
- containers:
- - name: nacos
- {{- if contains "/" $nacos.image }}
- image: {{ $nacos.image }}:v2.5.1
- {{- end }}
- imagePullPolicy: IfNotPresent
- ports:
- - name: http
- containerPort: 8848
- - name: clientgen-rpc
- containerPort: {{ add 8848 1000 }}
- - name: raft-rpc
- containerPort: {{ add 8848 1001 }}
- resources:
-{{ toYaml $nacos.resources | trim | indent 10 }}
- env:
- - name: NACOS_SERVER_PORT
- value: "8848"
- - name: NACOS_APPLICATION_PORT
- value: "8848"
- - name: PREFER_HOST_MODE
- value: hostname
- {{- if eq $nacos.mode "cluster" | default $ncs.mode }}
- - name: MODE
- value: "cluster"
- - name: SERVICE_NAME
- value: "nacos-headless"
- - name: DOMAIN_NAME
- value: "cluster.local"
- {{- else }}
- - name: MODE
- value: "standalone"
- {{- end }}
- {{- if eq $nacos.storage.type "mysql" }}
- - name: SPRING_DATASOURCE_PLATFORM
- value: "mysql"
- - name: MYSQL_SERVICE_HOST
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.db.host
- - name: MYSQL_SERVICE_DB_NAME
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.db.name
- - name: MYSQL_SERVICE_PORT
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.port
- - name: MYSQL_SERVICE_USER
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.user
- - name: MYSQL_SERVICE_PASSWORD
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.password
- - name: MYSQL_SERVICE_DB_PARAM
- valueFrom:
- configMapKeyRef:
- name: nacos-db-config
- key: mysql.param
- {{- else }}
- - name: EMBEDDED_STORAGE
- value: embedded
- - name: SPRING_DATASOURCE_PLATFORM
- value: ""
- {{- end }}
- securityContext:
- allowPrivilegeEscalation: false
- readOnlyRootFilesystem: false
- runAsNonRoot: false
- volumeMounts:
- - name: data
- mountPath: /home/nacos/data
- subPath: data
- - name: data
- mountPath: /home/nacos/logs
- subPath: logs
- volumes:
- - name: data
- emptyDir:
- medium: Memory
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/zzz_profile.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/zzz_profile.yaml
deleted file mode 100644
index 9643fb52..00000000
---
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/zzz_profile.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- if $.Values.defaults}}
-{{ fail (cat
- "`--set defaults.foo=bar` with `--set foo=bar`. Defaults set:\n"
- ($.Values.defaults | toYaml |nindent 4) ) }}
-{{- end }}
-
-{{- $defaults := $.Values._internal_default_values_not_set }}
-{{- $_ := unset $.Values "_internal_default_values_not_set " }}
-{{- $profile := dict }}
-{{- if false }}
-{{- $a := mustMergeOverwrite $defaults ($profile.global) ($.Values.global |
default dict) }}
-{{- end }}
-{{- $b := set $ "Values" (mustMergeOverwrite $defaults $.Values) }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
deleted file mode 100644
index 313ffdde..00000000
--- a/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
+++ /dev/null
@@ -1,46 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-_internal_default_values_not_set:
- rollingPartition: ""
- # Specifies the mode in which nacos is running (standalone, cluster, etc.).
- mode: ""
- # Number of replicas for the Deployment.
- replicas: 1
- # Deploy the required container images.
- image: nacos-registry.cn-hangzhou.cr.aliyuncs.com/nacos/nacos-server
- # The size of application resources required for deployment.
- resources:
- requests:
- cpu: 500m
- memory: 1Gi
- # Define the way to store Nacos data.
- storage:
- # Specifies the storage type (embedded, mysql, etc.).
- type: ""
- # For MySQL storage, you need to change the "embedded" to "mysql" before
you can use the db configuration.
- database:
- # Specifies the database host.
- host: "nacos-mysql"
- # Specifies the database name.
- name: nacos
- # Specifies the database port.
- port: ""
- # Specifies the database username.
- username: nacos
- # Specifies the database password.
- password: nacos
- # Additional database connection parameters (if needed).
- param: ""
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
deleted file mode 100644
index a214f45d..00000000
--- a/manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-apiVersion: v2
-annotations:
- licenses: Apache-2.0
-name: zookeeper
-home: https://github.com/apache/dubbo-kubernetes
-icon: https://avatars.githubusercontent.com/u/11751992?s=200&v=4
-description: Helm chart for zookeeper register plane.
-version: 0.1.2
-appVersion: 1.0.0
-maintainers:
- - name: mfordjody
- email: [email protected]
-sources:
- - https://dubbo.apache.org
- - https://github.com/apache/dubbo-kubernetes
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/README.md
b/manifests/charts/dubbo-control/register-discovery/zookeeper/README.md
deleted file mode 100644
index 2e51610d..00000000
--- a/manifests/charts/dubbo-control/register-discovery/zookeeper/README.md
+++ /dev/null
@@ -1,52 +0,0 @@
-# Zookeeper Helm Chart
-
-This chart installs an Base deployment.
-
-## Setup Repo Info
-```
-helm repo add dubbo https://charts.dubbo.apache.org
-helm repo update
-```
-See [helm repo](https://helm.sh/docs/helm/helm_repo/) for command
documentation.
-
-## Installing the Chart
-
-To install the chart with the release name dubbo:
-```
-kubectl create namespace dubbo-system
-helm install zookeeper dubbo/zookeeper --namespace dubbo-system
-```
-
-## Uninstalling the Chart
-
-To uninstall/delete the dubbo deployment:
-```
-helm delete dubbo --namespace dubbo-system
-```
-
-## Configuration
-
-To view support configuration options and documentation, run:
-```
-helm show values dubbo/zookeeper
-```
-
-### profiles
-Dubbo Helm Chart introduces the concept of profiles, which are predefined sets
of configuration values. You can specify the desired profile using --set
profile=<profile>. For example, the demo profile provides a preset
configuration suitable for testing environments, with additional features
enabled and reduced resource requirements.
-
-To maintain consistency, all charts support the same profiles, even if some
settings don’t apply to a particular chart.
-
-The precedence of values is as follows:
-1. Explicitly set parameters (via --set)
-2. Values defined in the selected profile
-3. Default values of the chart
-
-In actual configuration, you do not need to include the nested path under
defaults. For example, you should use:
-```
---set some.field=true
-```
-
-instead of:
-```
---set defaults.some.field=true
-```
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/configmap.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/configmap.yaml
deleted file mode 100644
index e6db9bca..00000000
---
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/configmap.yaml
+++ /dev/null
@@ -1,32 +0,0 @@
-{{- $zoo := .Values.zookeeper -}}
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: zookeeper-scripts
- namespace: {{ .Release.Namespace }}
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-data:
- setup.sh: |-
- #!/bin/bash
- # Execute entrypoint as usual after obtaining ZOO_SERVER_ID
- # check ZOO_SERVER_ID in persistent volume via myid
- # if not present, set based on POD hostname
- if [[ -f "/bitnami/zookeeper/data/myid" ]]; then
- export ZOO_SERVER_ID="$(cat /bitnami/zookeeper/data/myid)"
- else
- HOSTNAME="$(hostname -s)"
- if [[ $HOSTNAME =~ (.*)-([0-9]+)$ ]]; then
- ORD=${BASH_REMATCH[2]}
- export ZOO_SERVER_ID="$((ORD + 1 ))"
- else
- echo "Failed to get index from hostname $HOST"
- exit 1
- fi
- fi
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/poddisruptionbudget.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/poddisruptionbudget.yaml
deleted file mode 100644
index 76c21b31..00000000
---
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/poddisruptionbudget.yaml
+++ /dev/null
@@ -1,20 +0,0 @@
-apiVersion: policy/v1
-kind: PodDisruptionBudget
-metadata:
- name: zookeeper
- namespace: {{ .Release.Namespace }}
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- minAvailable: 1
- selector:
- matchLabels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: zookeeper
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/service.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/service.yaml
deleted file mode 100644
index 3516ebcd..00000000
---
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/service.yaml
+++ /dev/null
@@ -1,53 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
- name: zookeeper
- namespace: {{ .Release.Namespace }}
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- ports:
- - name: tcp-client
- port: 2181
- targetPort: client
- - name: tcp-follower
- port: 2888
- targetPort: follower
- - name: tcp-election
- port: 3888
- targetPort: election
- selector:
- app: zookeeper
----
-apiVersion: v1
-kind: Service
-metadata:
- name: zookeeper-headless
- namespace: {{ .Release.Namespace }}
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- ports:
- - name: tcp-client
- port: 2181
- targetPort: client
- - name: tcp-follower
- port: 2888
- targetPort: follower
- - name: tcp-election
- port: 3888
- targetPort: election
- selector:
- app: zookeeper
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/statefulset.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/statefulset.yaml
deleted file mode 100644
index e00d214a..00000000
---
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/statefulset.yaml
+++ /dev/null
@@ -1,79 +0,0 @@
-{{- $zookeeper := .Values -}}
-{{- $zoo := .Values.zookeeper }}
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- name: zookeeper
- namespace: {{ .Release.Namespace }}
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default "unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
-spec:
- selector:
- matchLabels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- dubbo: zookeeper
- replicas: {{ $zookeeper.replicas }}
- serviceName: zookeeper
- updateStrategy:
- type: RollingUpdate
- rollingUpdate:
- partition: {{ $zookeeper.rollingPartition }}
- template:
- metadata:
- labels:
- app: zookeeper
- dubbo.apache.org/rev: {{ default "default" | quote }}
- install.operator.dubbo.apache.org/owning-resource: {{ default
"unknown" }}
- operator.dubbo.apache.org/component: "Zookeeper"
- dubbo: zookeeper
- release: {{ .Release.Name }}
- app.kubernetes.io/name: "register"
- spec:
- containers:
- - name: zookeeper
- {{- if contains "/" $zookeeper.image }}
- image: {{ $zookeeper.image }}
- {{- end }}
- imagePullPolicy: IfNotPresent
- env:
- - name: TICK_TIME
- value: {{ $zookeeper.tickTime | quote }}
- - name: INIT_LIMIT
- value: {{ $zookeeper.initLimit | quote }}
- - name: SYNC_LIMIT
- value: {{ $zookeeper.syncLimit | quote }}
- - name: DATA_LOG_DIR
- value: {{ $zoo.dataLogDir | quote }}
- - name: PORT_NUMBER
- value: {{ $zookeeper.portNumber | quote }}
- resources:
-{{ toYaml $zookeeper.resources | trim | indent 10 }}
- ports:
- - name: client
- containerPort: 2181
- - name: follower
- containerPort: 2888
- - name: election
- containerPort: 3888
- securityContext:
- allowPrivilegeEscalation: false
- readOnlyRootFilesystem: false
- runAsNonRoot: false
- volumeMounts:
- - name: data
- mountPath: /var/lib/zookeeper
- volumes:
- - name: scripts
- configMap:
- name: zookeeper-scripts
- defaultMode: 0755
- - name: data
- emptyDir:
- medium: Memory
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/zzz_profile.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/zzz_profile.yaml
deleted file mode 100644
index 4ac6dafa..00000000
---
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/zzz_profile.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-{{- if $.Values.defaults }}
-{{ fail (cat
- "`--set defaults.foo=bar` with `--set foo=bar`. Defaults set:\n"
- ($.Values.defaults | toYaml |nindent 4) ) }}
-{{- end }}
-
-{{- $defaults := $.Values._internal_default_values_not_set }}
-{{- $_ := unset $.Values "_internal_default_values_not_set " }}
-{{- $profile := dict }}
-{{- if false }}
-{{- $a := mustMergeOverwrite $defaults ($profile.global) ($.Values.global |
default dict) }}
-{{- end }}
-{{- $b := set $ "Values" (mustMergeOverwrite $defaults $.Values) }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
deleted file mode 100644
index 4574e12a..00000000
--- a/manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
+++ /dev/null
@@ -1,41 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-_internal_default_values_not_set:
- rollingPartition: ""
- # Number of replicas for the Deployment.
- replicas: 1
- # Deploy the required container images.
- image: docker.io/zookeeper:3.9.4
- # The size of application resources required for deployment.
- resources:
- requests:
- cpu: 250m
- memory: 256Mi
- # The number of milliseconds of each tick
- tickTime: 2000
- # The number of ticks that the initial
- # synchronization phase can take
- initLimit: 10
- # The number of ticks that can pass between
- # sending a request and getting an acknowledgement
- syncLimit: 5
- # the directory where the snapshot is stored.
- # do not use /tmp for storage, /tmp here is just
- # example sakes.
- dataLogDir: ""
- # the port at which the clients will connect
- portNumber: 2181
-