juzhiyuan commented on issue #459:
URL:
https://github.com/apache/apisix-helm-chart/issues/459#issuecomment-1422197553
## How to migrate from `traditional` mode to `decoupled` mode?
### Control Plane
Please create a new `cp-values.yaml` file. And change some configurations.
```diff
diff --git a/values.yaml b/cp-values.yaml
index af6155a..e650a67 100644
--- a/values.yaml
+++ b/cp-values.yaml
@@ -173,24 +173,24 @@ deployment:
# Optional: traditional, decoupled
#
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
- mode: traditional
+ mode: decoupled
# -- Deployment role
# Optional: traditional, data_plane, control_plane
#
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
- role: "traditional"
+ role: "control_plane"
# -- 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: ""
+ certsSecret: "cp-secret"
+ # -- conf Server CA cert name
+ cert: "tls.crt"
+ # -- conf Server cert key name
+ certKey: "tls.key"
# -- used for data_plane deployment mode
dataPlane:
@@ -205,16 +205,16 @@ deployment:
# -- certs used for certificates in decoupled mode
certs:
# -- secret name used for decoupled mode
- certsSecret: ""
+ certsSecret: "client-secret"
# -- cert name in certsSecret
- cert: ""
+ cert: "tls.crt"
# -- cert key in certsSecret
- cert_key: ""
+ cert_key: "tls.key"
# -- trusted_ca_cert name in certsSecret
- mTLSCACertSecret: ""
+ mTLSCACertSecret: "ca-secret"
# -- mTLS CA cert filename in mTLSCACertSecret
- mTLSCACert: ""
+ mTLSCACert: "ca.pem"
```
And then execute this command:
```sh
$ helm upgrade <Your APISIX release name> <chart name> -f cp-values.yaml
```
### Data Plane
Create a `dp-values.yaml` file.
```diff
diff --git a/values.yaml b/dp-values.yaml
index af6155a..3bd2b63 100644
--- a/values.yaml
+++ b/dp-values.yaml
@@ -173,13 +173,13 @@ deployment:
# Optional: traditional, decoupled
#
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
- mode: traditional
+ mode: decoupled
# -- Deployment role
# Optional: traditional, data_plane, control_plane
#
# ref: https://apisix.apache.org/docs/apisix/deployment-modes/
- role: "traditional"
+ role: "data_plane"
# -- used for control_plane deployment mode
controlPlane:
@@ -196,7 +196,7 @@ deployment:
dataPlane:
controlPlane:
# -- The hosts of the control_plane used by the data_plane
- host: []
+ host: ["https://apisix-control-plane.apisix.svc:9280"]
# -- The prefix of the control_plane used by the data_plane
prefix: "/apisix"
# -- Timeout when the data plane connects to the control plane
@@ -205,16 +205,16 @@ deployment:
# -- certs used for certificates in decoupled mode
certs:
# -- secret name used for decoupled mode
- certsSecret: ""
+ certsSecret: "client-secret"
# -- cert name in certsSecret
- cert: ""
+ cert: "tls.crt"
# -- cert key in certsSecret
- cert_key: ""
+ cert_key: "tls.key"
# -- trusted_ca_cert name in certsSecret
- mTLSCACertSecret: ""
+ mTLSCACertSecret: "ca-secret"
# -- mTLS CA cert filename in mTLSCACertSecret
- mTLSCACert: ""
+ mTLSCACert: "ca.pem"
etcd:
# -- install etcd(v3) by default, set false if do not want to install
etcd(v3) together
- enabled: true
+ enabled: false
```
Then execute the command:
```sh
$ helm install <Your dataplane release name> <chart name> -f dp-values.yaml
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]