Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable streaming for clients #851

Merged
merged 3 commits into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
## UNRELEASED

FEATURES:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think breaking changes goes first

* Helm Chart
* Add support for Consul services to utilize Consul DNS for service discovery. Set `dns.enableRedirection` to allow services to
use Consul DNS via the Consul DNS Service. [[GH-833](https://github.com/hashicorp/consul-k8s/pull/833)]
* Control Plane
* Connect: Allow services using Connect to utilize Consul DNS to perform service discovery. [[GH-833](https://github.com/hashicorp/consul-k8s/pull/833)]

BREAKING CHANGES:
* Previously [UI metrics](https://www.consul.io/docs/connect/observability/ui-visualization) would be enabled when
`global.metrics=false` and `ui.metrics.enabled=-`. If you are no longer seeing UI metrics,
set `global.metrics=true` or `ui.metrics.enabled=true`. [[GH-841](https://github.com/hashicorp/consul-k8s/pull/841)]
* The `enterpriseLicense` section of the values file has been migrated from being under the `server` stanza to being
under the `global` stanza. Migrating the contents of `server.enterpriseLicense` to `global.enterpriseLicense` will
ensure the license job works. [[GH-856](https://github.com/hashicorp/consul-k8s/pull/856)]
* Consul [streaming](https://www.consul.io/docs/agent/options#use_streaming_backend) is re-enabled by default.
Streaming is broken when using multi-DC federation and Consul versions 1.10.0, 1.10.1, 1.10.2.
If you are using those versions and multi-DC federation, you must upgrade to Consul >= 1.10.3 or set:

```yaml
client:
extraConfig: |
{"use_streaming_backend": false}
```

[[GH-851](https://github.com/hashicorp/consul-k8s/pull/851)]

FEATURES:
* Helm Chart
* Add support for Consul services to utilize Consul DNS for service discovery. Set `dns.enableRedirection` to allow services to
use Consul DNS via the Consul DNS Service. [[GH-833](https://github.com/hashicorp/consul-k8s/pull/833)]
* Control Plane
* Connect: Allow services using Connect to utilize Consul DNS to perform service discovery. [[GH-833](https://github.com/hashicorp/consul-k8s/pull/833)]

IMPROVEMENTS:
* Control Plane
Expand All @@ -28,6 +39,7 @@ IMPROVEMENTS:
* Update Consul version to 1.10.4. [[GH-861](https://github.com/hashicorp/consul-k8s/pull/861)]
* Update Service Router, Service Splitter and Ingress Gateway CRD with support for RequestHeaders and ResponseHeaders. [[GH-863](https://github.com/hashicorp/consul-k8s/pull/863)]
* Update Ingress Gateway CRD with partition support for the IngressService and TLS Config. [[GH-863](https://github.com/hashicorp/consul-k8s/pull/863)]
* Re-enable streaming for Consul clients. [[GH-851](https://github.com/hashicorp/consul-k8s/pull/851)]

BUG FIXES:
* Control Plane
Expand Down
3 changes: 1 addition & 2 deletions charts/consul/templates/client-config-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ data:
in the UI. */}}
config.json: |-
{
"check_update_interval": "0s",
"use_streaming_backend": false
"check_update_interval": "0s"
}
{{- end }}
{{- end }}
6 changes: 2 additions & 4 deletions charts/consul/templates/create-federation-secret-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ spec:
mountPath: /consul/tls/client/ca
readOnly: true
{{- end }}
{{- if (or .Values.global.gossipEncryption.autoGenerate
(and .Values.global.gossipEncryption.secretName .Values.global.gossipEncryption.secretKey)) }}
{{- if (or .Values.global.gossipEncryption.autoGenerate (and .Values.global.gossipEncryption.secretName .Values.global.gossipEncryption.secretKey)) }}
- name: gossip-encryption-key
mountPath: /consul/gossip
readOnly: true
Expand All @@ -127,8 +126,7 @@ spec:
consul-k8s-control-plane create-federation-secret \
-log-level={{ .Values.global.logLevel }} \
-log-json={{ .Values.global.logJSON }} \
{{- if (or .Values.global.gossipEncryption.autoGenerate (and
.Values.global.gossipEncryption.secretName .Values.global.gossipEncryption.secretKey)) }}
{{- if (or .Values.global.gossipEncryption.autoGenerate (and .Values.global.gossipEncryption.secretName .Values.global.gossipEncryption.secretKey)) }}
-gossip-key-file=/consul/gossip/gossip.key \
{{- end }}
{{- if .Values.global.acls.createReplicationToken }}
Expand Down
2 changes: 1 addition & 1 deletion charts/consul/test/unit/client-daemonset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ load _helpers
--set 'connectInject.enabled=true' \
. | tee /dev/stderr |
yq -r '.spec.template.metadata.annotations."consul.hashicorp.com/config-checksum"' | tee /dev/stderr)
[ "${actual}" = 1b0252854bdef3197902ee928716ebd691ef39b173a19ad0d4e883ddb0443b88 ]
[ "${actual}" = b0be8c9b3ae8692a4e393b93976c55988e95cb9d9dae96fbd8626f3f5b6c404b ]
}

#--------------------------------------------------------------------
Expand Down