Release v1.2.02025-12-09
We are delighted to announce the release of Kmesh v1.2.0, a milestone achieved through the collective efforts of our global community over the past three months. Special recognition goes to the contributors from the LXF Project, whose dedication has been pivotal in driving this release forward.
Kmesh v1.2.0 represents a significant step forward in service mesh capabilities, with improved DNS handling, better ServiceEntry support, enhanced upgrade processes, and expanded feature set in dual-engine mode. These improvements make Kmesh more robust and compatible with the latest service mesh standards.
Key Features and Enhancements
DNS Proxy
DNS Request Interception: Added dnsProxy capability to intercept DNS resolution requests for services managed by Kmesh. This allows Kmesh to gain better control over service discovery.
Domain-IP Mapping Table: Built a dedicated domain-to-address mapping table for Kmesh.
Enhance Ipsec
Improve the stability of IPsec: Fixed a critical interoperability issue in the eBPF IPSec implementation that previously caused communication failures between Kmesh-managed and unmanaged nodes across different hosts. This was addressed by redesigning the eBPF decryption logic and optimizing the configuration of xfrm state and policy.
Provide secret management capabilities in kmeshctl: Improved IPSec usability by enhancing kmeshctl to support secret resource management for encryption keys and simplifying the steps required to create and manage these secrets.
Enhanced ServiceEntry Support
Complete ServiceEntry Types: Fully completed the supported ServiceEntry types in Kmesh, providing comprehensive support for various external service integration scenarios. This enhancement allows users to seamlessly integrate a wider range of external services into the service mesh.
Non-Kubernetes Native Services: Leveraging dnsProxy, serviceEntry can now manage non-Kubernetes native services within the cluster through fake hostnames.
Zero-Downtime Upgrade Capability
Upgrade Without Connection Disruption: Building upon the v0.5.0 achievement where Kmesh restarts don't affect established connections, v1.2.0 ensures that upgrading the Kmesh daemon doesn't impact existing connections when BPF map structures remain unchanged. This improvement significantly reduces service downtime during maintenance operations and enhances overall system reliability.
NOTE: This feature is currently in the alpha phase.
Dual-Engine Mode Enhancements
Circuit Breaking and Local Rate Limiting: The dual-engine mode now supports circuit breaking and local rate limiting features. These capabilities provide better resilience and protection against service failures and traffic surges, allowing for more robust microservices architectures.The addition of these features in dual-engine mode enables more granular control over service-to-service communication, improving overall system stability and performance under varying load conditions.
Istio Compatibility Updates
Istio 1.26 Support: Full adaptation and compatibility with Istio 1.26, ensuring that Kmesh users can leverage the latest features and security enhancements from the Istio ecosystem.
Deprecation Notice: Istio 1.23 will no longer be supported in Kmesh E2E testing, encouraging users to upgrade to newer versions for better performance, security, and feature availability.
What's Changed
* chore: ut coverage for same src/dst but different direction by @yp969803 in https://github.com/kmesh-net/kmesh/pull/1399
* Changed the metric name of grafana to match the metric name reported by kmesh by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1404
* refactored updateConnectionMetricCache to report connection-metrics correctly by @yp969803 in https://github.com/kmesh-net/kmesh/pull/1377
* fix flaky of TestCrossNamespace by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/1413
* add YaoZengzeng as owner by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/1405
* feat: add markdownlint for md documents by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1417
* output kmesh log when e2e test failed by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/1393
* Fix: wrong arg order of testify/assert by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1421
* Fix: bump of containernetworking/plugins by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1418
* feat: add prepare-dev in Makefile by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1426
* update kmesh regular meeting link by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1415
* Fix: make build should build kmeshctl by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1419
* ENH: refactor ctl/docs generation by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1425
* Upgrading dependencies to avoid vulnerable vulnerabilities by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1434
* Fix: make format with too many containers by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1435
* eBPF unit test: Remove expired codes & Add framework doc by @sancppp in https://github.com/kmesh-net/kmesh/pull/1406
* Sort dump output by name by @zrggw in https://github.com/kmesh-net/kmesh/pull/1432
* update golang.org/x/oauth2 to resolve Input vulnerability by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1447
* fix markdownlint error by @zrggw in https://github.com/kmesh-net/kmesh/pull/1448
* add ipsec test case by @zrggw in https://github.com/kmesh-net/kmesh/pull/1449
* Chore: bump github.com/spf13/pflag & lint fix by @Flying-Tom in https://github.com/kmesh-net/kmesh/pull/1446
* Tune gemini review severity threshold to HIGH by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1445
* add ipsec controller unit test by @zrggw in https://github.com/kmesh-net/kmesh/pull/1461
* Bump golang.org/x/sys from 0.32.0 to 0.34.0 by @dependabot[bot] in https://github.com/kmesh-net/kmesh/pull/1471
* add(proposal): Added proposal for Kmesh website automation by @yashisrani in https://github.com/kmesh-net/kmesh/pull/1433
* fix file non-existent error when kmesh start with --enable-ipsec=true by @zrggw in https://github.com/kmesh-net/kmesh/pull/1473
* update broken documentation links in CONTRIBUTING.md by @AkarshSahlot in https://github.com/kmesh-net/kmesh/pull/1480
* Organize documentation by language by @yashisrani in https://github.com/kmesh-net/kmesh/pull/1478
* Fix typo : Duel to Dual by @mdimado in https://github.com/kmesh-net/kmesh/pull/1483
* feature(workflow): added chinese docs grammer checker by @yashisrani in https://github.com/kmesh-net/kmesh/pull/1484
* feat(kmeshctl):automatic key generation for ipsec secrets by @Vinnu124 in https://github.com/kmesh-net/kmesh/pull/1487
* support dns proxy by @Kuromesi in https://github.com/kmesh-net/kmesh/pull/1470
* new kmeshctl secret command by @zrggw in https://github.com/kmesh-net/kmesh/pull/1495
* Resolving communication issue between pods after enabling IPsec by @zrggw in https://github.com/kmesh-net/kmesh/pull/1496
feat: add cgroupskb eBPF program by @wxnzb in https://github.com/kmesh-net/kmesh/pull/1474
* feature(workflow): added Kmeshctl doc syncing workflow by @yashisrani in https://github.com/kmesh-net/kmesh/pull/1498
utsendmsg by @wxnzb in https://github.com/kmesh-net/kmesh/pull/1452
* change Kmesh deploy yaml by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1507
* fix an error of kmeshctl waypoint by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1508
* adapt to istio 1.26 by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/1513
* Proposal: Kmesh-daemon upgrades traffic without disruption by @072020127 in https://github.com/kmesh-net/kmesh/pull/1441
utcgroup_sock by @wxnzb in https://github.com/kmesh-net/kmesh/pull/1453
* Add IPsec docu
v1.2.0-rc.0预发布2025-12-02
This is the rc version of Kmesh release v1.2.0
Release v1.1.02025-05-15
We are delighted to announce the release of Kmesh v1.1.0, a milestone achieved through the collective efforts of our global community over the past three months. Special recognition goes to the contributors from the LXF Project, whose dedication has been pivotal in driving this release forward.
Building on the foundation of v1.0.0, this release introduces significant enhancements to Kmesh’s architecture, observability, and ecosystem integration. The official Kmesh website has undergone a comprehensive redesign, offering an intuitive interface and streamlined documentation to empower both users and developers. Under the hood, we’ve refactored the DNS module and added metrics for long connections, providing deeper insights into more traffic patterns.
In Kernel-Native mode, we’ve reduced invasive kernel modifications. Also, we use global variables to replace the BPF config map to simplify the underlying complexity. Compatibility with Istio 1.25 has been rigorously validated, ensuring seamless interoperability with the latest Istio version. Notably, the persistent TestKmeshRestart E2E test case flaky—a long-standing issue—has been resolved through long-term investigation and reconstruction of the underlying BPF program, marking a leap forward in runtime reliability.
Main Features
Website overhaul
The Kmesh official website has undergone a complete redesign, offering an intuitive user experience with improved documentation, reorganized content hierarchy and streamlined navigation. In addressing feedback from the previous iteration, we focused on key areas where user experience could be enhanced. The original interface presented some usability challenges that occasionally led to navigation difficulties. Our blog module in particular required attention, as its content organization and visual hierarchy impacted content discoverability and readability. From an engineering perspective, we recognized opportunities to improve the code structure through better component organization and more systematic styling approaches, as the existing implementation had grown complex to maintain over time.
To address these problems, we shifted to React with Docusaurus, a modern documentation framework that's much more developer-friendly. This allowed us to create modular components, eliminating redundant code through reusability. Docusaurus provides built-in navigation systems specifically designed for documentation and blogs, plus version-controlled documentation features. We've implemented multilingual support with both English and Chinese documentation, added advanced search functionality, and completely reorganized the content structure. The result is a dramatically improved experience that makes the Kmesh site more accessible and valuable for all users.
Long connection metrics
Before this release, Kmesh provides access logs during termination and establishment of a TCP connection with more detailed information about the connection, such as bytes sent, received, packet lost, rtt and retransmits. Kmesh also provides workload and service specific metrics such as bytes sent and received, lost packets, minimum rtt, total connection opened and closed by a pod. These metrics are only updated after a connection is closed.
In this release, we implement access logs and metrics for TCP long connections, developing a continuous monitoring and reporting mechanism that captures detailed, real-time data throughout the lifetime of long-lived TCP connections. Access logs are reported periodically with information such as reporting time, connection establishment time, bytes sent, received, packet loss, rtt, retransmits and state. Metrics such as bytes sent and received, packet loss, retransmits are also reported periodically for long connections.
DNS refactor
The current DNS process includes the CDS refresh process. As a result, DNS is deeply coupled with kernel-native mode and cannot be used in dual-engine mode.
In release 1.1 we refactored the DNS module of Kmesh. Instead of a structure containing cds, the data looped through the refresh queue in the Dns is now a domain, so that the Dns module no longer cares about the Kmesh mode, only providing the hostname to be resolved.
BPF config map optimization
Kmesh has eliminated the dedicated kmeshconfigmap BPF map, which previously stored global runtime configurations such as BPF logging level and monitoring toggle. These settings are now managed through global variables. Leveraging global variables simplifies BPF configuration management, enhancing runtime efficiency and maintainability.
Optimise Kernel Native mode to reduce intrusive modifications to the kernel
The kernel-native mode requires a large number of intrusive kernel reconstructions to implement HTTP-based traffic control. Some of these modifications may have a significant impact on the kernel, which makes the kernel-native mode difficult to deploy and use in a real production environment.
To resolve this problem, we have modified the kernel in kernel-native mode and the involved ko and eBPF synchronously. Through the optimization of this release. In kernel 5.10, the kernel modification is limited to four, and in kernel 6.6, the kernel modification is reduced to only one. This last one will be eliminated as much as possible, with the goal of eventually running kernel-native mode on native version 6.6 and above.
Adopt istio 1.25
Kmesh has verified compatibility with istio 1.25 and has added the corresponding E2E test to CI. The Kmesh community maintains verification of the three istio versions in CI, so the E2E test of istio 1.22 has been removed from CI.
Critical Bug Fix
1. kmeshctl install waypoint error (https://github.com/kmesh-net/kmesh/issues/1287)
2. TestKmeshRestart flaky (https://github.com/kmesh-net/kmesh/issues/1192)
3. TestServiceEntrySelectsWorkloadEntry flaky (https://github.com/kmesh-net/kmesh/issues/1352)
What's Changed
* improve xdp bpf log by @weli-l in https://github.com/kmesh-net/kmesh/pull/1158
* Ability to automatically push helm packages at publicize release by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1174
* Can specify the out name for kmeshctl by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1176
* fix DATA RACE in TestCertRoute by @lec-bit in https://github.com/kmesh-net/kmesh/pull/1168
* add scripts to change kmesh version automatically by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1183
adapt MAPSIZEOFLISTENER into 8192 by @lec-bit in https://github.com/kmesh-net/kmesh/pull/1187
* fix Update mode failed by @lec-bit in https://github.com/kmesh-net/kmesh/pull/1188
* Bump google.golang.org/grpc from 1.69.0 to 1.69.4 by @dependabot in https://github.com/kmesh-net/kmesh/pull/1179
* Bump golang.org/x/net to address CVE-2024-45338 by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1193
* Bump google.golang.org/protobuf from 1.36.1 to 1.36.3 by @dependabot in https://github.com/kmesh-net/kmesh/pull/1191
fix kernelenhanced lack of pkg general by @lec-bit in https://github.com/kmesh-net/kmesh/pull/1199
* bump version to 1.1-dev by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1197
* Bump github.com/cilium/ebpf from 0.16.0 to 0.17.1 by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1205
* Update meeting in README.md by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1196
* add workload metrics by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/1105
* Bump the k8s-io group with 5 updates by @dependabot in https://github.com/kmesh-net/kmesh/pull/1201
* Fix typos by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/1219
* Improve Authz UX: Immediate Feedback & Status Subcommand by @ravjot07 in https://github.com/kmesh-net/kmesh/pull/1217
chore: solved contructtuple typo #1221 by @yp969803 in https://github.com/kmesh-
v1.1.0-alpha预发布2025-05-07
This is the alpha version of Kmesh 1.1.0
Release v1.0.02025-01-16
At the start of the New Year 2025, we are pleased to announce the release of Kmesh v1.0.0. We would like to express our sincere gratitude to the Kmesh community contributors for their dedication and hard work over the past three months.
In this v1.0.0 release, we have made significant improvements to Kmesh's east-west traffic governance capabilities, particularly in the area of security. We have added support for Encrypted Communication and Authorization, enhancing the overall security posture of the Kmesh.
Furthermore, we have introduced support for headless services and locality load balancing, providing users with more flexibility and control over their service. Additionally, we have added service topology diagrams and optimized observability features, empowering users with better visibility into their services in Kmesh.
In the Kernel-Native mode, we have support for advanced capabilities such as circuit breaker, rate limiting, fully restart support and more, ensuring a comprehensive and robust set of features for our users. In this release cycle, Kmesh has been updated to support Istio version 1.24, and we have addressed several critical bugs while also reconstructing many key components. To ensure the stability and reliability of the platform, we have significantly increased the coverage of end-to-end tests and unit tests. We are excited to share these improvements with the Kmesh community and look forward to continued collaboration and growth in the future.
Main Features
Encrypted Communication:
Data transmitted in an unencrypted state poses a significant security risk. To address this concern, Kmesh has introduced a node encryption mode in its v1.0.0 release. This feature utilizes IPsec to encrypt the communication traffic between nodes, effectively eliminating security risks during data transmission.
Kmesh leverages the encryption capabilities provided by IPsec to secure the traffic flowing between nodes. The data encryption behavior of IPsec is finely controlled through the use of Kubernetes Custom Resource Definitions (CRDs), empowering users with granular control over the encryption policies.
Furthermore, Kmesh has built its node-to-node information synchronization mechanism on top of the Kubernetes api-service. This integration ensures that the encryption configuration and key management are seamlessly integrated with the Kubernetes ecosystem, simplifying the deployment and management of the secure communication infrastructure.
Offload Authorization Execution into XDP Prog:
In Kmesh v0.5.0, the authorization functionality has been offloaded to XDP eBPF. This integration has been further enhanced in the Kmesh v1.0.0 release.
Kmesh now supports IP-based authorization, where the authorization rules are determined within the eBPF program. When the authorization results in a rejection, the XDP program simply drops the request, ensuring that the client can perceive the connection failure.
This efficient authorization mechanism provides a secure and high-performance solution for service-to-service communication. Kmesh will support more authorisation features in XDP in future releases. Welcome to provide the relevant requests of users.
Locality Load Balance:
Locality Load Balancing is a critical optimization for performance and reliability in distributed systems. By directing traffic to the nearest service instances, this approach reduces latency, enhances availability, and lowers the costs associated with cross-region data transfers.
Kmesh now supports Locality Load Balancing across five different scopes: region, zone, subZone, nodeName, and clusterId. This fine-grained control allows users to configure load balancing policies based on the most appropriate locality level for their specific deployment topology and requirements
Observability enhancement:
Kmesh v1.0.0 introduces enhanced observability features, including the addition of service topology maps. By integrating Kmesh with Kiali, users can now visualize their service topology in a clear and intuitive manner.
Furthermore, Kmesh has optimized the metrics labels, ensuring that the presented metrics are more reasonable and understandable. This improvement enhances the overall clarity and usability of Kmesh's observability data.
Leveraging the easy access to network-native data provided by eBPF, Kmesh has also introduced new metrics related to TTL (Time To Live) and retries. This provides users with deeper insights into the state of the network, enabling them to better understand and monitor the performance and reliability of their distributed applications.
Kernel-Native Mode Support Restart:
Kmesh has further enhanced its capabilities by introducing the ability to gracefully reload eBPF maps and programs after a system reboot. This feature ensures that there is no need to re-register namespaces or specific pods into Kmesh following a reboot.
As a result, the service traffic remains uninterrupted during the reboot process, providing a significant benefit to Kmesh customers. This seamless handling of reboot scenarios helps maintain the availability and stability of the service mesh, minimizing the impact on end-users and applications.
Support Rate Limit and Circuit Breaker:
Kmesh v1.0.0 introduces enhanced traffic governance capabilities for its Kernel-Native Mode. This latest release now supports local rate limiting and circuit breaker functionality, addressing the core traffic management requirements of service mesh deployments.
Users can leverage these traffic governance features in the Kernel-Native Mode in the same way they would utilize rate limiting and circuit breaker capabilities in the Dual-Engine Mode. This consistency across the different operating modes ensures a seamless experience for Kmesh operators, regardless of their chosen deployment architecture.
Support Headless Service and ServiceEntry:
In the Kmesh Dual-Engine Mode, support for headless services and service entries has now been introduced.
Adopt istio 1.24:
Kmesh has been supported for istio 1.24 and there are e2e tests to ensure the stability of Kmesh in istio 1.24. Currently Kmesh is compatible with istio versions 1.22, 1.23 and 1.24.
Critical Bug Fix:
We have also made some big bug fix:
1.Support hostname type waypoint in workload
2.Check whether pods should be managed when ns is managed
3.Fix bpf ins over 100w
What's Changed
<details>
* [release-0.5] update VERSION by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/896
* Fix build warning and remove docker pull explicitly by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/893
* Revert "update VERSION" by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/902
* support large scale for ads mode by @nlgwcy in https://github.com/kmesh-net/kmesh/pull/610
Update kmeshdeployanddevelopinkind.md by @derekwin in https://github.com/kmesh-net/kmesh/pull/904
* Enhanced kernel: Build 2 series of eBPF objects(kernel ver. <5.13 & >=5.13) and load eBPF dynamically when Kmesh starts up by @tacslon in https://github.com/kmesh-net/kmesh/pull/914
* kmeshctl waypoint framework by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/901
* fix slow restart in workload mode by @nlgwcy in https://github.com/kmesh-net/kmesh/pull/924
* infra(ci): update copyright check ci by @yuluo-yx in https://github.com/kmesh-net/kmesh/pull/932
* Bump google.golang.org/protobuf from 1.34.2 to 1.35.1 by @dependabot in https://github.com/kmesh-net/kmesh/pull/933
* Fix argument list too long in manage controller by @tacslon in https://github.com/kmesh-net/kmesh/pull/711
* upgrade golang to 1.23 by @tjons in https://github.com/kmesh-net/kmesh/pull/929
* Add maintainers file by @hz
v1.0.0-rc.02025-01-14
This is the rc version of Kmesh 1.0.0
v1.0.0-alpha2025-01-14
This is the alpha version of Kmesh 1.0.0
Release v0.5.02024-09-27
We are so excited to announce Kmesh v0.5.0. First thanks to our contributors for their hard work over the last two months. In release v0.5.0 we have made a lot of great enhancements, including command line tool kmeshctl, more complete E2E test coverage, better visualization of underlying eBPF information, observability enhancement, fully restart support, improve CNI installer, RBAC in XDP prog. In addition, in this release cycle, many critical bugs have been fixed, some key code has been refactored and more tests have been covered, making Kmesh more stable and robust. The highlights are as follows:
Zero-Down time during kmesh restart
It is amazing now Kmesh can gracefully reload eBPF map and prog after restart , and also no need to re-enroll namespaces or specific pods into kmesh after restart. As a result, the traffic flow is not interrupted during the restart, which is a big benefit to users. After kmesh-daemon restarted, the bpf map configurations will be automatically updated to date.
As early as release v0.4.0, after kmesh restarted it would require all the pods managed by kmesh to be restarted to be re-managed, because this kmesh manage is triggered by cni plug-in. Now it can be done in kmesh-daemon so that pods do not need to be restarted to be re-managed.
Observability enhancement
Now Kmesh supports L4 access log, allowing users to clearly visualize the traffic managed by Kmesh. Note that accesslog is not enabled by default. You can start the accesslog function by modifying the --enable-accesslog parameter of spec.containers.args in Kmesh. We will support using kmeshctl to enable accesslog dynamiclly . At the same time, Grafana addon adapted for Kmesh has been added to better visualize monitoring metrics in various dimensions. Also some key issues were fixed in observability, effectively improving its accuracy and stability.
Offload authorization execution into XDP prog:
As early as release v0.3.0, Kmesh already supported L4 RBAC, but the previous solution was to do rbac in the user space, which had some issues in terms of performance and functionality. Now we have offloaded it into xdp eBPF, and this feature will be truly available.
Currently, authorization rules are moved down to the eBPF map, which provides the capability of performing authorization completely in the eBPF program. When the authz result is to reject, the XDP prog directly drops the request packet so that the client can detect the connection failure.
Better debugability
Added a command line tool kmeshctl:
Kmesh has its own command line tool! Now you no longer need to exec into the corresponding Kmesh daemon pod to adjust the log level of the Kmesh daemon or dump the configuration. You can directly use kmeshctl:
``bash
Adjust kmesh-daemon log level (e.g., debug | error | info)
kmeshctl log kmesh-6ct4h --set default:debug
Dump config
kmeshctl dump kmesh-6ct4h workload
`
More features will be added to kmeshctl in the future, allowing users to better manage and debug Kmesh.
Better visualization of underlying bpf map:
Previously we have interfaces /debug/configdump/ads and /debug/configdump/workload to output the config content cached in Kmesh daemon. Due to various reasons, the config in Kmesh daemon cache and the actual eBPF may not be completely consistent. If we can get human-readable eBPF info, it will be more helpful for us to troubleshoot. Now we can get it through interfaces /debug/bpf/*.
It will also be integrated into kmeshctl later, making it easier to view. And can even be further expanded to determine whether the underlying eBPF is synchronized with the configuration in the Kmesh daemon.
Improve CNI installer:
As cni installer is Kmesh daemon, if the kmesh-daemon crash unexpectedly or the machine suddenly loses power, the CNI doesn’t have chance to uninstall the CNI config. If the kubeconfig’s token installed is expired, no pod can startup successfully after kmesh-daemon exit abnormally. So we make use of the following two methods to resolve:
1. Do clean up the cni config at the end of start_kmesh.sh
2. Add a separate go routine in cni installer, update the kubeconfig file once the token file is modified. This can make sure the kubeconfig file does not expire easily.
Support hostnetwork workloads
Now for Kmesh Dual-Engine mode, we support accessing a service with hostnetwork pods.
Performance improvement
In dual-engine mode, we largely optimized the bpf map update during Workload and Service response handling by using local cache instead of looping over the bpf map.
Critical Bug Fix
We have also made some big bug fixes:
1. Prevent losing control of traffic during workload resource updates by not deleting the frontend map.
2. Traffic from mamespaced waypoint will be redirected to waypoint again, it falls into a dead loop. Now we skipped managing traffic sent from waypoint.
3. Fixed previously when waypoint processes non-HTTP tcp traffic, it would unexpectedly return HTTP/1.1 400 Bad Request. https://github.com/kmesh-net/kmesh/pull/681
What's Changed
<details>
<summary>Full Changelog</summary>
* kmesh route samples by @lec-bit in https://github.com/kmesh-net/kmesh/pull/531
* Kmesh Observability by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/527
* fix unexpected log by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/535
* Fix TestPodSidecarLabelChangeTriggersAddIptablesAction flake by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/540
* Modifybpf map update to prevent potential bugs by @weli-l in https://github.com/kmesh-net/kmesh/pull/541
* add codecov config by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/537
* use latest waypoint image to run e2e by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/554
* add document for deploying and developing in kind by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/559
* add Copyright check by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/561
* add security.md for kmesh by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/564
* Add bpf log level getter (#560) by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/562
* add document about using enhanced kernel by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/565
* update gitignore for enhanced kernel by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/572
* Add code spell check github workflow by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/573
* add badge in readme by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/576
* Provide a way to allow setting all logger level to debug by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/557
* Fix make gen` problem by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/582
* fix make clean by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/587
* add some waypoint related E2E test cases by @YaoZengzeng in https://github.com/kmesh-net/kmesh/pull/580
* optimize workload update by @nlgwcy in https://github.com/kmesh-net/kmesh/pull/590
* remove arch info in build process by @Okabe-Rintarou-0 in https://github.com/kmesh-net/kmesh/pull/585
* kmesh security: pod manage by @lec-bit in https://github.com/kmesh-net/kmesh/pull/489
* fix bpf map look up failed by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/594
* add configuration to collect kmesh metrics using Prometheus by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/589
* Bump the k8s-io group with 3 updates by @dependabot in https://github.com/kmesh-net/kmesh/pull/609
* waypoint should not managed by Kmesh by @LiZhenCheng9527 in https://github.com/kmesh-net/kmesh/pull/611
* remove resync period by @hzxuzhonghu in https://github.com/kmesh-net/kmesh/pull/601
* Fix DNS
Kmesh v0.5.0-rc.0预发布2024-09-25
This is a pre-release for v0.5.0
Kmesh v0.4.12024-08-30
Bug Fixes:
* Fixed waypoint failed to process ipv4-mapped ipv6 connections #785
* Fixed service access when deploying namespace and service scoped waypoint in mixed manner #754
* Fixed load balancing when svc endpoint count is zero #685
* Fixed incorrectly handling ipv4 mapped ipv6 address #660
* Fixed DNS cluster's endpoint ip addr check #616
* Skip manage waypoint to prevent bpf prog fall into deadloop and interrupting traffic #611
* Fix TestPodSidecarLabelChangeTriggersAddIptablesAction flake #543
* Fixed workload update can cause traffic unmanaged by kmesh #592
Feature Enhancement:
* Add service metric and use bpf ringbuf to report metrics #710