Doc: Configuration Entry Kind: Ingress Gateway | Consul by HashiCorp
file:
{
“Kind”: “ingress-gateway”,
“Name”: “ingress-gateway”,
“TLS”: {
“Enabled”: true,
“TLSMinVersion”: “TLSv1_2”,
“TLSMaxVersion”: “TLSv1_3”
},
“Listeners”: [
{
“Port”: 8080,
“Protocol”: “http”,
“Services”: [
{
“Name”: “webapp”,
“Hosts”: [
“webapp.example.com”
]
},
{
“Name”: “apiapp”,
“Hosts”: [
“apiapp.example.com”
]
}
]
},
{
“Port”: 5432,
“Protocol”: “tcp”,
“Services”: [
{
“Name”: “database”,
“Hosts”: null
}
]
}
],
“CreateIndex”: 20531,
“ModifyIndex”: 68308
}
consul config write ingress.hcl
error:
Failed to decode config entry input: 2 errors occurred:
* invalid config key “TLS.TLSMaxVersion”
* invalid config key “TLS.TLSMinVersion”
i want to set min and max tls version in ingress-gateway
its not working Please help.
consul version
Consul v1.11.1
Revision 2c56447e
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)