feat(traefik): add support for proxyProtocol (#3593)

* feat(traefik): add support for proxyProtocol

* whoops

* empty space

* proxyprot on all entrypoints

* whoops again

* no fixes here

* Update charts/stable/traefik/templates/_args.tpl

* formatting

Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
This commit is contained in:
Stavros Kois
2022-08-27 22:58:46 +02:00
committed by GitHub
co-authored by Kjeld Schouten-Lebbing
parent 857b0a8302
commit 274c522df6
9 changed files with 147 additions and 94 deletions
+10
View File
@@ -276,6 +276,16 @@ include_questions(){
/# Include{documentation}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/documentation.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
# Replace # Include{[forwardedHeaders]} with the standard forwardedHeaders codesnippet
awk 'NR==FNR { a[n++]=$0; next }
/# Include{forwardedHeaders}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/traefik/forwardedHeaders.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
# Replace # Include{proxyProtocol} with the standard proxyProtocol codesnippet
awk 'NR==FNR { a[n++]=$0; next }
/# Include{proxyProtocol}/ { for (i=0;i<n;++i) print a[i]; next }
1' templates/questions/traefik/proxyProtocol.yaml ${target}/questions.yaml > "tmp${chartname}" && mv "tmp${chartname}" ${target}/questions.yaml
}
export -f include_questions