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 a4cc6841 chore(Helm):delete obsolete nacos charts and add README (#273)
a4cc6841 is described below
commit a4cc684105e129f229223f1c16818a8e9f88d041
Author: Jian Zhong <[email protected]>
AuthorDate: Sat Apr 27 18:00:41 2024 +0800
chore(Helm):delete obsolete nacos charts and add README (#273)
---
deploy/charts/README.md | 2 +
deploy/charts/nacos/.helmignore | 22 ---
deploy/charts/nacos/Chart.yaml | 28 ----
deploy/charts/nacos/README.md | 111 --------------
deploy/charts/nacos/templates/NOTES.txt | 0
deploy/charts/nacos/templates/_charts.tpl | 111 --------------
deploy/charts/nacos/templates/configmap.yaml | 31 ----
deploy/charts/nacos/templates/extra-list.yaml | 19 ---
deploy/charts/nacos/templates/networkpolicy.yaml | 42 ------
deploy/charts/nacos/templates/pdb.yaml | 33 ----
deploy/charts/nacos/templates/statefulset.yaml | 179 ----------------------
deploy/charts/nacos/templates/svc-headless.yaml | 41 -----
deploy/charts/nacos/templates/svc.yaml | 42 ------
deploy/charts/nacos/values.yaml | 183 -----------------------
14 files changed, 2 insertions(+), 842 deletions(-)
diff --git a/deploy/charts/README.md b/deploy/charts/README.md
new file mode 100644
index 00000000..51e1fd56
--- /dev/null
+++ b/deploy/charts/README.md
@@ -0,0 +1,2 @@
+# Admin Helm Charts
+Compatible with Helm 3+ for installation on Kubernetes by Admin.
diff --git a/deploy/charts/nacos/.helmignore b/deploy/charts/nacos/.helmignore
deleted file mode 100644
index 50af0317..00000000
--- a/deploy/charts/nacos/.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/deploy/charts/nacos/Chart.yaml b/deploy/charts/nacos/Chart.yaml
deleted file mode 100644
index 7b0d1815..00000000
--- a/deploy/charts/nacos/Chart.yaml
+++ /dev/null
@@ -1,28 +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
-appVersion: "1.0"
-name: nacos
-description: an easy-to-use dynamic service discovery, configuration and
service management platform for building cloud native applications.
-home: https://nacos.io
-kubeVersion: '>=1.20.0-0'
-maintainers:
- - email: [email protected]
- name: dubbo
-sources:
- - https://github.com/alibaba/nacos
-type: application
-version: 0.1.5
diff --git a/deploy/charts/nacos/README.md b/deploy/charts/nacos/README.md
deleted file mode 100644
index f1135217..00000000
--- a/deploy/charts/nacos/README.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# Nacos Helm Chart
-
-* Apache [Nacos](https://nacos.io/) is committed to help you discover,
configure, and manage your microservices. It provides a set of simple and
useful features enabling you to realize dynamic service discovery, service
configuration, service metadata and traffic management.
-
-
-## Tips
-If you use a custom database, please initialize the database
[script](https://github.com/alibaba/nacos/blob/develop/distribution/conf/mysql-schema.sql)
yourself first.
-
-
-## Installing the Chart
-
-To install the my-release deployment:
-
-```shell
-helm install my-release nacos
-```
-
-## Uninstalling the Chart
-
-To uninstall/delete the my-release deployment:
-
-```shell
-helm delete my-release
-```
-
-The command deploys Nacos on the Kubernetes cluster in the default
configuration. It will run without a mysql chart and persistent volume. The
[configuration](#configuration) section lists the parameters that can be
configured during installation.
-
-### Service & Configuration Management
-
-#### Service registration
-
-```shell
-curl -X POST
'http://$NODE_IP:$NODE_PORT/nacos/v1/ns/instance?serviceName=nacos.naming.serviceName&ip=20.18.7.10&port=8080'
-```
-
-#### Service discovery
-
-```shell
-curl -X GET
'http://$NODE_IP:$NODE_PORT/nacos/v1/ns/instance/list?serviceName=nacos.naming.serviceName'
-```
-
-#### Publish config
-
-```shell
-curl -X POST
"http://$NODE_IP:$NODE_PORT/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test&content=helloWorld"
-```
-
-#### Get config
-
-```shell
-curl -X GET
"http://$NODE_IP:$NODE_PORT/nacos/v1/cs/configs?dataId=nacos.cfg.dataId&group=test"
-```
-
-## Configuration
-
-The following table lists the configurable parameters of the Skywalking chart
and their default values.
-
-| Parameter | Description
| Default
|
-|------------------------------|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
-| `global.mode` | Nacos Mode standalone or cluster.
| `standalone`
|
-| `nodeSelector` | Nacos labels for pod assignment.
| `{}`
|
-| `affinity` | Nacos affinity policy.
| `{}`
|
-| `tolerations` | Nacos tolerations.
| `{}`
|
-| `replicas` | Number of desired nacos pods, the number
should be 1 as run standalone mode. | `1`
|
-| `maxUnavailable` | The parameter for specifying the maximum
allowed number of unavailable replicas. | `[]`
|
-| `tolerations` | allow pods to be scheduled on nodes with
specific taints by tolerating those taints. | `[]`
|
-| `domainName` | Enable Nacos cluster node domain name
support. |
`cluster.local`
|
-| `resources.limits` | Resource Object Limits.
| `{}`
|
-| `resources.requests` | Resource Object Requests.
| `{}`
|
-| `image.registry` | Nacos container image registry.
| `nacos/nacos-server`
|
-| `image.repository` | Nacos container image repository.
| `nacos/nacos-server`
|
-| `image.tag` | Nacos container image tag.
| `latest`
|
-| `image.pullPolicy` | Nacos container image pull policy.
| `IfNotPresent`
|
-| `plugin.enabled` | Nacos cluster plugin that is auto scale.
| `true`
|
-| `plugin.image.repository` | Nacos cluster plugin image name.
|
`nacos/nacos-peer-finder-plugin`
|
-| `plugin.image.tag` | Nacos cluster plugin image tag.
| `1.1`
|
-| `plugin.image.pullPolicy` | Nacos cluster plugin image pull policy.
| `IfNotPresent`
|
-| `health.enabled` | Enable health check or not.
| `false`
|
-| `env.preferhostmode` | Nacos env Preferred Host Mode.
| `hostname`
|
-| `env.serverPort` | Nacos env Server Port.
| `8848`
|
-| `storage.type` | Nacos storage method `mysql` or `embedded`.
The `embedded` supports either standalone or cluster mode. | `embedded`
|
-| `storage.db.host` | Nacos Mysql storage host.
| `""`
|
-| `storage.db.name` | Nacos Mysql storage database name.
| `""`
|
-| `storage.db.port` | Nacos Mysql storage port.
| `3306`
|
-| `storage.db.username` | Username of database.
| `""`
|
-| `storage.db.password` | Password of database.
| `""`
|
-| `storage.db.param` | Database url parameter.
|
`characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false`
|
-| `persistence.enabled` | Enable or disable persistence functionality.
| `false`
|
-| `persistence.accessModes` | Defining Access Patterns for Persistent
Storage Volume. |
`ReadWriteOnce`
|
-| `persistence.storageClassName` | Defines the type or class of persistent
storage volume. | `manual`
|
-| `persistence.size` | Defines the size of the Kubernetes persistent
storage volume. | `5G`
|
-| `persistence.ClaimName` | Define the name of the persistence store
declaration to bind to. | `{}`
|
-| `persistence.emptyDir` | Configuration for creating a temporary blank
directory. | `{}`
|
-| `podDisruptionBudget.enabled` | Enable or disable podDisruptionBudget
functionality. | `false`
|
-| `podDisruptionBudget.minAvailable` | Defines the minimum number of available
Pods that must be maintained in a Kubernetes cluster. | `1`
|
-| `podDisruptionBudget.maxUnavailable` | Defines the maximum number of
available Pods that must be maintained in a Kubernetes cluster. | `1`
|
-| `service.type` | Nacos http service type.
| `NodePort`
|
-| `service.port` | Nacos http service port.
| `8848`
|
-| `service.nodePort` | Nacos http service nodeport.
| `30000`
|
-| `ingress.enabled` | Enable or disable ingress functionality.
| `false`
|
-| `ingress.annotations` | Adding additional configuration and metadata
information to ingress. | `{}`
|
-| `ingress.labels` | Add custom labels for Ingress objects.
| `{}`
|
-| `ingress.hosts` | The host of nacos service in ingress rule.
| `nacos.example.com`
|
-| `ingress.path` | Ingress defines mapping rules between request
paths and backend services. | `/`
|
-| `ingress.pathType` | Ingress specifies the type of request path
matching. | `Prefix`
|
-| `ingress.extraPaths` | Ingress defines mapping rules between request
extra paths and backend services. | `[]`
|
-| `ingress.tls` | Configure TLS certificate information for
encrypted connections received through Ingress objects. | `[]`
|
-| `networkPolicy.enabled` | Enable or disable networkpolicy
functionality. |
`false`
|
-| `networkPolicy.ingress` | Enable or disable networkpolicy ingress.
| `true`
|
-| `networkPolicy.egress.enabled` | Enable or disable networkpolicy egress.
| `false`
|
-| `networkPolicy.egress.ports` | Enable or disable networkpolicy egress ports.
| `80`
|
\ No newline at end of file
diff --git a/deploy/charts/nacos/templates/NOTES.txt
b/deploy/charts/nacos/templates/NOTES.txt
deleted file mode 100644
index e69de29b..00000000
diff --git a/deploy/charts/nacos/templates/_charts.tpl
b/deploy/charts/nacos/templates/_charts.tpl
deleted file mode 100644
index 5d66edaf..00000000
--- a/deploy/charts/nacos/templates/_charts.tpl
+++ /dev/null
@@ -1,111 +0,0 @@
-{{/*
-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 -}}
-
-{{/* vim: set filetype=mustache: */}}
-{{/*
-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 -}}
-
-{{/*
-Nacos Namespace to use
-*/}}
-{{- define "nacos.namespace" -}}
-{{- if .Values.namespaceOverride -}}
- {{- .Values.namespaceOverride -}}
-{{- else -}}
- {{- .Release.Namespace -}}
-{{- end -}}
-{{- end -}}
-
-{{- define "nacos.labels" -}}
-app.kubernetes.io/name: {{ include "nacos.name" . }}
-helm.sh/chart: {{ include "nacos.chart" . }}
-app.kubernetes.io/instance: {{ .Release.Name }}
-app.kubernetes.io/managed-by: {{ .Release.Service }}
-{{- end -}}
-
-{{/*
-Labels to use on sts.spec.selector.matchLabels and svc.spec.selector
-*/}}
-{{- define "nacos.matchLabels" -}}
-app.kubernetes.io/name: {{ include "nacos.name" . }}
-{{- end -}}
-
-{{/*
-Return the appropriate apiVersion for networkpolicy.
-*/}}
-{{- define "nacos.networkPolicy.apiVersion" -}}
-{{- if semverCompare "<1.7-0" (include "nacos.kubeVersion" .) -}}
-{{- print "extensions/v1beta1" -}}
-{{- else -}}
-{{- print "networking.k8s.io/v1" -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Return the appropriate apiVersion for poddisruptionbudget.
-*/}}
-{{- define "nacos.policy.apiVersion" -}}
-{{- if semverCompare "<1.21-0" (include "nacos.kubeVersion" .) -}}
-{{- print "policy/v1beta1" -}}
-{{- else -}}
-{{- print "policy/v1" -}}
-{{- end -}}
-{{- end -}}
-
-{{/*
-Return the target Kubernetes version
-*/}}
-{{- define "nacos.kubeVersion" -}}
-{{- if .Values.global }}
- {{- if .Values.global.kubeVersion }}
- {{- .Values.global.kubeVersion -}}
- {{- else }}
- {{- default .Capabilities.KubeVersion.Version .Values.kubeVersion -}}
- {{- end -}}
-{{- else }}
-{{- default .Capabilities.KubeVersion.Version .Values.kubeVersion -}}
-{{- end -}}
-{{- end -}}
-{{/*
-Return the appropriate apiVersion for statefulset.
-*/}}
-
-{{/* vim: set filetype=mustache: */}}
-{{/*
-Renders a value that contains template.
-Usage:
-{{ include "tplvalues.render" ( dict "value" .Values.path.to.the.Value
"context" $) }}
-*/}}
-{{- define "tplvalues.render" -}}
- {{- if typeIs "string" .value }}
- {{- tpl .value .context }}
- {{- else }}
- {{- tpl (.value | toYaml) .context }}
- {{- end }}
-{{- end -}}
\ No newline at end of file
diff --git a/deploy/charts/nacos/templates/configmap.yaml
b/deploy/charts/nacos/templates/configmap.yaml
deleted file mode 100644
index a058194c..00000000
--- a/deploy/charts/nacos/templates/configmap.yaml
+++ /dev/null
@@ -1,31 +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.
-
-{{- if eq .Values.storage.type "mysql"}}
-apiVersion: v1
-kind: ConfigMap
-metadata:
- name: {{ template "nacos.fullname" . }}-configmap
- namespace: {{ template "nacos.namespace" . }}
-data:
- {{- with .Values.storage.db }}
- mysql.db.host: {{ .host }}
- mysql.db.name: {{ .name }}
- mysql.port: "{{ .port | default 3306 }}"
- mysql.user: {{ .username }}
- mysql.password: {{ .password }}
- mysql.param: {{ .param | default
"characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false"
}}
- {{- end }}
- {{- end }}
diff --git a/deploy/charts/nacos/templates/extra-list.yaml
b/deploy/charts/nacos/templates/extra-list.yaml
deleted file mode 100644
index 7535c308..00000000
--- a/deploy/charts/nacos/templates/extra-list.yaml
+++ /dev/null
@@ -1,19 +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.
-
-{{- range .Values.extraDeploy }}
----
-{{ include "tplvalues.render" (dict "value" . "context" $) }}
-{{- end }}
diff --git a/deploy/charts/nacos/templates/networkpolicy.yaml
b/deploy/charts/nacos/templates/networkpolicy.yaml
deleted file mode 100644
index 285e58f0..00000000
--- a/deploy/charts/nacos/templates/networkpolicy.yaml
+++ /dev/null
@@ -1,42 +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.
-
-{{- if .Values.networkPolicy.enabled }}
-kind: NetworkPolicy
-apiVersion: networking.k8s.io/v1 {{ include "nacos.networkPolicy.apiVersion" .
}}
-metadata:
- name: {{ include "nacos.fullname" . }}
- namespace: {{ template "nacos.namespace" . }}
- labels: {{- include "nacos.labels" . | nindent 4 }}
-spec:
- podSelector:
- matchLabels: {{- include "nacos.matchLabels" . | nindent 6 }}
- policyTypes:
- - Ingress
- ingress:
- - ports:
- - port: {{ .Values.service.port }}
- from:
- - podSelector:
- matchLabels:
- {{ include "nacos.fullname" . }}-client: "true"
- - podSelector:
- matchLabels: {{- include "nacos.matchLabels" . | nindent 14 }}
- - ports:
- - port: {{ .Values.service.port }}
- from:
- - podSelector:
- matchLabels: {{- include "nacos.matchLabels" . | nindent 14 }}
- {{- end }}
\ No newline at end of file
diff --git a/deploy/charts/nacos/templates/pdb.yaml
b/deploy/charts/nacos/templates/pdb.yaml
deleted file mode 100644
index ab4cbe87..00000000
--- a/deploy/charts/nacos/templates/pdb.yaml
+++ /dev/null
@@ -1,33 +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.
-
-{{- $replica := int .Values.replicas }}
-{{- if and .Values.podDisruptionBudget.enabled (gt $replica 1) }}
-apiVersion: {{ include "nacos.policy.apiVersion" . }}
-kind: PodDisruptionBudget
-metadata:
- name: {{ template "nacos.fullname" . }}
- namespace: {{ template "nacos.namespace" . }}
- labels: {{- include "nacos.labels" . | nindent 4 }}
-spec:
- {{- if .Values.podDisruptionBudget.minAvailable }}
- minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
- {{- end }}
- {{- if .Values.podDisruptionBudget.maxUnavailable }}
- maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
- {{- end }}
- selector:
- matchLabels: {{- include "nacos.matchLabels" . | nindent 6 }}
-{{- end }}
diff --git a/deploy/charts/nacos/templates/statefulset.yaml
b/deploy/charts/nacos/templates/statefulset.yaml
deleted file mode 100644
index 95e27faa..00000000
--- a/deploy/charts/nacos/templates/statefulset.yaml
+++ /dev/null
@@ -1,179 +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: apps/v1
-kind: StatefulSet
-metadata:
- name: {{ template "nacos.fullname" . }}
- namespace: {{ template "nacos.namespace" . }}
-spec:
- replicas: {{ .Values.replicas }}
- {{- if eq .Values.global.mode "cluster" }}
- serviceName: nacos-headless
- {{- else }}
- serviceName: nacos
- {{- end }}
- selector:
- matchLabels: {{- include "nacos.matchLabels" . | nindent 6 }}
- template:
- metadata:
- labels:
- app.kubernetes.io/name: nacos
- spec:
- {{- with .Values.nodeSelector }}
- nodeSelector:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.affinity }}
- affinity:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- with .Values.tolerations }}
- tolerations:
- {{- toYaml . | nindent 8 }}
- {{- end }}
- {{- if and (eq .Values.global.mode "cluster") (.Values.plugin.enable) }}
- initContainers:
- - name: peer-finder-plugin-install
- image: {{.Values.plugin.image.repository
}}:{{.Values.plugin.image.tag }}
- imagePullPolicy: {{ .Values.plugin.image.pullPolicy }}
- volumeMounts:
- - mountPath: /home/nacos/plugins/peer-finder
- name: data
- subPath: peer-finder
- {{- end }}
- containers:
- - name: nacos
- image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
- imagePullPolicy: {{ .Values.image.pullPolicy }}
- startupProbe:
- initialDelaySeconds: 180
- periodSeconds: 5
- timeoutSeconds: 10
- httpGet:
- scheme: HTTP
- port: {{ .Values.service.port }}
- path: /nacos/v1/console/health/readiness
- livenessProbe:
- initialDelaySeconds: 10
- periodSeconds: 5
- timeoutSeconds: 10
- httpGet:
- scheme: HTTP
- port: {{ .Values.service.port }}
- path: /nacos/v1/console/health/liveness
- ports:
- - name: http
- containerPort: {{ .Values.service.port }}
- protocol: TCP
- - containerPort: {{ add .Values.service.port 1000 }}
- name: clientgen-rpc
- - containerPort: {{ add .Values.service.port 1001 }}
- name: raft-rpc
- - containerPort: 7848
- name: old-raft-rpc
- resources:
- {{- toYaml .Values.resources | nindent 12 }}
- env:
- - name: NACOS_SERVER_PORT
- value: {{ .Values.service.port | quote }}
- - name: NACOS_APPLICATION_PORT
- value: {{ .Values.service.port | quote }}
- - name: PREFER_HOST_MODE
- value: {{ .Values.service.port | quote }}
- {{- if eq .Values.global.mode "standalone" }}
- - name: MODE
- value: "standalone"
- {{- else if eq .Values.global.mode "cluster" }}
- - name: SERVICE_NAME
- value: "nacos-headless"
- - name: DOMAIN_NAME
- value: {{ .Values.domainName | quote }}
- - name: POD_NAMESPACE
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: metadata.namespace
- {{- end }}
- {{- if eq .Values.storage.type "mysql" }}
- - name: SPRING_DATASOURCE_PLATFORM
- value: "mysql"
- - name: MYSQL_SERVICE_HOST
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.db.host
- - name: MYSQL_SERVICE_DB_NAME
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.db.name
- - name: MYSQL_SERVICE_PORT
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.port
- - name: MYSQL_SERVICE_USER
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.user
- - name: MYSQL_SERVICE_PASSWORD
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.password
- - name: MYSQL_SERVICE_DB_PARAM
- valueFrom:
- configMapKeyRef:
- name: nacos-configmap
- key: mysql.param
- {{- else }}
- - name: EMBEDDED_STORAGE
- value: embedded
- {{- end }}
- volumeMounts:
- - name: data
- mountPath: /home/nacos/plugins/peer-finder
- subPath: peer-finder
- - name: data
- mountPath: /home/nacos/data
- subPath: data
- - name: data
- mountPath: /home/nacos/logs
- subPath: logs
- {{- if not .Values.persistence.enabled }}
- volumes:
- - name: data
- emptyDir: {}
- {{- end }}
- {{- if .Values.persistence.enabled }}
- volumeClaimTemplates:
- - metadata:
- name: data
- spec:
- accessModes:
- {{- range .Values.persistence.accessModes }}
- - {{ . | quote }}
- {{- end }}
- resources:
- requests:
- storage: {{ .Values.persistence.size }}
- {{ if .Values.persistence.ClaimName }}
- claimName: {{ .Values.persistence.ClaimName }}
- {{- else -}}
- emptyDir: {{ .Values.persistence.emptyDir }}
- {{- end }}
- {{- end }}
diff --git a/deploy/charts/nacos/templates/svc-headless.yaml
b/deploy/charts/nacos/templates/svc-headless.yaml
deleted file mode 100644
index 831617f7..00000000
--- a/deploy/charts/nacos/templates/svc-headless.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.
-
-{{- if and (eq .Values.global.mode "cluster") }}
-apiVersion: v1
-kind: Service
-metadata:
- name: {{ template "nacos.name" . }}-headless
- namespace: {{ template "nacos.namespace" }}
- labels: {{- include "nacos.labels" . | nindent 4 }}
-spec:
- clusterIP: None
- ports:
- - port: {{ .Values.service.port }}
- targetPort: {{ .Values.service.port }}
- protocol: TCP
- name: http
- - port: {{ add .Values.service.port 1000 }}
- name: clientgen-rpc
- targetPort: {{ add .Values.service.port 1000 }}
- - port: {{ add .Values.service.port 1001 }}
- name: raft-rpc
- targetPort: {{ add .Values.service.port 1001 }}
- - port: 7848
- name: old-raft-rpc
- targetPort: 7848
- protocol: TCP
- selector: {{- include "nacos.matchLabels" . | nindent 4 }}
- {{- end }}
diff --git a/deploy/charts/nacos/templates/svc.yaml
b/deploy/charts/nacos/templates/svc.yaml
deleted file mode 100644
index f54e1a81..00000000
--- a/deploy/charts/nacos/templates/svc.yaml
+++ /dev/null
@@ -1,42 +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: v1
-kind: Service
-metadata:
- name: {{ template "nacos.name" . }}
- namespace: {{ template "nacos.namespace" . }}
- labels: {{- include "nacos.labels" . | nindent 4 }}
-spec:
- type: {{ .Values.service.type }}
- ports:
- - port: {{ .Values.service.port }}
- targetPort: {{ .Values.service.port }}
- protocol: TCP
- name: http
- - port: {{ add .Values.service.port 1000 }}
- name: clientgen-rpc
- targetPort: {{add .Values.service.port 1000 }}
- - port: {{add .Values.service.port 1001 }}
- name: raft-rpc
- targetPort: {{add .Values.service.port 1001 }}
- - port: 7848
- name: old-raft-rpc
- targetPort: 7848
- protocol: TCP
- {{- if eq .Values.service.type "NodePort" }}
- nodePort: {{ .Values.service.nodePort }}
- {{- end }}
- selector: {{- include "nacos.matchLabels" . | nindent 4 }}
diff --git a/deploy/charts/nacos/values.yaml b/deploy/charts/nacos/values.yaml
deleted file mode 100644
index 71d2d79f..00000000
--- a/deploy/charts/nacos/values.yaml
+++ /dev/null
@@ -1,183 +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.
-
-global:
- mode: standalone
- # mode: cluster
-
-image:
- registry: docker.io
- # e.g registry.k8s.io
- repository: nacos/nacos-cp-server
- tag: latest
- pullPolicy: IfNotPresent
-
-plugin:
- enabled: true
- image:
- repository: nacos/nacos-peer-finder-plugin
- tag: 1.1
- pullPolicy: IfNotPresent
-
-replicas: 1
-
-domainName: cluster.local
-
-extraDeploy: []
-
-nodeSelector: []
-
-affinity: []
-
-tolerations: []
-
-maxUnavailable: []
-
-resources:
- limits: {}
- requests: {}
-
-env:
- preferhostmode: hostname
- serverPort: 8848
-
-storage:
- type: ~
- # db:
- # host: localhost
- # name: nacos
- # port: 3306
- # username: usernmae
- # password: password
- # param:
characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useSSL=false
-
-service:
- name: http
- ##
- ## Service name.
- ##
- type: NodePort
- ##
- ## Service type.
- ##
- port: 8848
- ##
- ## Service port.
- ##
- nodePort: 30000
- ##
- ## Service nodePort.
- ##
- clusterIP: ""
- ##
- ## Service clusterIP.
- ##
- loadBalancerIP: ""
- ##
- ## Service loadBalancerIP.
- ##
- loadBalancerSourceRanges: ""
- ##
- ## Service loadBalancerSourceRanges.
- ##
- externalIPs: ""
- ##
- ## Service externalIPs.
-
-persistence:
- enabled: false
- accessModes:
- - ReadWriteOnce
- storageClassName: ""
- size: 5Gi
- ClaimName: {}
- emptyDir: {}
-
-## See `kubectl explain poddisruptionbudget.spec` for more
-## ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
-podDisruptionBudget:
- enabled: false
- minAvailable: 1
- # maxUnavailable: 1
-
-ingress:
- enabled: false
- # For Kubernetes >= 1.18 you should specify the ingress-controller via the
field ingressClassName
- # See
https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
- # ingressClassName: nginx
- # Values can be templated
- annotations: {}
- # kubernetes.io/ingress.class: nginx
- # kubernetes.io/tls-acme: "true"
- labels: {}
- path: /
- ##
- ##
- # pathType is only for k8s >= 1.1=
- pathType: Prefix
- ##
- ##
- hosts:
- - chart-example.local
- ## Extra paths to prepend to every host configuration. This is useful when
working with annotation based services.
- extraPaths: []
- # - path: /*
- # backend:
- # serviceName: ssl-redirect
- # servicePort: use-annotation
- ## Or for k8s > 1.19
- # - path: /*
- # pathType: Prefix
- # backend:
- # service:
- # name: ssl-redirect
- # port:
- # name: use-annotation
- ##
- ##
- tls: []
- # - secretName: chart-example-tls
- # hosts:
- # - chart-example.local
-
-networkPolicy:
- ## @param networkPolicy.enabled Enable creation of NetworkPolicy resources.
Only Ingress traffic is filtered for now.
- ##
- enabled: false
- ## @param networkPolicy.allowExternal Don't require clientgen label for
connections
- ## The Policy model to apply. When set to false, only pods with the correct
- ## clientgen label will have network access to dubbo-admin port defined.
- ## When true, dubbo-admin will accept connections from any source
- ## (with the correct destination port).
- ##
- ingress: true
- ## @param networkPolicy.ingress When true enables the creation
- ## an ingress network policy
- ##
- ##
- ##
- ##
- egress:
- ## @param networkPolicy.egress.enabled When enabled, an egress network
policy will be
- ## created allowing dubbo-admin to connect to external data sources from
kubernetes cluster.
- enabled: false
- ##
- ## @param networkPolicy.egress.ports Add individual ports to be allowed by
the egress
- ports: []
- ## Add ports to the egress by specifying - port: <port number>
- ## E.X.
- ## ports:
- ## - port: 80
- ## - port: 443
\ No newline at end of file