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 2fd1a5d7 [charts] Initial charts framework (#614)
2fd1a5d7 is described below
commit 2fd1a5d7ba5ff27902f77db6631b05ad7b28f03b
Author: Jian Zhong <[email protected]>
AuthorDate: Wed Feb 19 16:39:16 2025 +0800
[charts] Initial charts framework (#614)
---
manifests/charts/admin/.helmignore | 22 ---
manifests/charts/admin/Chart.yaml | 21 ++-
manifests/charts/admin/files/profile-demo.yaml | 14 ++
.../templates/_helpers.tpl} | 0
manifests/charts/admin/values.yaml | 2 -
manifests/charts/base/.helmignore | 23 ----
manifests/charts/base/Chart.yaml | 11 +-
manifests/charts/base/README.md | 2 -
manifests/charts/base/files/profile-demo.yaml | 14 ++
.../dubbo-control/register-discovery/.helmignore | 23 ----
.../dubbo-control/register-discovery/Chart.yaml | 18 ---
.../dubbo-control/register-discovery/README.md | 59 --------
.../register-discovery/nacos}/Chart.yaml | 15 +-
.../register-discovery/nacos/templates/NOTES.txt | 22 +++
.../nacos/templates/_helpers.tpl | 62 +++++++++
.../nacos => nacos/templates}/configmap.yaml | 0
.../nacos => nacos/templates}/service.yaml | 0
.../nacos => nacos/templates}/statefulset.yaml | 0
.../register-discovery/nacos/values.yaml | 151 ++++++++++++++++++++
.../register-discovery/templates/NOTES.txt | 31 -----
.../register-discovery/templates/_helpers.tpl | 143 -------------------
.../register-discovery/templates/zzz_profile.yaml | 19 ---
.../register-discovery/zookeeper}/Chart.yaml | 15 +-
.../zookeeper/templates/NOTES.txt | 22 +++
.../zookeeper/templates/_helpers.tpl | 62 +++++++++
.../templates}/configmap.yaml | 0
.../zookeeper => zookeeper/templates}/service.yaml | 0
.../templates}/statefulset.yaml | 0
.../register-discovery/{ => zookeeper}/values.yaml | 153 +--------------------
29 files changed, 379 insertions(+), 525 deletions(-)
diff --git a/manifests/charts/admin/.helmignore
b/manifests/charts/admin/.helmignore
deleted file mode 100644
index 50af0317..00000000
--- a/manifests/charts/admin/.helmignore
+++ /dev/null
@@ -1,22 +0,0 @@
-# Patterns to ignore when building packages.
-# This supports shell glob matching, relative path matching, and
-# negation (prefixed with !). Only one pattern per line.
-.DS_Store
-# Common VCS dirs
-.git/
-.gitignore
-.bzr/
-.bzrignore
-.hg/
-.hgignore
-.svn/
-# Common backup files
-*.swp
-*.bak
-*.tmp
-*~
-# Various IDEs
-.project
-.idea/
-*.tmproj
-.vscode/
diff --git a/manifests/charts/admin/Chart.yaml
b/manifests/charts/admin/Chart.yaml
index 0cc91a24..22a62398 100644
--- a/manifests/charts/admin/Chart.yaml
+++ b/manifests/charts/admin/Chart.yaml
@@ -13,22 +13,17 @@
# 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
-description: Admin is an application within the service governance control
plane
- responsible for functions such as service governance and visual
representation of microservice clusters.
-apiVersion: v2
-appVersion: 0.1.0
-kubeVersion: '>=1.28.0-0'
-
+description: Helm chart for dubbo admin dashboard.
+version: 1.0.0
+appVersion: 1.0.0
maintainers:
-- name: mfordjody
- email: [email protected]
-
+ - name: mfordjody
+ email: [email protected]
sources:
-- https://github.com/apache/dubbo-kubernetes
-- https://dubbo.apache.org
-version: 3.3.0
+ - https://dubbo.apache.org
+ - https://github.com/apache/dubbo-kubernetes
diff --git a/manifests/charts/admin/files/profile-demo.yaml
b/manifests/charts/admin/files/profile-demo.yaml
index e69de29b..13878a13 100644
--- a/manifests/charts/admin/files/profile-demo.yaml
+++ b/manifests/charts/admin/files/profile-demo.yaml
@@ -0,0 +1,14 @@
+# 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.
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/files/profile-demo.yaml
b/manifests/charts/admin/templates/_helpers.tpl
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/files/profile-demo.yaml
rename to manifests/charts/admin/templates/_helpers.tpl
diff --git a/manifests/charts/admin/values.yaml
b/manifests/charts/admin/values.yaml
index f2b6fd56..25422bba 100644
--- a/manifests/charts/admin/values.yaml
+++ b/manifests/charts/admin/values.yaml
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-## Specifies the type of Kubernetes resource, such as "Deployment" or
"StatefulSet."
-
deployType: Deployment
## Override the namespace where the resource is deployed.
diff --git a/manifests/charts/base/.helmignore
b/manifests/charts/base/.helmignore
deleted file mode 100644
index 0e8a0eb3..00000000
--- a/manifests/charts/base/.helmignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Patterns to ignore when building packages.
-# This supports shell glob matching, relative path matching, and
-# negation (prefixed with !). Only one pattern per line.
-.DS_Store
-# Common VCS dirs
-.git/
-.gitignore
-.bzr/
-.bzrignore
-.hg/
-.hgignore
-.svn/
-# Common backup files
-*.swp
-*.bak
-*.tmp
-*.orig
-*~
-# Various IDEs
-.project
-.idea/
-*.tmproj
-.vscode/
diff --git a/manifests/charts/base/Chart.yaml b/manifests/charts/base/Chart.yaml
index 0bac1d7b..3bb87882 100644
--- a/manifests/charts/base/Chart.yaml
+++ b/manifests/charts/base/Chart.yaml
@@ -14,15 +14,16 @@
# limitations under the License.
apiVersion: v2
+annotations:
+ licenses: Apache-2.0
name: base
+home: https://github.com/apache/dubbo-kubernetes
description: Helm chart for deploying dubbo cluster resources and CRDs.
-appVersion: 0.1.0
-
+version: 1.0.0
+appVersion: 1.0.0
maintainers:
- name: mfordjody
email: [email protected]
-
sources:
- - https://github.com/apache/dubbo-kubernetes
- https://dubbo.apache.org
-version: 3.3.0
+ - https://github.com/apache/dubbo-kubernetes
diff --git a/manifests/charts/base/README.md b/manifests/charts/base/README.md
deleted file mode 100644
index cdd196eb..00000000
--- a/manifests/charts/base/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# Dubbo base Helm Charts
-This chart installs Dubbo CRD.
\ No newline at end of file
diff --git a/manifests/charts/base/files/profile-demo.yaml
b/manifests/charts/base/files/profile-demo.yaml
index e69de29b..13878a13 100644
--- a/manifests/charts/base/files/profile-demo.yaml
+++ b/manifests/charts/base/files/profile-demo.yaml
@@ -0,0 +1,14 @@
+# 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.
\ No newline at end of file
diff --git a/manifests/charts/dubbo-control/register-discovery/.helmignore
b/manifests/charts/dubbo-control/register-discovery/.helmignore
deleted file mode 100644
index 0e8a0eb3..00000000
--- a/manifests/charts/dubbo-control/register-discovery/.helmignore
+++ /dev/null
@@ -1,23 +0,0 @@
-# Patterns to ignore when building packages.
-# This supports shell glob matching, relative path matching, and
-# negation (prefixed with !). Only one pattern per line.
-.DS_Store
-# Common VCS dirs
-.git/
-.gitignore
-.bzr/
-.bzrignore
-.hg/
-.hgignore
-.svn/
-# Common backup files
-*.swp
-*.bak
-*.tmp
-*.orig
-*~
-# Various IDEs
-.project
-.idea/
-*.tmproj
-.vscode/
diff --git a/manifests/charts/dubbo-control/register-discovery/Chart.yaml
b/manifests/charts/dubbo-control/register-discovery/Chart.yaml
deleted file mode 100644
index 675d130b..00000000
--- a/manifests/charts/dubbo-control/register-discovery/Chart.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-annotations:
- licenses: Apache-2.0
-
-name: register-discovery
-home: https://github.com/apache/dubbo-kubernetes
-description: ""
-apiVersion: v2
-appVersion: 0.1.0
-kubeVersion: '>=1.28.0-0'
-
-maintainers:
- - name: mfordjody
- email: [email protected]
-
-sources:
- - https://github.com/apache/dubbo-kubernetes
- - https://dubbo.apache.org
-version: 3.3.0
diff --git a/manifests/charts/dubbo-control/register-discovery/README.md
b/manifests/charts/dubbo-control/register-discovery/README.md
deleted file mode 100644
index b2bf0572..00000000
--- a/manifests/charts/dubbo-control/register-discovery/README.md
+++ /dev/null
@@ -1,59 +0,0 @@
-# Register-Discovery
-
-
-
-
-## Values
-
-### ZooKeeper
-
-| Key | Description
| Default |
-|---------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------|
-| `zookeeper.enabled` | ZooKeeper
Status for Admin.
| `true` |
-| `zookeeper.dataLogDir` | Dedicated
data log directory.
| `""` |
-| `zookeeper.tickTime` | Basic time
unit (in milliseconds) used by ZooKeeper for heartbeats.
| `2000` |
-| `zookeeper.initLimit` | ZooKeeper
uses to limit the length of time the ZooKeeper servers in quorum have to
connect to a leader. | `10` |
-| `zookeeper.syncLimit` | How far out
of date a server can be from a leader.
| `5` |
-| `zookeeper.preAllocSize` | Block size
for transaction log file.
| `65536` |
-| `zookeeper.snapCount` | The number
of transactions recorded in the transaction log before a snapshot can be taken
(and the transaction log rolled). | `100000` |
-| `zookeeper.fourlwCommandsWhitelist` | A list of
comma separated Four Letter Words commands that can be executed.
| `srvr, mntr, ruok` |
-| `zookeeper.listenOnAllIPs` | Allow
ZooKeeper to listen for connections from its peers on all available IP
addresses. | `false` |
-| `zookeeper.autopurge.snapRetainCount` | The most
recent snapshots amount (and corresponding transaction logs) to retain.
| `3` |
-| `zookeeper.autopurge.purgeInterval` | The time
interval (in hours) for which the purge task has to be triggered.
| `0` |
-| `zookeeper.maxClientCnxns` | Limits the
number of concurrent connections that a single client may make to a single
member of the ZooKeeper ensemble. | `60` |
-| `zookeeper.maxSessionTimeout` | Maximum
session timeout (in milliseconds) that the server will allow the client to
negotiate. | `40000` |
-| `zookeeper.heapSize` | Size (in MB)
for the Java Heap options (Xmx and Xms).
| `1024` |
-| `zookeeper.logLevel` | Log level
for the ZooKeeper server. ERROR by default.
| `ERROR` |
-| `zookeeper.auth.client.enabled` | Enable
ZooKeeper client-server authentication. It uses SASL/Digest-MD5.
| `false` |
-| `zookeeper.auth.client.clientUser` | User that
will use ZooKeeper clients to auth.
| `""` |
-| `zookeeper.auth.client.clientPassword` | Password
that will use ZooKeeper clients to auth.
| `""` |
-| `zookeeper.auth.client.serverUsers` | Comma,
semicolon or whitespace separated list of user to be created.
| `""` |
-| `zookeeper.auth.client.serverPasswords` | Comma,
semicolon or whitespace separated list of passwords to assign to users when
created. | `""` |
-| `zookeeper.auth.client.existingSecret` | Use existing
secret (ignores previous passwords).
| `""` |
-| `zookeeper.auth.quorum.enabled` | Enable
ZooKeeper server-server authentication. It uses SASL/Digest-MD5.
| `false` |
-| `zookeeper.auth.quorum.learnerUser` | User that
the ZooKeeper quorumLearner will use to authenticate to quorumServers.
| `""` |
-| `zookeeper.auth.quorum.learnerPassword` | Password
that the ZooKeeper quorumLearner will use to authenticate to quorumServers.
| `""` |
-| `zookeeper.auth.quorum.serverUsers` | Comma,
semicolon or whitespace separated list of users for the quorumServers.
| `""` |
-| `zookeeper.auth.quorum.serverPasswords` | Comma,
semicolon or whitespace separated list of passwords to assign to users when
created. | `""` |
-| `zookeeper.auth.quorum.existingSecret` | Use existing
secret (ignores previous passwords).
| `""` |
-
-### Nacos
-
-| Key | Description
| Default
|
-|-----------------------------------------------------------|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
-| `nacos.enabled` | Nacos Status for
Admin.
| `false`
|
-| `nacos.mode` | Run Mode
standalone or cluster.
| `standalone`
|
-| `nacos.clusterDomain` | Cluster Domain
Suffix for Nacos.
| `cluster.local`
|
-| `nacos.plugin.enabled` | Plugin Status
for Nacos.
| `true`
|
-| `nacos.plugin.image.registry` | Plugin Image
Name for Nacos.
| `nacos/nacos-peer-finder-plugin`
|
-| `nacos.plugin.image.tag` | Plugin Version
Tag for Nacos.
| `1.1`
|
-| `nacos.plugin.image.pullPolicy` | Plugin Pull
Policy for Nacos.
| `IfNotPresent`
|
-| `nacos.serverPort` | Define the
service port for the Nacos.
| `8848`
|
-| `nacos.preferhostmode` | Enable Nacos
cluster node domain name support
| `~`
|
-| `nacos.storage.type` | Nacos data
storage method `mysql` or `embedded`. The `embedded` supports either standalone
or cluster mode. | `embedded`
|
-| `nacos.storage.db.host` | Specify the
database host for Nacos storing configuration data.
| `localhost`
|
-| `nacos.storage.db.name` | Specify the
database name for Nacos storing configuration data.
| `nacos`
|
-| `nacos.storage.db.port` | Specify the
database port for Nacos storing configuration data.
| `3306`
|
-| `nacos.storage.db.username` | Specify the
database username for Nacos storing configuration data.
| `mysql`
|
-| `nacos.storage.db.password` | Specify the
database password for Nacos storing configuration data.
| `passw0rd`
|
-| `nacos.storage.db.param` | Specify the
database url parameter for Nacos storing configuration data.
|
`characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false`
|
\ No newline at end of file
diff --git a/manifests/charts/base/Chart.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
similarity index 84%
copy from manifests/charts/base/Chart.yaml
copy to manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
index 0bac1d7b..0a365275 100644
--- a/manifests/charts/base/Chart.yaml
+++ b/manifests/charts/dubbo-control/register-discovery/nacos/Chart.yaml
@@ -14,15 +14,16 @@
# limitations under the License.
apiVersion: v2
-name: base
-description: Helm chart for deploying dubbo cluster resources and CRDs.
-appVersion: 0.1.0
-
+annotations:
+ licenses: Apache-2.0
+name: nacos
+home: https://github.com/apache/dubbo-kubernetes
+description: Helm chart for nacos register plane.
+version: 1.0.0
+appVersion: 1.0.0
maintainers:
- name: mfordjody
email: [email protected]
-
sources:
- - https://github.com/apache/dubbo-kubernetes
- https://dubbo.apache.org
-version: 3.3.0
+ - https://github.com/apache/dubbo-kubernetes
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/NOTES.txt
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/NOTES.txt
new file mode 100644
index 00000000..68957f97
--- /dev/null
+++
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/NOTES.txt
@@ -0,0 +1,22 @@
+1. Get the application URL by running these commands:
+{{- if .Values.ingress.enabled }}
+{{- range $host := .Values.ingress.hosts }}
+ {{- range .paths }}
+ http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
+ {{- end }}
+{{- end }}
+{{- else if contains "NodePort" .Values.service.type }}
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o
jsonpath="{.spec.ports[0].nodePort}" services {{ include "nacos.fullname" . }})
+ 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 }}
+ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
+ You can watch its status by running 'kubectl get --namespace {{
.Release.Namespace }} svc -w {{ include "nacos.fullname" . }}'
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{
include "nacos.fullname" . }} --template "{{"{{ range (index
.status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
+ echo http://$SERVICE_IP:{{ .Values.service.port }}
+{{- else if contains "ClusterIP" .Values.service.type }}
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l
"app.kubernetes.io/name={{ include "nacos.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 }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/templates/_helpers.tpl
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/_helpers.tpl
new file mode 100644
index 00000000..7ac8e6db
--- /dev/null
+++
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/_helpers.tpl
@@ -0,0 +1,62 @@
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "nacos.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to
this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "nacos.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "nacos.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 |
trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "nacos.labels" -}}
+helm.sh/chart: {{ include "nacos.chart" . }}
+{{ include "nacos.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "nacos.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "nacos.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
+
+{{/*
+Create the name of the service account to use
+*/}}
+{{- define "nacos.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create }}
+{{- default (include "nacos.fullname" .) .Values.serviceAccount.name }}
+{{- else }}
+{{- default "default" .Values.serviceAccount.name }}
+{{- end }}
+{{- end }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/nacos/configmap.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/configmap.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/nacos/configmap.yaml
rename to
manifests/charts/dubbo-control/register-discovery/nacos/templates/configmap.yaml
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/nacos/service.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/service.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/nacos/service.yaml
rename to
manifests/charts/dubbo-control/register-discovery/nacos/templates/service.yaml
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/nacos/statefulset.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/templates/statefulset.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/nacos/statefulset.yaml
rename to
manifests/charts/dubbo-control/register-discovery/nacos/templates/statefulset.yaml
diff --git
a/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
b/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
new file mode 100644
index 00000000..0d975919
--- /dev/null
+++ b/manifests/charts/dubbo-control/register-discovery/nacos/values.yaml
@@ -0,0 +1,151 @@
+_internal_default_values_not_set:
+ global:
+ dubboNamespace: dubbo-system
+nacos:
+ ## Whether to enable the nacos.
+ enabled: true
+ ## Specifies the mode in which nacos is running (standalone, cluster, etc.).
+ mode: standalone
+ ## Override the namespace where the resource is deployed.
+ namespaceOverride: ~
+ ## Labels to attach to the resource.
+ labels: ~
+ ## Annotations to attach to the resource.
+ annotations: ~
+ ## Specifies the cluster's domain name for DNS resolution.
+ clusterDomain: cluster.local
+ ## Number of replicas for the Deployment.
+ replicas: 1
+ plugin:
+ # Whether to enable the plugin.
+ enabled: true
+ # Configure the container image for the plugin.
+ image:
+ # Docker registry where the plugin image is hosted.
+ registry: nacos/nacos-peer-finder-plugin
+ # Specifies the image tag to use.
+ tag: 1.1
+ # Image pull policy (IfNotPresent, Always, Never).
+ pullPolicy: IfNotPresent
+ ## Configure the application image
+ image:
+ # Source of the container image.
+ registry: docker.io/nacos/nacos-server
+ # Version tag of the container image.
+ tag: v2.2.3
+ # Image pull policy, available options are: Always, IfNotPresent, Never.
+ pullPolicy: IfNotPresent
+ securityContext:
+ # Whether to enable the security context.
+ enabled: true
+ # Defines the POSIX group ID that owns the pod's volumes.
+ fsGroup: 1001
+ containerSecurityContext:
+ # Whether to enable the container security context.
+ enabled: true
+ # Specifies the user ID under which the container should run.
+ runAsUser: 1001
+ # Set to 'true' to run the container as a non-root user.
+ runAsNonRoot: true
+ # Set to 'false' to disallow privilege escalation for the container.
+ allowPrivilegeEscalation: false
+ service:
+ # Labels to be applied to the service.
+ labels: ~
+ # Annotations to be added to the service.
+ annotations: ~
+ # Specifies the service type (ClusterIP, NodePort, LoadBalancer, etc.).
+ type: NodePort
+ # Specifies the ClusterIP for the service, or use "~" to auto-assign.
+ clusterIP: ~
+ # List of external IPs to associate with the service.
+ externalIPs: ~
+ # Specifies the IP address for a LoadBalancer service.
+ loadBalancerIP: ~
+ # Restrict access to the LoadBalancer by IP ranges.
+ loadBalancerSourceRanges: ~
+ # Specifies the LoadBalancer class (if applicable).
+ loadBalancerClass: ~
+ # Specifies the session affinity mode (None, ClientIP)
+ sessionAffinity: None
+ # Set to 'true' to publish endpoints for not-ready pods.
+ publishNotReadyAddresses: true
+ startupProbe:
+ # Delay before the probe is initiated.
+ initialDelaySeconds: 180
+ # How often to perform the probe.
+ periodSeconds: 5
+ # Time to wait for the probe to complete.
+ timeoutSeconds: 10
+ # Perform an HTTP GET request to check.
+ httpGet:
+ # The protocol used for the HTTP GET request (HTTP, HTTPS).
+ scheme: HTTP
+ # The port on which the HTTP GET request will be made.
+ port: 8848
+ # The path to use for the HTTP GET request.
+ path: /nacos/v1/console/health/readiness
+ readinessProbe:
+ # Delay before the probe is initiated.
+ initialDelaySeconds: 10
+ # How often to perform the probe.
+ periodSeconds: 5
+ # Time to wait for the probe to complete.
+ timeoutSeconds: 10
+ # Perform an HTTP GET request to check.
+ httpGet:
+ # The protocol used for the HTTP GET request (HTTP, HTTPS).
+ scheme: HTTP
+ # The port on which the HTTP GET request will be made.
+ port: 8848
+ # The path to use for the HTTP GET request.
+ path: /nacos/v1/console/health/readiness
+ livenessProbe:
+ # Delay before the probe is initiated.
+ initialDelaySeconds: 10
+ # How often to perform the probe.
+ periodSeconds: 5
+ # Time to wait for the probe to complete.
+ timeoutSeconds: 10
+ # Perform an HTTP GET request to check.
+ httpGet:
+ # The protocol used for the HTTP GET request (HTTP, HTTPS).
+ scheme: HTTP
+ # The port on which the HTTP GET request will be made.
+ port: 8848
+ # The path to use for the HTTP GET request.
+ path: /nacos/v1/console/health/liveness
+ resources:
+ # Maximum CPU and memory resources allowed for the container.
+ limits:
+ # CPU usage limit.
+ cpu: ~
+ # Memory usage limit.
+ memory: ~
+ # Initial CPU and memory resource requests for the container.
+ requests:
+ # CPU usage request.
+ cpu: ~
+ # Memory usage request.
+ memory: ~
+ # Specifies the port on which the server should run.
+ serverPort: 8848
+ # Specifies the preferred host mode (e.g., 'hostname').
+ preferhostmode: ~
+ storage:
+ # Specifies the storage type (embedded, mysql, etc.).
+ type: embedded
+ # For MySQL storage, you need to change the "embedded" to "mysql" before
you can use the db configuration.
+ db:
+ # Specifies the database host.
+ host: localhost
+ # Specifies the database name.
+ name: nacos
+ # Specifies the database port.
+ port: 3306
+ # Specifies the database username.
+ username: mysql
+ # Specifies the database password.
+ password: passw0rd
+ # Additional database connection parameters (if needed).
+ param: ""
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/NOTES.txt
b/manifests/charts/dubbo-control/register-discovery/templates/NOTES.txt
deleted file mode 100644
index 4a9f5259..00000000
--- a/manifests/charts/dubbo-control/register-discovery/templates/NOTES.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-⏳ Please wait for all the activated components to be deployed.
-
-🔄 Please wait a few minutes for other dependent components to finish deploying.
-
-{{- if .Values.zookeeper.enabled }}
-
-Dependency: ZooKeeper
-Version: {{ .Values.zookeeper.image.tag }}
-
-🚨 If you are using the Nacos registry, Please disable Zookeeper and enable
Nacos.
- Otherwise, Zookeeper is used by default.
-
-🎊 You have enabled the internal Register Center.
-{{- else if .Values.nacos.enabled }}
-
-Dependency: Nacos
-Version: {{ .Values.nacos.image.tag }}
-
-🎊 You have enabled the internal Register Center.
-{{- end }}
-
-{{- if and (eq .Values.zookeeper.enabled false) (eq .Values.nacos.enabled
false) }}
-Dependency: ❎
-
-🚫 You have disabled the internal Register Center.
-
-Please provide an external Register center to ensure proper service operation.
-
-{{- end }}
-
-🌹 For more details, please visit https://dubbo.apache.org.
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/_helpers.tpl
b/manifests/charts/dubbo-control/register-discovery/templates/_helpers.tpl
deleted file mode 100644
index 02cf4c70..00000000
--- a/manifests/charts/dubbo-control/register-discovery/templates/_helpers.tpl
+++ /dev/null
@@ -1,143 +0,0 @@
-{{/*
-Return the appropriate apiVersion for deployment or statefulset.
-*/}}
-{{- define "apiVersion" -}}
-{{- if and ($.Capabilities.APIVersions.Has "apps/v1") (semverCompare ">=
1.14-0" .Capabilities.KubeVersion.Version) }}
-{{- print "apps/v1" }}
-{{- else }}
-{{- print "extensions/v1beta1" }}
-{{- end }}
-{{- end }}
-
-{{/*
-Return the ZooKeeper client-server authentication credentials secret.
-*/}}
-{{- define "zoo.client.secretName" -}}
-{{- $zoo := .Values.registerCentre.zookeeper -}}
-{{- if $zoo.auth.client.existingSecret -}}
- {{- printf "%s" (tpl $zoo.auth.client.existingSecret $) -}}
-{{- else -}}
- {{- printf "%s-client-auth" (include "zoo.name" .) -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Return the ZooKeeper server-server authentication credentials secret.
-*/}}
-{{- define "zoo.quorum.secretName" -}}
-{{- $zoo := .Values.registerCentre.zookeeper -}}
-{{- if $zoo.auth.quorum.existingSecret -}}
- {{- printf "%s" (tpl $zoo.auth.quorum.existingSecret $) -}}
-{{- else -}}
- {{- printf "%s-quorum-auth" (include "zoo.name" .) -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Return ZooKeeper Labels to use.
-*/}}
-{{- define "zoo.labels" -}}
-app: {{ template "zoo.name" . }}
-app.kubernetes.io/name: {{ template "zoo.name" . }}
-helm.sh/chart: {{ include "zoo.name" . }}-{{ .Values.zookeeper.image.tag }}
-app.kubernetes.io/instance: {{ template "zoo.name" . }}
-app.kubernetes.io/component: {{ template "zoo.name" . }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Return Nacos Labels to use.
-*/}}
-{{- define "nacos.labels" -}}
-app: {{ template "nacos.name" . }}
-app.kubernetes.io/name: {{ template "nacos.name" . }}
-helm.sh/chart: {{ include "nacos.name" . }}-{{ .Values.nacos.image.tag }}
-app.kubernetes.io/instance: {{ template "nacos.name" . }}
-app.kubernetes.io/component: {{ template "nacos.name" . }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Return ZooKeeper matchLabels to use.
-*/}}
-{{- define "zoo.matchLabels" -}}
-app.kubernetes.io/name: {{ template "zoo.name" . }}
-helm.sh/chart: {{ include "zoo.name" . }}-{{ .Values.zookeeper.image.tag }}
-app.kubernetes.io/instance: {{ template "zoo.name" . }}
-app.kubernetes.io/component: {{ template "zoo.name" . }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Return Nacos matchLabels to use.
-*/}}
-{{- define "nacos.matchLabels" -}}
-app.kubernetes.io/name: {{ template "nacos.name" . }}
-helm.sh/chart: {{ include "nacos.name" . }}-{{ .Values.nacos.image.tag }}
-app.kubernetes.io/instance: {{ template "nacos.name" . }}
-app.kubernetes.io/component: {{ template "nacos.name" . }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Return ZooKeeper Name to use.
-*/}}
-{{- define "zoo.name" -}}
-{{- printf "zookeeper" -}}
-{{- end -}}
-
-{{/*
-Return Nacos Name to use.
-*/}}
-{{- define "nacos.name" -}}
-{{- printf "nacos" -}}
-{{- end -}}
-
-{{/*
-Return Dubbo Namespace to use.
-*/}}
-{{- define "admin.namespace" -}}
-{{- "dubbo-system" | default }}
-{{- end }}
-
-{{/*
-Return ZooKeeper Service Selector to use.
-*/}}
-{{- define "zoo.selector" -}}
-{{ include "zoo.name" . }}
-{{- end -}}
-
-{{/*
-Return Nacos Service Selector to use.
-*/}}
-{{- define "nacos.selector" -}}
-{{ include "nacos.name" . }}
-{{- end -}}
-
-{{/*
-Return ZooKeeper Client Port to use.
-*/}}
-{{- define "zoo.client" -}}
-{{- printf "2181" -}}
-{{- end -}}
-
-{{/*
-Return ZooKeeper Follower Port to use.
-*/}}
-{{- define "zoo.follower" -}}
-{{- printf "2888" -}}
-{{- end -}}
-
-{{/*
-Return ZooKeeper Election Port to use.
-*/}}
-{{- define "zoo.election" -}}
-{{- printf "3888" -}}
-{{- end -}}
-
-{{/*
-Return Nacos Port to use.
-*/}}
-{{- define "nacos.port" -}}
-{{- printf "8848" -}}
-{{- end -}}
\ No newline at end of file
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/zzz_profile.yaml
b/manifests/charts/dubbo-control/register-discovery/templates/zzz_profile.yaml
deleted file mode 100644
index 32c3348c..00000000
---
a/manifests/charts/dubbo-control/register-discovery/templates/zzz_profile.yaml
+++ /dev/null
@@ -1,19 +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 }}
-{{- with (coalesce ($.Values).profile ($.Values.global).profile) }}
-{{- with $.Files.Get (printf "files/profile-%s.yaml" .)}}
-{{- $profile = (. | fromYaml) }}
-{{- else }}
-{{ fail (cat "unknown profile" .) }}
-{{- end }}
-{{- end }}
-{{- if false }}
-{{- $a := mustMergeOverwrite $defaults ($profile.global) ($.Values.global |
default dict) }}
-{{- end }}
-{{- $b := set $ "Values" (mustMergeOverwrite $defaults $.Values) }}
diff --git a/manifests/charts/base/Chart.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
similarity index 83%
copy from manifests/charts/base/Chart.yaml
copy to manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
index 0bac1d7b..195eb053 100644
--- a/manifests/charts/base/Chart.yaml
+++ b/manifests/charts/dubbo-control/register-discovery/zookeeper/Chart.yaml
@@ -14,15 +14,16 @@
# limitations under the License.
apiVersion: v2
-name: base
-description: Helm chart for deploying dubbo cluster resources and CRDs.
-appVersion: 0.1.0
-
+annotations:
+ licenses: Apache-2.0
+name: zookeeper
+home: https://github.com/apache/dubbo-kubernetes
+description: Helm chart for zookeeper register plane.
+version: 1.0.0
+appVersion: 1.0.0
maintainers:
- name: mfordjody
email: [email protected]
-
sources:
- - https://github.com/apache/dubbo-kubernetes
- https://dubbo.apache.org
-version: 3.3.0
+ - https://github.com/apache/dubbo-kubernetes
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/NOTES.txt
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/NOTES.txt
new file mode 100644
index 00000000..d0323498
--- /dev/null
+++
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/NOTES.txt
@@ -0,0 +1,22 @@
+1. Get the application URL by running these commands:
+{{- if .Values.ingress.enabled }}
+{{- range $host := .Values.ingress.hosts }}
+ {{- range .paths }}
+ http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
+ {{- end }}
+{{- end }}
+{{- else if contains "NodePort" .Values.service.type }}
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o
jsonpath="{.spec.ports[0].nodePort}" services {{ include "zookeeper.fullname" .
}})
+ 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 }}
+ NOTE: It may take a few minutes for the LoadBalancer IP to be available.
+ You can watch its status by running 'kubectl get --namespace {{
.Release.Namespace }} svc -w {{ include "zookeeper.fullname" . }}'
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{
include "zookeeper.fullname" . }} --template "{{"{{ range (index
.status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
+ echo http://$SERVICE_IP:{{ .Values.service.port }}
+{{- else if contains "ClusterIP" .Values.service.type }}
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l
"app.kubernetes.io/name={{ include "zookeeper.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 }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/_helpers.tpl
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/_helpers.tpl
new file mode 100644
index 00000000..64d8ce47
--- /dev/null
+++
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/_helpers.tpl
@@ -0,0 +1,62 @@
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "zookeeper.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+We truncate at 63 chars because some Kubernetes name fields are limited to
this (by the DNS naming spec).
+If release name contains chart name it will be used as a full name.
+*/}}
+{{- define "zookeeper.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "zookeeper.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 |
trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "zookeeper.labels" -}}
+helm.sh/chart: {{ include "zookeeper.chart" . }}
+{{ include "zookeeper.selectorLabels" . }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "zookeeper.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "zookeeper.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
+
+{{/*
+Create the name of the service account to use
+*/}}
+{{- define "zookeeper.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create }}
+{{- default (include "zookeeper.fullname" .) .Values.serviceAccount.name }}
+{{- else }}
+{{- default "default" .Values.serviceAccount.name }}
+{{- end }}
+{{- end }}
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/zookeeper/configmap.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/configmap.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/zookeeper/configmap.yaml
rename to
manifests/charts/dubbo-control/register-discovery/zookeeper/templates/configmap.yaml
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/zookeeper/service.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/service.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/zookeeper/service.yaml
rename to
manifests/charts/dubbo-control/register-discovery/zookeeper/templates/service.yaml
diff --git
a/manifests/charts/dubbo-control/register-discovery/templates/zookeeper/statefulset.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/templates/statefulset.yaml
similarity index 100%
rename from
manifests/charts/dubbo-control/register-discovery/templates/zookeeper/statefulset.yaml
rename to
manifests/charts/dubbo-control/register-discovery/zookeeper/templates/statefulset.yaml
diff --git a/manifests/charts/dubbo-control/register-discovery/values.yaml
b/manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
similarity index 59%
rename from manifests/charts/dubbo-control/register-discovery/values.yaml
rename to
manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
index f328d2e6..a913fe5c 100644
--- a/manifests/charts/dubbo-control/register-discovery/values.yaml
+++ b/manifests/charts/dubbo-control/register-discovery/zookeeper/values.yaml
@@ -1,5 +1,5 @@
_internal_default_values_not_set:
-# global:
+ global:
dubboNamespace: dubbo-system
zookeeper:
## Whether to enable the zookeeper.
@@ -173,153 +173,4 @@ zookeeper:
# auth.quorum.serverPasswords Comma, semicolon or whitespace separated
list of passwords to assign to users when created.
serverPasswords: ""
# auth.quorum.existingSecret Use existing secret (ignores previous
passwords).
- existingSecret: ""
-
-nacos:
- ## Whether to enable the nacos.
- enabled: true
- ## Specifies the mode in which nacos is running (standalone, cluster, etc.).
- mode: standalone
- ## Override the namespace where the resource is deployed.
- namespaceOverride: ~
- ## Labels to attach to the resource.
- labels: ~
- ## Annotations to attach to the resource.
- annotations: ~
- ## Specifies the cluster's domain name for DNS resolution.
- clusterDomain: cluster.local
- ## Number of replicas for the Deployment.
- replicas: 1
- plugin:
- # Whether to enable the plugin.
- enabled: true
- # Configure the container image for the plugin.
- image:
- # Docker registry where the plugin image is hosted.
- registry: nacos/nacos-peer-finder-plugin
- # Specifies the image tag to use.
- tag: 1.1
- # Image pull policy (IfNotPresent, Always, Never).
- pullPolicy: IfNotPresent
- ## Configure the application image
- image:
- # Source of the container image.
- registry: docker.io/nacos/nacos-server
- # Version tag of the container image.
- tag: v2.2.3
- # Image pull policy, available options are: Always, IfNotPresent, Never.
- pullPolicy: IfNotPresent
- securityContext:
- # Whether to enable the security context.
- enabled: true
- # Defines the POSIX group ID that owns the pod's volumes.
- fsGroup: 1001
- containerSecurityContext:
- # Whether to enable the container security context.
- enabled: true
- # Specifies the user ID under which the container should run.
- runAsUser: 1001
- # Set to 'true' to run the container as a non-root user.
- runAsNonRoot: true
- # Set to 'false' to disallow privilege escalation for the container.
- allowPrivilegeEscalation: false
- service:
- # Labels to be applied to the service.
- labels: ~
- # Annotations to be added to the service.
- annotations: ~
- # Specifies the service type (ClusterIP, NodePort, LoadBalancer, etc.).
- type: NodePort
- # Specifies the ClusterIP for the service, or use "~" to auto-assign.
- clusterIP: ~
- # List of external IPs to associate with the service.
- externalIPs: ~
- # Specifies the IP address for a LoadBalancer service.
- loadBalancerIP: ~
- # Restrict access to the LoadBalancer by IP ranges.
- loadBalancerSourceRanges: ~
- # Specifies the LoadBalancer class (if applicable).
- loadBalancerClass: ~
- # Specifies the session affinity mode (None, ClientIP)
- sessionAffinity: None
- # Set to 'true' to publish endpoints for not-ready pods.
- publishNotReadyAddresses: true
- startupProbe:
- # Delay before the probe is initiated.
- initialDelaySeconds: 180
- # How often to perform the probe.
- periodSeconds: 5
- # Time to wait for the probe to complete.
- timeoutSeconds: 10
- # Perform an HTTP GET request to check.
- httpGet:
- # The protocol used for the HTTP GET request (HTTP, HTTPS).
- scheme: HTTP
- # The port on which the HTTP GET request will be made.
- port: 8848
- # The path to use for the HTTP GET request.
- path: /nacos/v1/console/health/readiness
- readinessProbe:
- # Delay before the probe is initiated.
- initialDelaySeconds: 10
- # How often to perform the probe.
- periodSeconds: 5
- # Time to wait for the probe to complete.
- timeoutSeconds: 10
- # Perform an HTTP GET request to check.
- httpGet:
- # The protocol used for the HTTP GET request (HTTP, HTTPS).
- scheme: HTTP
- # The port on which the HTTP GET request will be made.
- port: 8848
- # The path to use for the HTTP GET request.
- path: /nacos/v1/console/health/readiness
- livenessProbe:
- # Delay before the probe is initiated.
- initialDelaySeconds: 10
- # How often to perform the probe.
- periodSeconds: 5
- # Time to wait for the probe to complete.
- timeoutSeconds: 10
- # Perform an HTTP GET request to check.
- httpGet:
- # The protocol used for the HTTP GET request (HTTP, HTTPS).
- scheme: HTTP
- # The port on which the HTTP GET request will be made.
- port: 8848
- # The path to use for the HTTP GET request.
- path: /nacos/v1/console/health/liveness
- resources:
- # Maximum CPU and memory resources allowed for the container.
- limits:
- # CPU usage limit.
- cpu: ~
- # Memory usage limit.
- memory: ~
- # Initial CPU and memory resource requests for the container.
- requests:
- # CPU usage request.
- cpu: ~
- # Memory usage request.
- memory: ~
- # Specifies the port on which the server should run.
- serverPort: 8848
- # Specifies the preferred host mode (e.g., 'hostname').
- preferhostmode: ~
- storage:
- # Specifies the storage type (embedded, mysql, etc.).
- type: embedded
- # For MySQL storage, you need to change the "embedded" to "mysql" before
you can use the db configuration.
- db:
- # Specifies the database host.
- host: localhost
- # Specifies the database name.
- name: nacos
- # Specifies the database port.
- port: 3306
- # Specifies the database username.
- username: mysql
- # Specifies the database password.
- password: passw0rd
- # Additional database connection parameters (if needed).
- param: ""
\ No newline at end of file
+ existingSecret: ""
\ No newline at end of file