diff --git a/charts/gateway/Chart.yaml b/charts/gateway/Chart.yaml index e1ea536..806b041 100644 --- a/charts/gateway/Chart.yaml +++ b/charts/gateway/Chart.yaml @@ -14,7 +14,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.33 +version: 0.2.34 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gateway/README.md b/charts/gateway/README.md index c1ac640..a9c78e8 100644 --- a/charts/gateway/README.md +++ b/charts/gateway/README.md @@ -147,6 +147,7 @@ The command removes all the Kubernetes components associated with the chart and | 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.fallback_cp | object | `{}` | use cloud storage as the fallback control plane, should be consistent with the same configuration in control plane side. | | discovery.enabled | bool | `false` | Enable or disable API7 Gateway integration service discovery | | discovery.registry | object | `{}` | Registry is the same to the one in APISIX [config-default.yaml](https://github.com/apache/apisix/blob/master/conf/config-default.yaml#L281), and refer to such file for more setting details. also refer to [this documentation for integration service discovery](https://apisix.apache.org/docs/apisix/discovery) | | dns.resolvers[0] | string | `"127.0.0.1"` | | diff --git a/charts/gateway/templates/configmap.yaml b/charts/gateway/templates/configmap.yaml index 1791ab2..165b374 100644 --- a/charts/gateway/templates/configmap.yaml +++ b/charts/gateway/templates/configmap.yaml @@ -256,6 +256,13 @@ data: {{- end }} deployment: + {{- if .Values.deployment.fallback_cp }} + role: data_plane + role_data_plane: + config_provider: yaml + fallback_cp: + {{- toYaml .Values.deployment.fallback_cp | nindent 8 }} + {{- else }} role: traditional role_traditional: config_provider: etcd @@ -334,5 +341,6 @@ data: sni: "{{ .Values.etcd.auth.tls.sni }}" {{- end }} {{- end }} + {{- end }} {{- end }} {{- end }} diff --git a/charts/gateway/values.yaml b/charts/gateway/values.yaml index 8874ca6..7d40646 100644 --- a/charts/gateway/values.yaml +++ b/charts/gateway/values.yaml @@ -236,6 +236,16 @@ rbac: create: false deployment: + # -- use cloud storage as the fallback control plane, + # should be consistent with the same configuration in control plane side. + fallback_cp: {} + # aws_s3: + # access_key: "access" + # secret_key: "secret" + # region: "ap-south-1" + # resource_bucket: "to-push-resource-data" + # config_bucket: "to-push-config-data" + # -- certs used for certificates in decoupled mode certs: # -- secret name used for decoupled mode