|
| 1 | +kind: ConfigMap |
| 2 | +apiVersion: v1 |
| 3 | +metadata: |
| 4 | + name: traefik-config |
| 5 | + namespace: kube-system |
| 6 | +data: |
| 7 | + config.toml: |- |
| 8 | + [metrics] |
| 9 | + [metrics.prometheus] |
| 10 | + entryPoint = "traefik" |
| 11 | + buckets = [0.1,0.3,1.2,5.0] |
| 12 | + [entryPoints] |
| 13 | + [entryPoints.http] |
| 14 | + address = ":80" |
| 15 | + [entryPoints.http.redirect] |
| 16 | + entryPoint = "https" |
| 17 | + [entryPoints.https] |
| 18 | + address = ":443" |
| 19 | + [entryPoints.https.tls] |
| 20 | + [acme] |
| 21 | + |
| 22 | + storage = "acme.json" |
| 23 | + entryPoint = "https" |
| 24 | + onHostRule = true |
| 25 | + [[acme.domains]] |
| 26 | + main = "local1.com" |
| 27 | + [acme.httpChallenge] |
| 28 | + entryPoint = "http" |
| 29 | + ################################################################ |
| 30 | + # Global configuration |
| 31 | + ################################################################ |
| 32 | +
|
| 33 | + # Enable debug mode |
| 34 | + # |
| 35 | + # Optional |
| 36 | + # Default: false |
| 37 | + # |
| 38 | + # debug = true |
| 39 | +
|
| 40 | + # Log level |
| 41 | + # |
| 42 | + # Optional |
| 43 | + # Default: "ERROR" |
| 44 | + # |
| 45 | + # logLevel = "DEBUG" |
| 46 | +
|
| 47 | + ################################################################ |
| 48 | + # Entrypoints configuration |
| 49 | + ################################################################ |
| 50 | +
|
| 51 | + # Entrypoints definition |
| 52 | + # |
| 53 | + # Optional |
| 54 | + # Default: |
| 55 | + #[entrypoints] |
| 56 | + # [entrypoints.web] |
| 57 | + # address = ":80" |
| 58 | +
|
| 59 | + ################################################################ |
| 60 | + # Traefik logs configuration |
| 61 | + ################################################################ |
| 62 | +
|
| 63 | + # Traefik logs |
| 64 | + # Enabled by default and log to stdout |
| 65 | + # |
| 66 | + # Optional |
| 67 | + # |
| 68 | + # [traefikLog] |
| 69 | +
|
| 70 | + # Sets the filepath for the traefik log. If not specified, stdout will be used. |
| 71 | + # Intermediate directories are created if necessary. |
| 72 | + # |
| 73 | + # Optional |
| 74 | + # Default: os.Stdout |
| 75 | + # |
| 76 | + # filePath = "log/traefik.log" |
| 77 | +
|
| 78 | + # Format is either "json" or "common". |
| 79 | + # |
| 80 | + # Optional |
| 81 | + # Default: "common" |
| 82 | + # |
| 83 | + # format = "common" |
| 84 | +
|
| 85 | + ################################################################ |
| 86 | + # Access logs configuration |
| 87 | + ################################################################ |
| 88 | +
|
| 89 | + # Enable access logs |
| 90 | + # By default it will write to stdout and produce logs in the textual |
| 91 | + # Common Log Format (CLF), extended with additional fields. |
| 92 | + # |
| 93 | + # Optional |
| 94 | + # |
| 95 | + # [accessLog] |
| 96 | +
|
| 97 | + # Sets the file path for the access log. If not specified, stdout will be used. |
| 98 | + # Intermediate directories are created if necessary. |
| 99 | + # |
| 100 | + # Optional |
| 101 | + # Default: os.Stdout |
| 102 | + # |
| 103 | + # filePath = "/path/to/log/log.txt" |
| 104 | +
|
| 105 | + # Format is either "json" or "common". |
| 106 | + # |
| 107 | + # Optional |
| 108 | + # Default: "common" |
| 109 | + # |
| 110 | + # format = "common" |
| 111 | +
|
| 112 | + ################################################################ |
| 113 | + # API and dashboard configuration |
| 114 | + ################################################################ |
| 115 | +
|
| 116 | + # Enable API and dashboard |
| 117 | + #[api] |
| 118 | +
|
| 119 | + # Name of the related entry point |
| 120 | + # |
| 121 | + # Optional |
| 122 | + # Default: "traefik" |
| 123 | + # |
| 124 | + # entryPoint = "traefik" |
| 125 | +
|
| 126 | + # Enabled Dashboard |
| 127 | + # |
| 128 | + # Optional |
| 129 | + # Default: true |
| 130 | + # |
| 131 | + # dashboard = false |
| 132 | +
|
| 133 | + ################################################################ |
| 134 | + # Ping configuration |
| 135 | + ################################################################ |
| 136 | +
|
| 137 | + # Enable ping |
| 138 | + #[ping] |
| 139 | +
|
| 140 | + # Name of the related entry point |
| 141 | + # |
| 142 | + # Optional |
| 143 | + # Default: "traefik" |
| 144 | + # |
| 145 | + # entryPoint = "traefik" |
| 146 | +
|
| 147 | + ################################################################ |
| 148 | + # Docker configuration backend |
| 149 | + ################################################################ |
| 150 | +
|
| 151 | + # Enable Docker configuration backend |
| 152 | + #[docker] |
| 153 | +
|
| 154 | + # Docker server endpoint. Can be a tcp or a unix socket endpoint. |
| 155 | + # |
| 156 | + # Required |
| 157 | + # Default: "unix:///var/run/docker.sock" |
| 158 | + # |
| 159 | + # endpoint = "tcp://10.10.10.10:2375" |
| 160 | +
|
| 161 | + # Default domain used. |
| 162 | + # Can be overridden by setting the "traefik.domain" label on a container. |
| 163 | + # |
| 164 | + # Optional |
| 165 | + # Default: "" |
| 166 | + # |
| 167 | + # domain = "docker.localhost" |
| 168 | +
|
| 169 | + # Expose containers by default in traefik |
| 170 | + # |
| 171 | + # Optional |
| 172 | + # Default: true |
| 173 | + # |
| 174 | + # exposedByDefault = true |
0 commit comments