|
| 1 | +--- |
| 2 | +title: GatewayClass |
| 3 | +--- |
| 4 | + |
| 5 | +:::note |
| 6 | + |
| 7 | +- This page is generated from JSON schema. |
| 8 | +- See the [Full Examples](/truecharts-common/gatewayclass#full-examples) section for complete examples. |
| 9 | + |
| 10 | +::: |
| 11 | + |
| 12 | +## Appears in |
| 13 | + |
| 14 | +- `.Values.gatewayClass` |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## `gatewayClass` |
| 19 | + |
| 20 | +Configuration for `gatewayClass`. |
| 21 | + |
| 22 | +| Field | Value | |
| 23 | +| ---------- | -------------- | |
| 24 | +| Key | `gatewayClass` | |
| 25 | +| Type | `map` | |
| 26 | +| Required | ❌ | |
| 27 | +| Helm `tpl` | ❌ | |
| 28 | +| Default | unset | |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +### `gatewayClass.$name.annotations` |
| 33 | + |
| 34 | +Configuration for `gatewayClass.main.annotations`. |
| 35 | + |
| 36 | +| Field | Value | |
| 37 | +| ---------- | ---------------------------------- | |
| 38 | +| Key | `gatewayClass.$name.annotations` | |
| 39 | +| Type | `map` | |
| 40 | +| Required | ❌ | |
| 41 | +| Helm `tpl` | ❌ | |
| 42 | +| Default | unset | |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +### `gatewayClass.$name.enabled` |
| 47 | + |
| 48 | +Configuration for `gatewayClass.main.enabled`. |
| 49 | + |
| 50 | +| Field | Value | |
| 51 | +| ---------- | ------------------------------ | |
| 52 | +| Key | `gatewayClass.$name.enabled` | |
| 53 | +| Type | `boolean, string` | |
| 54 | +| Required | ❌ | |
| 55 | +| Helm `tpl` | ❌ | |
| 56 | +| Default | `false` | |
| 57 | + |
| 58 | +Example |
| 59 | + |
| 60 | +```yaml |
| 61 | +gatewayClass: |
| 62 | + $name: |
| 63 | + enabled: false |
| 64 | +``` |
| 65 | +
|
| 66 | +--- |
| 67 | +
|
| 68 | +### `gatewayClass.$name.labels` |
| 69 | + |
| 70 | +Configuration for `gatewayClass.main.labels`. |
| 71 | + |
| 72 | +| Field | Value | |
| 73 | +| ---------- | ------------------------------- | |
| 74 | +| Key | `gatewayClass.$name.labels` | |
| 75 | +| Type | `map` | |
| 76 | +| Required | ❌ | |
| 77 | +| Helm `tpl` | ❌ | |
| 78 | +| Default | unset | |
| 79 | + |
| 80 | +--- |
| 81 | + |
| 82 | +### `gatewayClass.$name.controllerName` |
| 83 | + |
| 84 | +Configuration for `gatewayClass.main.controllerName`. The name of the controller that will manage Gateways of this class. |
| 85 | + |
| 86 | +| Field | Value | |
| 87 | +| ---------- | -------------------------------------- | |
| 88 | +| Key | `gatewayClass.$name.controllerName` | |
| 89 | +| Type | `string` | |
| 90 | +| Required | ✅ (when gatewayClass is enabled) | |
| 91 | +| Helm `tpl` | ❌ | |
| 92 | +| Default | unset | |
| 93 | + |
| 94 | +Example |
| 95 | + |
| 96 | +```yaml |
| 97 | +gatewayClass: |
| 98 | + $name: |
| 99 | + controllerName: traefik.io/gateway-controller |
| 100 | +``` |
| 101 | + |
| 102 | +--- |
| 103 | + |
| 104 | +### `gatewayClass.$name.description` |
| 105 | + |
| 106 | +Configuration for `gatewayClass.main.description`. Description helps describe a GatewayClass with more details. |
| 107 | + |
| 108 | +| Field | Value | |
| 109 | +| ---------- | ----------------------------------- | |
| 110 | +| Key | `gatewayClass.$name.description` | |
| 111 | +| Type | `string` | |
| 112 | +| Required | ❌ | |
| 113 | +| Helm `tpl` | ❌ | |
| 114 | +| Default | unset | |
| 115 | + |
| 116 | +Example |
| 117 | + |
| 118 | +```yaml |
| 119 | +gatewayClass: |
| 120 | + $name: |
| 121 | + description: "Traefik-based gateway class" |
| 122 | +``` |
| 123 | + |
| 124 | +--- |
| 125 | + |
| 126 | +### `gatewayClass.$name.parametersRef` |
| 127 | + |
| 128 | +Configuration for `gatewayClass.main.parametersRef`. ParametersRef is a reference to a resource that contains the configuration parameters corresponding to the GatewayClass. |
| 129 | + |
| 130 | +| Field | Value | |
| 131 | +| ---------- | ------------------------------------ | |
| 132 | +| Key | `gatewayClass.$name.parametersRef` | |
| 133 | +| Type | `map` | |
| 134 | +| Required | ❌ | |
| 135 | +| Helm `tpl` | ❌ | |
| 136 | +| Default | unset | |
| 137 | + |
| 138 | +Fields for parametersRef: |
| 139 | +- `group`: API group of the referenced resource (required) |
| 140 | +- `kind`: Kind of the referenced resource (required) |
| 141 | +- `name`: Name of the referenced resource (required) |
| 142 | +- `namespace`: Optional namespace of the referenced resource |
| 143 | + |
| 144 | +--- |
| 145 | + |
| 146 | +## Full Examples |
| 147 | + |
| 148 | +### Basic GatewayClass |
| 149 | + |
| 150 | +```yaml |
| 151 | +gatewayClass: |
| 152 | + main: |
| 153 | + enabled: true |
| 154 | + controllerName: traefik.io/gateway-controller |
| 155 | +``` |
| 156 | + |
| 157 | +### GatewayClass with Description |
| 158 | + |
| 159 | +```yaml |
| 160 | +gatewayClass: |
| 161 | + main: |
| 162 | + enabled: true |
| 163 | + controllerName: traefik.io/gateway-controller |
| 164 | + description: "Traefik-based gateway class for HTTP/HTTPS traffic" |
| 165 | +``` |
| 166 | + |
| 167 | +### GatewayClass with ParametersRef |
| 168 | + |
| 169 | +```yaml |
| 170 | +gatewayClass: |
| 171 | + main: |
| 172 | + enabled: true |
| 173 | + controllerName: traefik.io/gateway-controller |
| 174 | + parametersRef: |
| 175 | + group: traefik.io |
| 176 | + kind: GatewayClassConfig |
| 177 | + name: traefik-config |
| 178 | + namespace: traefik-system |
| 179 | +``` |
| 180 | + |
| 181 | +### Using GatewayClass with Gateway via targetSelector |
| 182 | + |
| 183 | +```yaml |
| 184 | +gatewayClass: |
| 185 | + main: |
| 186 | + enabled: true |
| 187 | + controllerName: traefik.io/gateway-controller |
| 188 | +
|
| 189 | +gateway: |
| 190 | + main: |
| 191 | + enabled: true |
| 192 | + targetSelector: main # Automatically links to gatewayClass.main |
| 193 | + listeners: |
| 194 | + - name: http |
| 195 | + port: 80 |
| 196 | + protocol: HTTP |
| 197 | +``` |
| 198 | + |
| 199 | +### Multiple GatewayClasses |
| 200 | + |
| 201 | +```yaml |
| 202 | +gatewayClass: |
| 203 | + traefik: |
| 204 | + enabled: true |
| 205 | + controllerName: traefik.io/gateway-controller |
| 206 | + description: "Traefik gateway class" |
| 207 | + |
| 208 | + nginx: |
| 209 | + enabled: true |
| 210 | + controllerName: nginx.org/gateway-controller |
| 211 | + description: "NGINX gateway class" |
| 212 | +
|
| 213 | +gateway: |
| 214 | + traefik-gw: |
| 215 | + enabled: true |
| 216 | + targetSelector: traefik # Links to gatewayClass.traefik |
| 217 | + listeners: |
| 218 | + - name: http |
| 219 | + port: 80 |
| 220 | + protocol: HTTP |
| 221 | + |
| 222 | + nginx-gw: |
| 223 | + enabled: true |
| 224 | + targetSelector: nginx # Links to gatewayClass.nginx |
| 225 | + listeners: |
| 226 | + - name: https |
| 227 | + port: 443 |
| 228 | + protocol: HTTPS |
| 229 | +``` |
0 commit comments