mirror of
https://github.com/eliasstepanik/caddy-ingess.git
synced 2026-01-10 20:18:28 +00:00
69 lines
1.5 KiB
YAML
69 lines
1.5 KiB
YAML
# this is an example config map for the caddy ingress controller
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: caddy-config
|
|
namespace: caddy-system
|
|
data:
|
|
config.json: '
|
|
{
|
|
"storage": {
|
|
"system": "secret_store",
|
|
"namespace": "caddy-system"
|
|
},
|
|
"apps": {
|
|
"http": {
|
|
"servers": {
|
|
"ingress_server": {
|
|
"listen": [
|
|
":80",
|
|
":443"
|
|
],
|
|
"routes": [
|
|
{
|
|
"match": [
|
|
{
|
|
"host": [
|
|
"danny2.kubed.co"
|
|
],
|
|
"path": [
|
|
"/hello2"
|
|
]
|
|
}
|
|
],
|
|
"handle": [
|
|
{
|
|
"handler": "log",
|
|
"filename": "/etc/caddy/access.log"
|
|
},
|
|
{
|
|
"handler": "reverse_proxy",
|
|
"load_balance_type": "random",
|
|
"upstreams": [
|
|
{
|
|
"host": "http://example2.default.svc.cluster.local"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"tls": {
|
|
"automation": {
|
|
"policies": [
|
|
{
|
|
"management": {
|
|
"module": "acme",
|
|
"email": "test@test.com"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"session_tickets": {}
|
|
}
|
|
}
|
|
}
|
|
' |