Skip to content

Commit

Permalink
remove conf server
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinsRan committed Oct 6, 2023
1 parent 0300e9c commit 6c4af85
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 51 deletions.
11 changes: 0 additions & 11 deletions charts/apisix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,6 @@ The command removes all the Kubernetes components associated with the chart and
| dashboard.config.conf.etcd.prefix | string | `"/apisix"` | apisix configurations prefix |
| dashboard.config.conf.etcd.username | string | `nil` | Specifies etcd basic auth username if enable etcd auth |
| dashboard.enabled | bool | `false` | |
| deployment.certs | object | `{"cert":"","cert_key":"","certsSecret":"","mTLSCACert":"","mTLSCACertSecret":""}` | certs used for certificates in decoupled mode |
| deployment.certs.cert | string | `""` | cert name in certsSecret |
| deployment.certs.cert_key | string | `""` | cert key in certsSecret |
| deployment.certs.certsSecret | string | `""` | secret name used for decoupled mode |
| deployment.certs.mTLSCACert | string | `""` | mTLS CA cert filename in mTLSCACertSecret |
| deployment.certs.mTLSCACertSecret | string | `""` | trusted_ca_cert name in certsSecret |
| deployment.controlPlane | object | `{"cert":"","certKey":"","certsSecret":"","confServerPort":"9280"}` | used for control_plane deployment mode |
| deployment.controlPlane.cert | string | `""` | conf Server CA cert name in certsSecret |
| deployment.controlPlane.certKey | string | `""` | conf Server cert key name in certsSecret |
| deployment.controlPlane.certsSecret | string | `""` | secret name used by conf Server |
| deployment.controlPlane.confServerPort | string | `"9280"` | conf Server address |
| deployment.dataPlane | object | `{"controlPlane":{"host":[],"prefix":"/apisix","timeout":30}}` | used for data_plane deployment mode |
| deployment.dataPlane.controlPlane.host | list | `[]` | The hosts of the control_plane used by the data_plane |
| deployment.dataPlane.controlPlane.prefix | string | `"/apisix"` | The prefix of the control_plane used by the data_plane |
Expand Down
16 changes: 1 addition & 15 deletions charts/apisix/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,6 @@ data:
{{- if eq .Values.deployment.role "control_plane" }}
role_control_plane:
config_provider: etcd
conf_server:
listen: 0.0.0.0:{{ .Values.deployment.controlPlane.confServerPort }}
cert: "/conf-server-ssl/{{ .Values.deployment.controlPlane.cert }}"
cert_key: "/conf-server-ssl/{{ .Values.deployment.controlPlane.certKey }}"
{{- if .Values.deployment.certs.mTLSCACertSecret }}
client_ca_cert: "/conf-ca-ssl/{{ .Values.deployment.certs.mTLSCACert }}"
{{- end }}
{{- end }}
admin:
Expand Down Expand Up @@ -386,14 +379,7 @@ data:
{{- if eq .Values.deployment.role "data_plane" }}
role_data_plane:
config_provider: control_plane
control_plane:
host:
{{- range $.Values.deployment.dataPlane.controlPlane.host }}
- {{ . | quote }}
{{- end }}
prefix: {{ .Values.deployment.dataPlane.controlPlane.prefix }}
timeout: {{ .Values.deployment.dataPlane.controlPlane.timeout }}
config_provider: etcd
{{- end }}
{{- if eq .Values.deployment.mode "decoupled"}}
Expand Down
25 changes: 0 additions & 25 deletions charts/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,6 @@ deployment:
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
role: "traditional"

# -- used for control_plane deployment mode
controlPlane:
# -- conf Server address
confServerPort: "9280"
# -- secret name used by conf Server
certsSecret: ""
# -- conf Server CA cert name in certsSecret
cert: ""
# -- conf Server cert key name in certsSecret
certKey: ""

# -- used for data_plane deployment mode
dataPlane:
controlPlane:
Expand All @@ -239,20 +228,6 @@ deployment:
# -- Timeout when the data plane connects to the control plane
timeout: 30

# -- certs used for certificates in decoupled mode
certs:
# -- secret name used for decoupled mode
certsSecret: ""
# -- cert name in certsSecret
cert: ""
# -- cert key in certsSecret
cert_key: ""

# -- trusted_ca_cert name in certsSecret
mTLSCACertSecret: ""
# -- mTLS CA cert filename in mTLSCACertSecret
mTLSCACert: ""

gateway:
# -- Apache APISIX service type for user access itself
type: NodePort
Expand Down

0 comments on commit 6c4af85

Please sign in to comment.