Merge pull request #46416 from windsonsea/api11
[zh] Localize a blog: 2024-05-09-gateway-api-v1.1pull/46567/head
commit
d20627726c
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="900px" height="250px" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g><path style="opacity:0.908" fill="#fbfcfe" d="M 134.5,17.5 C 137.85,17.335 141.183,17.5017 144.5,18C 170.5,30.3333 196.5,42.6667 222.5,55C 226.894,58.0684 229.728,62.235 231,67.5C 236.872,93.8622 242.872,120.196 249,146.5C 249.61,150.236 249.277,153.903 248,157.5C 230.333,179.833 212.667,202.167 195,224.5C 192.441,227.531 189.274,229.698 185.5,231C 154.5,231.667 123.5,231.667 92.5,231C 88.7257,229.698 85.559,227.531 83,224.5C 66.9068,203.984 50.5734,183.651 34,163.5C 27.7798,155.497 26.7798,146.83 31,137.5C 36.6667,113.167 42.3333,88.8333 48,64.5C 49.7735,59.7271 52.9402,56.2271 57.5,54C 83.2576,41.7854 108.924,29.6188 134.5,17.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#346de5" d="M 134.5,24.5 C 139.08,24.1134 143.414,24.9468 147.5,27C 171.045,38.606 194.712,49.9393 218.5,61C 222.491,63.7785 224.658,67.6119 225,72.5C 229.528,94.2768 234.528,115.943 240,137.5C 241.168,142.482 241.835,147.482 242,152.5C 241.439,154.725 240.439,156.725 239,158.5C 222.427,178.651 206.093,198.984 190,219.5C 188.269,221.617 186.102,223.117 183.5,224C 153.5,224.667 123.5,224.667 93.5,224C 73.0249,201.215 53.8582,177.382 36,152.5C 41.3608,123.356 47.6941,94.3556 55,65.5C 56.5,64 58,62.5 59.5,61C 84.8363,49.3308 109.836,37.1641 134.5,24.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#fafbfe" d="M 133.5,45.5 C 137.167,45.5 140.833,45.5 144.5,45.5C 144.5,52.8333 144.5,60.1667 144.5,67.5C 158.146,68.9079 169.979,74.2412 180,83.5C 186.083,79.5376 191.917,75.2043 197.5,70.5C 199.493,72.6655 201.327,74.9989 203,77.5C 203.749,78.635 203.583,79.635 202.5,80.5C 197.179,84.489 192.179,88.8223 187.5,93.5C 194.894,105.411 198.061,118.411 197,132.5C 198.785,133.24 200.618,133.907 202.5,134.5C 203.471,131.879 204.804,129.546 206.5,127.5C 212.363,132.529 217.697,138.029 222.5,144C 222.355,144.772 222.022,145.439 221.5,146C 214.573,148.476 207.573,150.643 200.5,152.5C 200.5,149.833 200.5,147.167 200.5,144.5C 198.208,144.756 196.041,144.423 194,143.5C 188.976,155.86 180.976,165.86 170,173.5C 170.384,176.309 171.384,178.975 173,181.5C 174.897,179.984 177.064,179.317 179.5,179.5C 178.903,187.153 178.403,194.82 178,202.5C 177.439,203.022 176.772,203.355 176,203.5C 169.677,199.182 163.344,194.848 157,190.5C 156.312,189.668 156.479,189.002 157.5,188.5C 159.332,187.752 160.999,186.752 162.5,185.5C 161.42,183.004 160.086,180.67 158.5,178.5C 145.627,183.814 132.794,183.814 120,178.5C 118.833,180.833 117.667,183.167 116.5,185.5C 117.912,186.806 119.579,187.64 121.5,188C 122.451,188.718 122.617,189.551 122,190.5C 115.505,195.521 108.671,199.854 101.5,203.5C 100.745,195.178 100.078,186.845 99.5,178.5C 101.816,179.36 104.149,179.86 106.5,180C 107.627,178.247 108.627,176.413 109.5,174.5C 97.8509,166.691 89.3509,156.358 84,143.5C 81.9592,144.423 79.7925,144.756 77.5,144.5C 77.8333,147.167 78.1667,149.833 78.5,152.5C 71.0621,150.856 63.7288,148.689 56.5,146C 55.9781,145.439 55.6448,144.772 55.5,144C 60.3409,138.232 65.6742,132.899 71.5,128C 72.3317,127.312 72.9984,127.479 73.5,128.5C 74.3094,130.071 74.6427,131.738 74.5,133.5C 76.7925,133.756 78.9592,133.423 81,132.5C 80.115,118.45 83.2817,105.45 90.5,93.5C 85.5084,88.6769 80.3418,84.0102 75,79.5C 75.7298,75.4517 77.8965,72.6183 81.5,71C 87.0109,75.1809 92.5109,79.3475 98,83.5C 108.046,74.2274 119.879,68.8941 133.5,67.5C 133.5,60.1667 133.5,52.8333 133.5,45.5 Z"/></g>
|
||||
<g><path style="opacity:0.882" fill="#000000" d="M 858.5,74.5 C 867.424,74.3534 871.257,78.6868 870,87.5C 867.185,93.1691 862.685,95.0024 856.5,93C 850.261,88.7034 849.261,83.3701 853.5,77C 855.315,76.2432 856.981,75.4098 858.5,74.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#356ee5" d="M 127.5,79.5 C 129.5,79.5 131.5,79.5 133.5,79.5C 133.666,89.1724 133.5,98.8391 133,108.5C 132.275,109.059 131.442,109.392 130.5,109.5C 122.292,104.225 114.625,98.2248 107.5,91.5C 113.265,85.9526 119.932,81.9526 127.5,79.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#356de5" d="M 144.5,79.5 C 154.716,80.2764 163.382,84.2764 170.5,91.5C 163.172,97.9916 155.672,104.325 148,110.5C 147,109.833 146,109.167 145,108.5C 144.5,98.8391 144.334,89.1724 144.5,79.5 Z"/></g>
|
||||
<g><path style="opacity:0.928" fill="#000000" d="M 423.5,83.5 C 424.833,83.5 426.167,83.5 427.5,83.5C 427.5,88.8333 427.5,94.1667 427.5,99.5C 433.833,99.5 440.167,99.5 446.5,99.5C 446.5,104.167 446.5,108.833 446.5,113.5C 440.167,113.5 433.833,113.5 427.5,113.5C 427.13,121.903 427.63,130.236 429,138.5C 430.779,140.764 433.113,142.097 436,142.5C 439.478,141.671 442.978,141.004 446.5,140.5C 446.896,144.375 447.562,148.208 448.5,152C 448.095,152.945 447.428,153.612 446.5,154C 438.116,156.922 429.782,156.922 421.5,154C 415.996,151.16 412.829,146.66 412,140.5C 411.5,122.17 411.333,103.836 411.5,85.5C 415.733,85.4613 419.733,84.7947 423.5,83.5 Z"/></g>
|
||||
<g><path style="opacity:0.918" fill="#000000" d="M 311.5,98.5 C 321.347,97.9802 331.014,98.9802 340.5,101.5C 341.921,120.529 341.754,139.529 340,158.5C 337.742,166.389 332.575,171.222 324.5,173C 314.057,175.006 303.724,174.506 293.5,171.5C 294.111,166.892 295.111,162.392 296.5,158C 303.028,159.529 309.694,160.196 316.5,160C 322.554,158.957 325.054,155.457 324,149.5C 303.472,154.648 292.305,146.648 290.5,125.5C 291.084,111.263 298.084,102.263 311.5,98.5 Z M 316.5,111.5 C 319.119,111.232 321.619,111.565 324,112.5C 324.167,116.5 324.333,120.5 324.5,124.5C 327.333,136.731 323,140.564 311.5,136C 307.355,130.681 306.522,124.848 309,118.5C 310.767,115.228 313.267,112.895 316.5,111.5 Z"/></g>
|
||||
<g><path style="opacity:0.94" fill="#000000" d="M 364.5,98.5 C 371.175,98.3337 377.842,98.5004 384.5,99C 391.702,100.869 396.202,105.369 398,112.5C 398.5,126.163 398.667,139.829 398.5,153.5C 387.249,155.423 375.916,155.923 364.5,155C 353.152,151.144 348.985,143.31 352,131.5C 354.443,125.394 358.943,121.894 365.5,121C 371.528,120.83 377.528,120.33 383.5,119.5C 382.625,115.126 379.958,112.626 375.5,112C 369.805,111.623 364.305,112.456 359,114.5C 357.414,109.983 356.58,105.316 356.5,100.5C 359.373,100.198 362.039,99.531 364.5,98.5 Z M 372.5,131.5 C 376.167,131.5 379.833,131.5 383.5,131.5C 383.5,135.167 383.5,138.833 383.5,142.5C 378.728,143.929 374.061,143.595 369.5,141.5C 366.482,136.899 367.482,133.565 372.5,131.5 Z"/></g>
|
||||
<g><path style="opacity:0.928" fill="#000000" d="M 472.5,98.5 C 497.203,96.5548 507.87,107.888 504.5,132.5C 493.167,132.5 481.833,132.5 470.5,132.5C 470.79,136.961 473.123,139.795 477.5,141C 479.847,141.436 482.181,141.936 484.5,142.5C 489.581,141.61 494.581,140.776 499.5,140C 500.861,144.362 501.528,148.862 501.5,153.5C 491.612,156.456 481.612,156.956 471.5,155C 458.543,150.518 452.543,141.352 453.5,127.5C 453.103,113.266 459.436,103.599 472.5,98.5 Z M 477.5,111.5 C 483.988,111.484 487.988,114.651 489.5,121C 483.175,121.5 476.842,121.666 470.5,121.5C 470.873,116.742 473.206,113.409 477.5,111.5 Z"/></g>
|
||||
<g><path style="opacity:0.926" fill="#000000" d="M 605.5,98.5 C 612.175,98.3337 618.842,98.5004 625.5,99C 635.288,101.791 640.122,108.291 640,118.5C 640.5,130.162 640.667,141.829 640.5,153.5C 628.91,155.397 617.243,155.897 605.5,155C 594.473,151.455 590.306,143.955 593,132.5C 595.154,125.994 599.654,122.161 606.5,121C 612.491,120.501 618.491,120.334 624.5,120.5C 624.064,115.564 621.397,112.731 616.5,112C 610.805,111.623 605.305,112.456 600,114.5C 598.627,109.928 597.794,105.261 597.5,100.5C 600.373,100.198 603.039,99.531 605.5,98.5 Z M 613.5,131.5 C 617.167,131.5 620.833,131.5 624.5,131.5C 624.5,135.167 624.5,138.833 624.5,142.5C 619.728,143.929 615.061,143.595 610.5,141.5C 607.462,136.989 608.462,133.656 613.5,131.5 Z"/></g>
|
||||
<g><path style="opacity:0.925" fill="#000000" d="M 742.5,98.5 C 749.175,98.3337 755.842,98.5004 762.5,99C 771.815,101.649 776.649,107.816 777,117.5C 777.5,129.495 777.667,141.495 777.5,153.5C 766.244,155.386 754.911,155.886 743.5,155C 731.751,152.02 727.251,144.52 730,132.5C 732.154,125.994 736.654,122.161 743.5,121C 749.491,120.501 755.491,120.334 761.5,120.5C 761.064,115.564 758.397,112.731 753.5,112C 747.826,111.696 742.326,112.529 737,114.5C 735.627,109.928 734.794,105.261 734.5,100.5C 737.373,100.198 740.039,99.531 742.5,98.5 Z M 750.5,131.5 C 754.167,131.5 757.833,131.5 761.5,131.5C 761.5,135.167 761.5,138.833 761.5,142.5C 757.128,143.885 752.795,143.718 748.5,142C 744.299,137.629 744.966,134.129 750.5,131.5 Z"/></g>
|
||||
<g><path style="opacity:0.945" fill="#000000" d="M 802.5,98.5 C 832.848,95.8694 845.348,109.536 840,139.5C 837.5,147.333 832.333,152.5 824.5,155C 818.472,155.641 812.472,155.474 806.5,154.5C 806.5,160.833 806.5,167.167 806.5,173.5C 801.167,173.5 795.833,173.5 790.5,173.5C 790.333,149.498 790.5,125.498 791,101.5C 794.917,100.439 798.751,99.4392 802.5,98.5 Z M 806.5,112.5 C 818.841,110.485 824.841,115.652 824.5,128C 824.34,140.262 818.34,144.429 806.5,140.5C 806.5,131.167 806.5,121.833 806.5,112.5 Z"/></g>
|
||||
<g><path style="opacity:0.919" fill="#000000" d="M 509.5,99.5 C 515.5,99.5 521.5,99.5 527.5,99.5C 529.363,110.955 531.863,122.288 535,133.5C 538.352,122.28 541.186,110.947 543.5,99.5C 547.833,99.5 552.167,99.5 556.5,99.5C 558.225,110.401 560.892,121.068 564.5,131.5C 567.793,120.994 570.46,110.328 572.5,99.5C 578.167,99.5 583.833,99.5 589.5,99.5C 584.799,118.104 578.799,136.271 571.5,154C 567.129,154.828 562.795,154.661 558.5,153.5C 555.493,144.813 552.493,136.146 549.5,127.5C 546.671,136.14 543.838,144.806 541,153.5C 536.55,154.8 532.05,154.8 527.5,153.5C 520.497,135.824 514.497,117.824 509.5,99.5 Z"/></g>
|
||||
<g><path style="opacity:0.917" fill="#000000" d="M 645.5,99.5 C 651.425,99.1918 657.259,99.5251 663,100.5C 665.869,111.773 669.536,122.773 674,133.5C 677.886,122.345 681.053,111.011 683.5,99.5C 689.167,99.5 694.833,99.5 700.5,99.5C 694.611,121.996 686.445,143.663 676,164.5C 669.118,173.048 660.284,175.881 649.5,173C 647.616,172.784 645.949,172.117 644.5,171C 645.942,166.959 646.942,162.792 647.5,158.5C 651.796,159.463 656.129,159.629 660.5,159C 662.958,157.213 664.624,154.879 665.5,152C 657.154,135.128 650.488,117.628 645.5,99.5 Z"/></g>
|
||||
<g><path style="opacity:0.95" fill="#000000" d="M 852.5,99.5 C 857.833,99.5 863.167,99.5 868.5,99.5C 868.5,117.833 868.5,136.167 868.5,154.5C 863.167,154.5 857.833,154.5 852.5,154.5C 852.5,136.167 852.5,117.833 852.5,99.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#386ee5" d="M 99.5,100.5 C 107.134,105.665 114.468,111.332 121.5,117.5C 122.833,119.167 122.833,120.833 121.5,122.5C 112.581,125.153 103.581,127.486 94.5,129.5C 92.1812,119.117 93.8478,109.45 99.5,100.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#386fe5" d="M 177.5,100.5 C 184.058,109.086 186.058,118.752 183.5,129.5C 174.476,127.494 165.476,125.328 156.5,123C 155.24,121.186 155.24,119.353 156.5,117.5C 163.753,112.054 170.753,106.387 177.5,100.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#4173e6" d="M 135.5,116.5 C 141.755,115.261 145.422,117.761 146.5,124C 144.602,131.278 140.269,133.111 133.5,129.5C 130.544,124.611 131.211,120.278 135.5,116.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#386fe5" d="M 120.5,134.5 C 122.5,134.5 124.5,134.5 126.5,134.5C 123.684,144.464 119.517,153.797 114,162.5C 105.956,157.595 100.123,150.762 96.5,142C 96.9054,141.055 97.572,140.388 98.5,140C 105.962,138.134 113.295,136.301 120.5,134.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#386ee5" d="M 152.5,133.5 C 161.379,136.092 170.379,138.259 179.5,140C 180.428,140.388 181.095,141.055 181.5,142C 178.209,150.792 172.542,157.626 164.5,162.5C 159.86,154.421 155.693,146.087 152,137.5C 151.421,136.072 151.588,134.738 152.5,133.5 Z"/></g>
|
||||
<g><path style="opacity:1" fill="#376ee5" d="M 136.5,141.5 C 138.604,141.201 140.604,141.534 142.5,142.5C 146.737,150.968 150.403,159.635 153.5,168.5C 148.384,169.489 143.218,170.156 138,170.5C 133.215,170.678 128.715,169.678 124.5,167.5C 129.059,159.051 133.059,150.384 136.5,141.5 Z"/></g>
|
||||
</svg>
|
After Width: | Height: | Size: 12 KiB |
|
@ -0,0 +1,428 @@
|
|||
---
|
||||
layout: blog
|
||||
title: "Gateway API v1.1:服务网格、GRPCRoute 和更多变化"
|
||||
date: 2024-05-09T09:00:00-08:00
|
||||
slug: gateway-api-v1-1
|
||||
author: >
|
||||
[Richard Belleville](https://github.com/gnossen) (Google),
|
||||
[Frank Budinsky](https://github.com/frankbu) (IBM),
|
||||
[Arko Dasgupta](https://github.com/arkodg) (Tetrate),
|
||||
[Flynn](https://github.com/kflynn) (Buoyant),
|
||||
[Candace Holman](https://github.com/candita) (Red Hat),
|
||||
[John Howard](https://github.com/howardjohn) (Solo.io),
|
||||
[Christine Kim](https://github.com/xtineskim) (Isovalent),
|
||||
[Mattia Lavacca](https://github.com/mlavacca) (Kong),
|
||||
[Keith Mattix](https://github.com/keithmattix) (Microsoft),
|
||||
[Mike Morris](https://github.com/mikemorris) (Microsoft),
|
||||
[Rob Scott](https://github.com/robscott) (Google),
|
||||
[Grant Spence](https://github.com/gcs278) (Red Hat),
|
||||
[Shane Utt](https://github.com/shaneutt) (Kong),
|
||||
[Gina Yeh](https://github.com/ginayeh) (Google),
|
||||
和其他评审及发布说明的贡献者
|
||||
translator: >
|
||||
[Michael Yao](https://github.com/windsonsea) (DaoCloud)
|
||||
---
|
||||
<!--
|
||||
layout: blog
|
||||
title: "Gateway API v1.1: Service mesh, GRPCRoute, and a whole lot more"
|
||||
date: 2024-05-09T09:00:00-08:00
|
||||
slug: gateway-api-v1-1
|
||||
author: >
|
||||
[Richard Belleville](https://github.com/gnossen) (Google),
|
||||
[Frank Budinsky](https://github.com/frankbu) (IBM),
|
||||
[Arko Dasgupta](https://github.com/arkodg) (Tetrate),
|
||||
[Flynn](https://github.com/kflynn) (Buoyant),
|
||||
[Candace Holman](https://github.com/candita) (Red Hat),
|
||||
[John Howard](https://github.com/howardjohn) (Solo.io),
|
||||
[Christine Kim](https://github.com/xtineskim) (Isovalent),
|
||||
[Mattia Lavacca](https://github.com/mlavacca) (Kong),
|
||||
[Keith Mattix](https://github.com/keithmattix) (Microsoft),
|
||||
[Mike Morris](https://github.com/mikemorris) (Microsoft),
|
||||
[Rob Scott](https://github.com/robscott) (Google),
|
||||
[Grant Spence](https://github.com/gcs278) (Red Hat),
|
||||
[Shane Utt](https://github.com/shaneutt) (Kong),
|
||||
[Gina Yeh](https://github.com/ginayeh) (Google),
|
||||
and other review and release note contributors
|
||||
-->
|
||||
|
||||
![Gateway API logo](gateway-api-logo.svg)
|
||||
|
||||
<!--
|
||||
Following the GA release of Gateway API last October, Kubernetes
|
||||
SIG Network is pleased to announce the v1.1 release of
|
||||
[Gateway API](https://gateway-api.sigs.k8s.io/). In this release, several features are graduating to
|
||||
_Standard Channel_ (GA), notably including support for service mesh and
|
||||
GRPCRoute. We're also introducing some new experimental features, including
|
||||
session persistence and client certificate verification.
|
||||
-->
|
||||
继去年十月正式发布 Gateway API 之后,Kubernetes SIG Network 现在又很高兴地宣布
|
||||
[Gateway API](https://gateway-api.sigs.k8s.io/) v1.1 版本发布。
|
||||
在本次发布中,有几个特性已进阶至**标准渠道**(GA),特别是对服务网格和 GRPCRoute 的支持也已进阶。
|
||||
我们还引入了一些新的实验性特性,包括会话持久性和客户端证书验证。
|
||||
|
||||
<!--
|
||||
## What's new
|
||||
|
||||
### Graduation to Standard
|
||||
-->
|
||||
## 新内容 {#whats-new}
|
||||
|
||||
### 进阶至标准渠道 {#graduation-to-standard}
|
||||
|
||||
<!--
|
||||
This release includes the graduation to Standard of four eagerly awaited features.
|
||||
This means they are no longer experimental concepts; inclusion in the Standard
|
||||
release channel denotes a high level of confidence in the API surface and
|
||||
provides guarantees of backward compatibility. Of course, as with any other
|
||||
Kubernetes API, Standard Channel features can continue to evolve with
|
||||
backward-compatible additions over time, and we certainly expect further
|
||||
refinements and improvements to these new features in the future.
|
||||
For more information on how all of this works, refer to the
|
||||
[Gateway API Versioning Policy](https://gateway-api.sigs.k8s.io/concepts/versioning/).
|
||||
-->
|
||||
本次发布有四个备受期待的特性进阶至标准渠道。这意味着它们不再是实验性的概念;
|
||||
包含在标准发布渠道中的举措展现了大家对 API 接口的高度信心,并提供向后兼容的保证。
|
||||
当然,与所有其他 Kubernetes API 一样,标准渠道的特性可以随着时间的推移通过向后兼容的方式演进,
|
||||
我们当然期待未来对这些新特性有进一步的优化和改进。
|
||||
有关细节请参阅 [Gateway API 版本控制政策](https://gateway-api.sigs.k8s.io/concepts/versioning/)。
|
||||
|
||||
<!--
|
||||
#### [Service Mesh Support](https://gateway-api.sigs.k8s.io/mesh/)
|
||||
|
||||
Service mesh support in Gateway API allows service mesh users to use the same
|
||||
API to manage ingress traffic and mesh traffic, reusing the same policy and
|
||||
routing interfaces. In Gateway API v1.1, routes (such as HTTPRoute) can now have
|
||||
a Service as a `parentRef`, to control how traffic to specific services behave.
|
||||
For more information, read the
|
||||
[Gateway API service mesh documentation](https://gateway-api.sigs.k8s.io/mesh/)
|
||||
or see the
|
||||
[list of Gateway API implementations](https://gateway-api.sigs.k8s.io/implementations/#service-mesh-implementation-status).
|
||||
-->
|
||||
#### [服务网格支持](https://gateway-api.sigs.k8s.io/mesh/)
|
||||
|
||||
在 Gateway API 中支持服务网格意味着允许服务网格用户使用相同的 API 来管理 Ingress 流量和网格流量,
|
||||
能够重用相同的策略和路由接口。在 Gateway API v1.1 中,路由(如 HTTPRoute)现在可以将一个 Service 作为 `parentRef`,
|
||||
以控制到特定服务的流量行为。有关细节请查阅
|
||||
[Gateway API 服务网格文档](https://gateway-api.sigs.k8s.io/mesh/)或
|
||||
[Gateway API 实现列表](https://gateway-api.sigs.k8s.io/implementations/#service-mesh-implementation-status)。
|
||||
|
||||
<!--
|
||||
As an example, one could do a canary deployment of a workload deep in an
|
||||
application's call graph with an HTTPRoute as follows:
|
||||
-->
|
||||
例如,你可以使用如下 HTTPRoute 以金丝雀部署深入到应用调用图中的工作负载:
|
||||
|
||||
```yaml
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: color-canary
|
||||
namespace: faces
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: color
|
||||
kind: Service
|
||||
group: ""
|
||||
port: 80
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: color
|
||||
port: 80
|
||||
weight: 50
|
||||
- name: color2
|
||||
port: 80
|
||||
weight: 50
|
||||
```
|
||||
|
||||
<!--
|
||||
This would split traffic sent to the `color` Service in the `faces` namespace
|
||||
50/50 between the original `color` Service and the `color2` Service, using a
|
||||
portable configuration that's easy to move from one mesh to another.
|
||||
-->
|
||||
通过使用一种便于从一个网格迁移到另一个网格的可移植配置,
|
||||
此 HTTPRoute 对象将把发送到 `faces` 命名空间中的 `color` Service 的流量按 50/50
|
||||
拆分到原始的 `color` Service 和 `color2` Service 上。
|
||||
|
||||
<!--
|
||||
#### [GRPCRoute](https://gateway-api.sigs.k8s.io/guides/grpc-routing/)
|
||||
|
||||
If you are already using the experimental version of GRPCRoute, we recommend holding
|
||||
off on upgrading to the standard channel version of GRPCRoute until the
|
||||
controllers you're using have been updated to support GRPCRoute v1. Until then,
|
||||
it is safe to upgrade to the experimental channel version of GRPCRoute in v1.1
|
||||
that includes both v1alpha2 and v1 API versions.
|
||||
-->
|
||||
#### [GRPCRoute](https://gateway-api.sigs.k8s.io/guides/grpc-routing/)
|
||||
|
||||
如果你已经在使用实验性版本的 GRPCRoute,我们建议你暂时不要升级到标准渠道版本的 GRPCRoute,
|
||||
除非你正使用的控制器已被更新为支持 GRPCRoute v1。
|
||||
在此之后,你才可以安全地升级到实验性渠道版本的 GRPCRoute v1.1,这个版本同时包含了 v1alpha2 和 v1 的 API。
|
||||
|
||||
<!--
|
||||
#### [ParentReference Port](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.ParentReference)
|
||||
|
||||
The `port` field was added to ParentReference, allowing you to attach resources
|
||||
to Gateway Listeners, Services, or other parent resources
|
||||
(depending on the implementation). Binding to a port also allows you to attach
|
||||
to multiple Listeners at once.
|
||||
-->
|
||||
#### [ParentReference 端口](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.ParentReference)
|
||||
|
||||
`port` 字段已被添加到 ParentReference 中,
|
||||
允许你将资源挂接到 Gateway 监听器、Service 或其他父资源(取决于实现)。
|
||||
绑定到某个端口还允许你一次挂接到多个监听器。
|
||||
|
||||
<!--
|
||||
For example, you can attach an HTTPRoute to one or more specific Listeners of a
|
||||
Gateway as specified by the Listener `port`, instead of the Listener `name` field.
|
||||
|
||||
For more information, see
|
||||
[Attaching to Gateways](https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways).
|
||||
-->
|
||||
例如,你可以将 HTTPRoute 挂接到由监听器 `port` 而不是监听器 `name` 字段所指定的一个或多个特定监听器。
|
||||
|
||||
有关细节请参阅[挂接到 Gateways](https://gateway-api.sigs.k8s.io/api-types/httproute/#attaching-to-gateways)。
|
||||
|
||||
<!--
|
||||
#### [Conformance Profiles and Reports](https://gateway-api.sigs.k8s.io/concepts/conformance/#conformance-profiles)
|
||||
|
||||
The conformance report API has been expanded with the `mode` field (intended to
|
||||
specify the working mode of the implementation), and the `gatewayAPIChannel`
|
||||
(standard or experimental). The `gatewayAPIVersion` and `gatewayAPIChannel` are
|
||||
now filled in automatically by the suite machinery, along with a brief
|
||||
description of the testing outcome. The Reports have been reorganized in a more
|
||||
structured way, and the implementations can now add information on how the tests
|
||||
have been run and provide reproduction steps.
|
||||
-->
|
||||
#### [合规性配置文件和报告](https://gateway-api.sigs.k8s.io/concepts/conformance/#conformance-profiles)
|
||||
|
||||
合规性报告 API 被扩展了,添加了 `mode` 字段(用于指定实现的工作模式)以及 `gatewayAPIChannel`(标准或实验性)。
|
||||
`gatewayAPIVersion` 和 `gatewayAPIChannel` 现在由套件机制自动填充,并附有测试结果的简要描述。
|
||||
这些报告已通过更加结构化的方式进行重新组织,现在实现可以添加测试是如何运行的有关信息,还能提供复现步骤。
|
||||
|
||||
<!--
|
||||
### New additions to Experimental channel
|
||||
|
||||
#### [Gateway Client Certificate Verification](https://gateway-api.sigs.k8s.io/geps/gep-91/)
|
||||
|
||||
Gateways can now configure client cert verification for each Gateway Listener by
|
||||
introducing a new `frontendValidation` field within `tls`. This field
|
||||
supports configuring a list of CA Certificates that can be used as a trust
|
||||
anchor to validate the certificates presented by the client.
|
||||
-->
|
||||
### 实验性渠道的新增内容
|
||||
|
||||
#### [Gateway 客户端证书验证](https://gateway-api.sigs.k8s.io/geps/gep-91/)
|
||||
|
||||
Gateway 现在可以通过在 `tls` 内引入的新字段 `frontendValidation` 来为每个
|
||||
Gateway 监听器配置客户端证书验证。此字段支持配置可用作信任锚的 CA 证书列表,以验证客户端呈现的证书。
|
||||
|
||||
<!--
|
||||
The following example shows how the CACertificate stored in
|
||||
the `foo-example-com-ca-cert` ConfigMap can be used to validate the certificates
|
||||
presented by clients connecting to the `foo-https` Gateway Listener.
|
||||
-->
|
||||
以下示例显示了如何使用存储在 `foo-example-com-ca-cert` ConfigMap 中的 CACertificate
|
||||
来验证连接到 `foo-https` Gateway 监听器的客户端所呈现的证书。
|
||||
|
||||
```yaml
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: client-validation-basic
|
||||
spec:
|
||||
gatewayClassName: acme-lb
|
||||
listeners:
|
||||
name: foo-https
|
||||
protocol: HTTPS
|
||||
port: 443
|
||||
hostname: foo.example.com
|
||||
tls:
|
||||
certificateRefs:
|
||||
kind: Secret
|
||||
group: ""
|
||||
name: foo-example-com-cert
|
||||
frontendValidation:
|
||||
caCertificateRefs:
|
||||
kind: ConfigMap
|
||||
group: ""
|
||||
name: foo-example-com-ca-cert
|
||||
```
|
||||
|
||||
<!--
|
||||
#### [Session Persistence and BackendLBPolicy](https://gateway-api.sigs.k8s.io/geps/gep-1619/)
|
||||
|
||||
[Session Persistence](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.SessionPersistence)
|
||||
is being introduced to Gateway API via a new policy
|
||||
([BackendLBPolicy](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1alpha2.BackendLBPolicy))
|
||||
for Service-level configuration and as fields within HTTPRoute
|
||||
and GRPCRoute for route-level configuration. The BackendLBPolicy and route-level
|
||||
APIs provide the same session persistence configuration, including session
|
||||
timeouts, session name, session type, and cookie lifetime type.
|
||||
-->
|
||||
#### [会话持久性和 BackendLBPolicy](https://gateway-api.sigs.k8s.io/geps/gep-1619/)
|
||||
|
||||
[会话持久性](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io%2fv1.SessionPersistence)
|
||||
通过新的策略([BackendLBPolicy](https://gateway-api.sigs.k8s.io/reference/spec/#gateway.networking.k8s.io/v1alpha2.BackendLBPolicy))
|
||||
引入到 Gateway API 中用于服务级配置,在 HTTPRoute 和 GRPCRoute 内以字段的形式用于路由级配置。
|
||||
BackendLBPolicy 和路由级 API 提供相同的会话持久性配置,包括会话超时、会话名称、会话类型和 cookie 生命周期类型。
|
||||
|
||||
<!--
|
||||
Below is an example configuration of `BackendLBPolicy` that enables cookie-based
|
||||
session persistence for the `foo` service. It sets the session name to
|
||||
`foo-session`, defines absolute and idle timeouts, and configures the cookie to
|
||||
be a session cookie:
|
||||
-->
|
||||
以下是 `BackendLBPolicy` 的示例配置,为 `foo` 服务启用基于 Cookie 的会话持久性。
|
||||
它将会话名称设置为 `foo-session`,定义绝对超时时间和空闲超时时间,并将 Cookie 配置为会话 Cookie:
|
||||
|
||||
```yaml
|
||||
apiVersion: gateway.networking.k8s.io/v1alpha2
|
||||
kind: BackendLBPolicy
|
||||
metadata:
|
||||
name: lb-policy
|
||||
namespace: foo-ns
|
||||
spec:
|
||||
targetRefs:
|
||||
- group: core
|
||||
kind: service
|
||||
name: foo
|
||||
sessionPersistence:
|
||||
sessionName: foo-session
|
||||
absoluteTimeout: 1h
|
||||
idleTimeout: 30m
|
||||
type: Cookie
|
||||
cookieConfig:
|
||||
lifetimeType: Session
|
||||
```
|
||||
|
||||
<!--
|
||||
### Everything else
|
||||
|
||||
#### [TLS Terminology Clarifications](https://gateway-api.sigs.k8s.io/geps/gep-2907/)
|
||||
-->
|
||||
### 其他更新
|
||||
|
||||
#### [TLS 术语阐述](https://gateway-api.sigs.k8s.io/geps/gep-2907/)
|
||||
|
||||
<!--
|
||||
As part of a broader goal of making our TLS terminology more consistent
|
||||
throughout the API, we've introduced some breaking changes to BackendTLSPolicy.
|
||||
This has resulted in a new API version (v1alpha3) and will require any existing
|
||||
implementations of this policy to properly handle the version upgrade, e.g.
|
||||
by backing up data and uninstalling the v1alpha2 version before installing this
|
||||
newer version.
|
||||
|
||||
Any references to v1alpha2 BackendTLSPolicy fields will need to be updated to
|
||||
v1alpha3. Specific changes to fields include:
|
||||
-->
|
||||
为了在整个 API 中让我们的 TLS 术语更加一致以实现更广泛的目标,
|
||||
我们对 BackendTLSPolicy 做了一些破坏性变更。
|
||||
这就产生了新的 API 版本(v1alpha3),且将需要这个策略所有现有的实现来正确处理版本升级,
|
||||
例如通过备份数据并在安装这个新版本之前卸载 v1alpha2 版本。
|
||||
|
||||
所有引用了 v1alpha2 BackendTLSPolicy 的字段都将需要更新为 v1alpha3。这些字段的具体变更包括:
|
||||
|
||||
<!--
|
||||
- `targetRef` becomes `targetRefs` to allow a BackendTLSPolicy to attach to
|
||||
multiple targets
|
||||
- `tls` becomes `validation`
|
||||
- `tls.caCertRefs` becomes `validation.caCertificateRefs`
|
||||
- `tls.wellKnownCACerts` becomes `validation.wellKnownCACertificates`
|
||||
-->
|
||||
- `targetRef` 变为 `targetRefs` 以允许 BackendTLSPolicy 挂接到多个目标
|
||||
- `tls` 变为 `validation`
|
||||
- `tls.caCertRefs` 变为 `validation.caCertificateRefs`
|
||||
- `tls.wellKnownCACerts` 变为 `validation.wellKnownCACertificates`
|
||||
|
||||
<!--
|
||||
For a full list of the changes included in this release, please refer to the
|
||||
[v1.1.0 release notes](https://github.com/kubernetes-sigs/gateway-api/releases/tag/v1.1.0).
|
||||
-->
|
||||
有关本次发布包含的完整变更列表,请参阅
|
||||
[v1.1.0 发布说明](https://github.com/kubernetes-sigs/gateway-api/releases/tag/v1.1.0)。
|
||||
|
||||
<!--
|
||||
## Gateway API background
|
||||
|
||||
The idea of Gateway API was initially [proposed](https://youtu.be/Ne9UJL6irXY?si=wgtC9w8PMB5ZHil2)
|
||||
at the 2019 KubeCon San Diego as the next generation
|
||||
of Ingress API. Since then, an incredible community has formed to develop what
|
||||
has likely become the
|
||||
[most collaborative API in Kubernetes history](https://www.youtube.com/watch?v=V3Vu_FWb4l4).
|
||||
Over 200 people have contributed to this API so far, and that number continues to grow.
|
||||
-->
|
||||
## Gateway API 背景 {#gateway-api-background}
|
||||
|
||||
Gateway API 的想法最初是在 2019 年 KubeCon San Diego 上作为下一代 Ingress API
|
||||
[提出的](https://youtu.be/Ne9UJL6irXY?si=wgtC9w8PMB5ZHil2)。
|
||||
从那时起,一个令人瞩目的社区逐渐形成,共同开发出了可能成为
|
||||
[Kubernetes 历史上最具合作精神的 API](https://www.youtube.com/watch?v=V3Vu_FWb4l4)。
|
||||
到目前为止,已有超过 200 人为该 API 做过贡献,而且这一数字还在不断攀升。
|
||||
|
||||
<!--
|
||||
The maintainers would like to thank _everyone_ who's contributed to Gateway API, whether in the
|
||||
form of commits to the repo, discussion, ideas, or general support. We literally
|
||||
couldn't have gotten this far without the support of this dedicated and active
|
||||
community.
|
||||
-->
|
||||
维护者们要感谢为 Gateway API 做出贡献的**每一个人**,
|
||||
无论是提交代码、参与讨论、提供创意,还是给予常规支持,我们都在此表示诚挚的感谢。
|
||||
没有这个专注且活跃的社区的支持,我们不可能走到这一步。
|
||||
|
||||
<!--
|
||||
## Try it out
|
||||
|
||||
Unlike other Kubernetes APIs, you don't need to upgrade to the latest version of
|
||||
Kubernetes to get the latest version of Gateway API. As long as you're running
|
||||
Kubernetes 1.26 or later, you'll be able to get up and running with this
|
||||
version of Gateway API.
|
||||
-->
|
||||
## 试用一下 {#try-it-out}
|
||||
|
||||
与其他 Kubernetes API 不同,你不需要升级到最新版本的 Kubernetes 即可获得最新版本的 Gateway API。
|
||||
只要你运行的是 Kubernetes 1.26 或更高版本,你就可以使用这个版本的 Gateway API。
|
||||
|
||||
<!--
|
||||
To try out the API, follow our [Getting Started Guide](https://gateway-api.sigs.k8s.io/guides/).
|
||||
|
||||
## Get involved
|
||||
|
||||
There are lots of opportunities to get involved and help define the future of
|
||||
Kubernetes routing APIs for both ingress and service mesh.
|
||||
-->
|
||||
要试用此 API,请参阅[入门指南](https://gateway-api.sigs.k8s.io/guides/)。
|
||||
|
||||
## 参与进来 {#get-involved}
|
||||
|
||||
你有很多机会可以参与进来并帮助为 Ingress 和服务网格定义 Kubernetes 路由 API 的未来。
|
||||
|
||||
<!--
|
||||
* Check out the [user guides](https://gateway-api.sigs.k8s.io/guides) to see what use-cases can be addressed.
|
||||
* Try out one of the [existing Gateway controllers](https://gateway-api.sigs.k8s.io/implementations/).
|
||||
* Or [join us in the community](https://gateway-api.sigs.k8s.io/contributing/)
|
||||
and help us build the future of Gateway API together!
|
||||
-->
|
||||
* 查阅[用户指南](https://gateway-api.sigs.k8s.io/guides)以了解可以解决哪些用例。
|
||||
* 试用其中一个[现有的 Gateway 控制器](https://gateway-api.sigs.k8s.io/implementations/)。
|
||||
* 或者[加入我们的社区](https://gateway-api.sigs.k8s.io/contributing/),帮助我们一起构建 Gateway API 的未来!
|
||||
|
||||
<!--
|
||||
## Related Kubernetes blog articles
|
||||
|
||||
* [New Experimental Features in Gateway API v1.0](/blog/2023/11/28/gateway-api-ga/)
|
||||
11/2023
|
||||
* [Gateway API v1.0: GA Release](/blog/2023/10/31/gateway-api-ga/)
|
||||
10/2023
|
||||
* [Introducing ingress2gateway; Simplifying Upgrades to Gateway API](/blog/2023/10/25/introducing-ingress2gateway/)
|
||||
10/2023
|
||||
* [Gateway API v0.8.0: Introducing Service Mesh Support](/blog/2023/08/29/gateway-api-v0-8/)
|
||||
08/2023
|
||||
-->
|
||||
## 相关的 Kubernetes 博文 {#related-kubernetes-blog-articles}
|
||||
|
||||
* 2023 年 11 月 [Gateway API v1.0 中的新实验性特性](/blog/2023/11/28/gateway-api-ga/)
|
||||
* 2023 年 10 月 [Gateway API v1.0:正式发布(GA)](/zh-cn/blog/2023/10/31/gateway-api-ga/)
|
||||
* 2023 年 10 月[介绍 ingress2gateway;简化 Gateway API 升级](/blog/2023/10/25/introducing-ingress2gateway/)
|
||||
* 2023 年 8 月 [Gateway API v0.8.0:引入服务网格支持](/zh-cn/blog/2023/08/29/gateway-api-v0-8/)
|
||||
|
Loading…
Reference in New Issue