Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia | |||
| info:cursos:pue:devops2022:s4 [23/02/2022 09:15] – [Documentación relacionada] mate | info:cursos:pue:devops2022:s4 [09/03/2022 09:39] (actual) – mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| - | = DevOps Sesión 4 (2022-02-21) | + | = DevOps Sesión 4 (2022-02-21) |
| == Documentación relacionada | == Documentación relacionada | ||
| - | | + | <callout type=" |
| - | * 1-Despliegue de Aplicaciones Docker/ | + | |
| - | * 1-Despliegue de Aplicaciones Docker/ | + | * ./ |
| - | * 1-Despliegue de Aplicaciones Docker/ | + | * ./ |
| + | * ./ | ||
| + | * ./ | ||
| + | </ | ||
| == Clase | == Clase | ||
| Línia 16: | Línia 19: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * <code properties ; traefik.toml>################################################################ | + | <callout type="info" |
| - | # Global configuration | + | * ./Laboratorio Traefick Docker/ |
| - | ################################################################ | + | </callout> |
| - | + | ||
| - | # Duration to give active requests a chance to finish during hot-reloads. | + | |
| - | # Can be provided in a format supported by Go's time.ParseDuration function or | + | |
| - | # as raw values (digits). If no units are provided, the value is parsed assuming | + | |
| - | # seconds. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # graceTimeOut | + | |
| - | + | ||
| - | # Enable debug mode | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # debug = true | + | |
| - | + | ||
| - | # Periodically check if a new version has been released | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # checkNewVersion = false | + | |
| - | + | ||
| - | # Traefik logs file | + | |
| - | # If not defined, logs to stdout | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # traefikLogsFile | + | |
| - | + | ||
| - | # Access logs file | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Deprecated - see [accessLog] lower down | + | |
| - | # | + | |
| - | accessLogsFile = " | + | |
| - | + | ||
| - | # Log level | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | logLevel = " | + | |
| - | + | ||
| - | # Backends throttle duration: minimum duration in seconds between 2 events from providers | + | |
| - | # before applying a new configuration. It avoids unnecessary reloads if multiples events | + | |
| - | # are sent in a short amount of time. | + | |
| - | # Can be provided in a format supported by Go's time.ParseDuration function or | + | |
| - | # as raw values (digits). If no units are provided, the value is parsed assuming | + | |
| - | # seconds. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # ProvidersThrottleDuration = " | + | |
| - | + | ||
| - | # Controls the maximum idle (keep-alive) connections to keep per-host. If zero, DefaultMaxIdleConnsPerHost | + | |
| - | # from the Go standard library net/http module is used. | + | |
| - | # If you encounter 'too many open files' errors, you can either increase this | + | |
| - | # value or change the `ulimit`. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: 200 | + | |
| - | # | + | |
| - | # MaxIdleConnsPerHost = 200 | + | |
| - | + | ||
| - | # If set to true invalid SSL certificates are accepted for backends. | + | |
| - | # Note: This disables detection of man-in-the-middle attacks so should only be used on secure backend networks. | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # InsecureSkipVerify = true | + | |
| - | + | ||
| - | # Entrypoints to be used by frontends that do not specify any entrypoint. | + | |
| - | # Each frontend can specify its own entrypoints. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: ["http"] | + | |
| - | # | + | |
| - | # defaultEntryPoints = [" | + | |
| - | defaultEntryPoints = [" | + | |
| - | + | ||
| - | # Constraints definition | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # Simple matching constraint | + | |
| - | # constraints = [" | + | |
| - | # | + | |
| - | # Simple mismatching constraint | + | |
| - | # constraints = [" | + | |
| - | # | + | |
| - | # Globbing | + | |
| - | # constraints = [" | + | |
| - | # | + | |
| - | # Backend-specific constraint | + | |
| - | # [consulCatalog] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # Multiple constraints | + | |
| - | # - " | + | |
| - | # - " | + | |
| - | # constraints = [" | + | |
| - | # [consulCatalog] | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # Enable ACME (Let's Encrypt): automatic SSL | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [acme] | + | |
| - | + | ||
| - | # Email address used for registration | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # email = " | + | |
| - | + | ||
| - | # File or key used for certificates storage. | + | |
| - | # WARNING, if you use Traefik in Docker, you have 2 options: | + | |
| - | # - create a file on your host and mount it as a volume | + | |
| - | # storageFile = " | + | |
| - | # $ docker run -v "/ | + | |
| - | # - mount the folder containing the file as a volume | + | |
| - | # storageFile = "/ | + | |
| - | # $ docker run -v "/ | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # storage = " | + | |
| - | + | ||
| - | # Entrypoint to proxy acme challenge/ | + | |
| - | # WARNING, must point to an entrypoint on port 443 | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # entryPoint = " | + | |
| - | + | ||
| - | # Use a DNS based acme challenge rather than external HTTPS access, e.g. for a firewalled server | + | |
| - | # Select the provider that matches the DNS domain that will host the challenge TXT record, | + | |
| - | # and provide environment variables with access keys to enable setting it: | + | |
| - | # - cloudflare: CLOUDFLARE_EMAIL, | + | |
| - | # - digitalocean: | + | |
| - | # - dnsimple: DNSIMPLE_EMAIL, | + | |
| - | # - dnsmadeeasy: | + | |
| - | # - exoscale: EXOSCALE_API_KEY, | + | |
| - | # - gandi: GANDI_API_KEY | + | |
| - | # - linode: LINODE_API_KEY | + | |
| - | # - manual: none, but run traefik interactively & turn on acmeLogging to see instructions & press Enter | + | |
| - | # - namecheap: NAMECHEAP_API_USER, | + | |
| - | # - rfc2136: RFC2136_TSIG_KEY, | + | |
| - | # - route53: AWS_ACCESS_KEY_ID, | + | |
| - | # - dyn: DYN_CUSTOMER_NAME, | + | |
| - | # - vultr: VULTR_API_KEY | + | |
| - | # - ovh: OVH_ENDPOINT, | + | |
| - | # - pdns: PDNS_API_KEY, | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # dnsProvider = " | + | |
| - | + | ||
| - | # By default, the dnsProvider will verify the TXT DNS challenge record before letting ACME verify | + | |
| - | # If delayDontCheckDNS is greater than zero, avoid this & instead just wait so many seconds. | + | |
| - | # Useful if internal networks block external DNS queries | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # delayDontCheckDNS = 0 | + | |
| - | + | ||
| - | # If true, display debug log messages from the acme client library | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # acmeLogging = true | + | |
| - | + | ||
| - | # Enable on demand certificate. This will request a certificate from Let's Encrypt during the first TLS handshake for a hostname that does not yet have a certificate. | + | |
| - | # WARNING, TLS handshakes will be slow when requesting a hostname certificate for the first time, this can leads to DoS attacks. | + | |
| - | # WARNING, Take note that Let's Encrypt have rate limiting: https:// | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # onDemand = true | + | |
| - | + | ||
| - | # Enable certificate generation on frontends Host rules. This will request a certificate from Let's Encrypt for each frontend with a Host rule. | + | |
| - | # For example, a rule Host: | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # OnHostRule = true | + | |
| - | + | ||
| - | # CA server to use | + | |
| - | # Uncomment the line to run on the staging let's encrypt server | + | |
| - | # Leave comment to go to prod | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # caServer = " | + | |
| - | + | ||
| - | # Domains list | + | |
| - | # You can provide SANs (alternative domains) to each main domain | + | |
| - | # All domains must have A/AAAA records pointing to Traefik | + | |
| - | # WARNING, Take note that Let's Encrypt have rate limiting: https:// | + | |
| - | # Each domain & SANs will lead to a certificate request. | + | |
| - | # | + | |
| - | # [[acme.domains]] | + | |
| - | # main = " | + | |
| - | # sans = [" | + | |
| - | # [[acme.domains]] | + | |
| - | # main = " | + | |
| - | # sans = [" | + | |
| - | # [[acme.domains]] | + | |
| - | # main = " | + | |
| - | # [[acme.domains]] | + | |
| - | # main = " | + | |
| - | + | ||
| - | + | ||
| - | # Set access log options | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [accessLog] | + | |
| - | + | ||
| - | # Sets the file path for the access log. If none is given (the default) | + | |
| - | # no access logs are produced. Intermediate directories are created if | + | |
| - | # necessary. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: "" | + | |
| - | # | + | |
| - | # filePath = "/ | + | |
| - | # | + | |
| - | + | ||
| - | # Format is either " | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # format = " | + | |
| - | # | + | |
| - | + | ||
| - | # Entrypoints definition | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: | + | |
| - | [entryPoints] | + | |
| - | [entryPoints.http] | + | |
| - | address = ": | + | |
| - | # | + | |
| - | # To redirect an http entrypoint to an https entrypoint (with SNI support): | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # To redirect an entrypoint rewriting the URL: | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # regex = " | + | |
| - | # | + | |
| - | # | + | |
| - | # To enable basic auth on an entrypoint | + | |
| - | # with 2 user/pass: test:test and test2: | + | |
| - | # Passwords can be encoded in MD5, SHA1 and BCrypt: you can use htpasswd to generate those ones | + | |
| - | # Users can be specified directly in the toml file, or indirectly by referencing an external file; if both are provided, the two are merged, with external file contents having precedence | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # users = [" | + | |
| - | # | + | |
| - | # | + | |
| - | # To enable digest auth on an entrypoint | + | |
| - | # with 2 user/realm/pass: test:traefik:test and test2: | + | |
| - | # You can use htdigest to generate those ones | + | |
| - | # Users can be specified directly in the toml file, or indirectly by referencing an external file; if both are provided, the two are merged, with external file contents having precedence | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # users = [" | + | |
| - | # | + | |
| - | # | + | |
| - | # To specify an https entrypoint with a minimum TLS version, and specifying an array of cipher suites (from crypto/ | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # To enable compression support using gzip format: | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # To bind to a particular IP address only: | + | |
| - | # [entryPoints] | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # Enable retry sending request if network error | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [retry] | + | |
| - | + | ||
| - | # Number of attempts | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: (number servers in backend) -1 | + | |
| - | # | + | |
| - | # attempts = 3 | + | |
| - | + | ||
| - | # Enable custom health check options. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [healthcheck] | + | |
| - | + | ||
| - | # Set the default health check interval. Will only be effective if health check | + | |
| - | # paths are defined. Given provider-specific support, the value may be | + | |
| - | # overridden on a per-backend basis. | + | |
| - | # Can be provided in a format supported by Go's time.ParseDuration function or | + | |
| - | # as raw values (digits). If no units are provided, the value is parsed assuming | + | |
| - | # seconds. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # interval = " | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Web configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable web configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # Web administration port | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # SSL certificate and key used | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # CertFile = " | + | |
| - | # KeyFile = " | + | |
| - | # | + | |
| - | # Set REST API to read-only mode | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # ReadOnly = false | + | |
| - | # | + | |
| - | # Enable more detailed statistics | + | |
| - | # [web.statistics] | + | |
| - | # | + | |
| - | # | + | |
| - | # To enable Traefik to export internal metrics to Prometheus | + | |
| - | # [web.metrics.prometheus] | + | |
| - | # | + | |
| - | # | + | |
| - | + | ||
| - | # To enable basic auth on the webui | + | |
| - | # with 2 user/pass: test:test and test2: | + | |
| - | # Passwords can be encoded in MD5, SHA1 and BCrypt: you can use htpasswd to generate those ones | + | |
| - | # Users can be specified directly in the toml file, or indirectly by referencing an external file; if both are provided, the two are merged, with external file contents having precedence | + | |
| - | # | + | |
| - | # users = [" | + | |
| - | # | + | |
| - | # To enable digest auth on the webui | + | |
| - | # with 2 user/ | + | |
| - | # You can use htdigest to generate those ones | + | |
| - | # Users can be specified directly in the toml file, or indirectly by referencing an external file; if both are provided, the two are merged, with external file contents having precedence | + | |
| - | # | + | |
| - | # users = [" | + | |
| - | # | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # File configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable file configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [file] | + | |
| - | + | ||
| - | # Rules file | + | |
| - | # If defined, traefik will load rules from this file, | + | |
| - | # otherwise, it will load rules from current file (cf Sample rules below). | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Enable watch file changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # Docker configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Docker configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # Docker server endpoint. Can be a tcp or a unix socket endpoint. | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # Can be overridden by setting the " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # Enable watch docker changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | watch = true | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Expose containers by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # exposedbydefault = true | + | |
| - | usebindportip = true | + | |
| - | # Enable docker TLS connection | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [docker.tls] | + | |
| - | # ca = "/ | + | |
| - | # cert = "/ | + | |
| - | # key = "/ | + | |
| - | # insecureskipverify = true | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # Docker Swarmmode configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Docker configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [docker] | + | |
| - | + | ||
| - | # Docker server endpoint. Can be a tcp or a unix socket endpoint. | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # Can be overridden by setting the " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # domain = " | + | |
| - | + | ||
| - | # Enable watch docker changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Use Docker Swarm Mode as data provider | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Expose services by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # exposedbydefault = true | + | |
| - | + | ||
| - | # Enable docker TLS connection | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [swarm.tls] | + | |
| - | # ca = "/ | + | |
| - | # cert = "/ | + | |
| - | # key = "/ | + | |
| - | # insecureskipverify = true | + | |
| - | + | ||
| - | # Constraints | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # constraints = [" | + | |
| - | # Matching with containers having the label " | + | |
| - | # ex: $ docker run -d -P --label traefik.tags=api, | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # Mesos/ | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Marathon configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [marathon] | + | |
| - | + | ||
| - | # Marathon server endpoint. | + | |
| - | # You can also specify multiple endpoint for Marathon: | + | |
| - | # endpoint := " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Enable watch Marathon changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # Can be overridden by setting the " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # domain = " | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Expose Marathon apps by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # exposedByDefault = true | + | |
| - | + | ||
| - | # Convert Marathon groups to subdomains | + | |
| - | # Default behavior: / | + | |
| - | # with groupsAsSubDomains enabled: / | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # groupsAsSubDomains = true | + | |
| - | + | ||
| - | # Override DialerTimeout | + | |
| - | # Amount of time to allow the Marathon provider to wait to open a TCP connection | + | |
| - | # to a Marathon master. | + | |
| - | # Can be provided in a format supported by Go's time.ParseDuration function or | + | |
| - | # as raw values (digits). If no units are provided, the value is parsed assuming | + | |
| - | # seconds. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # dialerTimeout = " | + | |
| - | + | ||
| - | # Enable Marathon basic authentication | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [marathon.basic] | + | |
| - | # httpBasicAuthUser = " | + | |
| - | # httpBasicPassword = " | + | |
| - | + | ||
| - | # DCOSToken for DCOS environment, | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # dcosToken = " | + | |
| - | + | ||
| - | + | ||
| - | # Set the TCP Keep Alive interval for the Marathon HTTP Client. | + | |
| - | # Can be provided in a format supported by Go's time.ParseDuration function or | + | |
| - | # as raw values (digits). If no units are provided, the value is parsed assuming | + | |
| - | # seconds. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # keepAlive = " | + | |
| - | + | ||
| - | # By default, a task's IP address (as returned by the Marathon API) is used as | + | |
| - | # backend server if an IP-per-task configuration can be found; otherwise, the | + | |
| - | # name of the host running the task is used. | + | |
| - | # The latter behavior can be enforced by enabling this switch. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # forceTaskHostname: | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Mesos configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Mesos configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [mesos] | + | |
| - | + | ||
| - | # Mesos server endpoint. | + | |
| - | # You can also specify multiple endpoint for Mesos: | + | |
| - | # endpoint = " | + | |
| - | # endpoint = " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Enable watch Mesos changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # Can be overridden by setting the " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # domain = " | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Expose Mesos apps by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # ExposedByDefault = true | + | |
| - | + | ||
| - | # TLS client configuration. https:// | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [mesos.TLS] | + | |
| - | # InsecureSkipVerify = true | + | |
| - | + | ||
| - | # Zookeeper timeout (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: 30 | + | |
| - | # | + | |
| - | # ZkDetectionTimeout = 30 | + | |
| - | + | ||
| - | # Polling interval (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: 30 | + | |
| - | # | + | |
| - | # RefreshSeconds = 30 | + | |
| - | + | ||
| - | # IP sources (e.g. host, docker, mesos, rkt) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # IPSources = " | + | |
| - | + | ||
| - | # HTTP Timeout (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: 30 | + | |
| - | # | + | |
| - | # StateTimeoutSecond = " | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Kubernetes Ingress configuration backend | + | |
| - | ################################################################ | + | |
| - | # Enable Kubernetes Ingress configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [kubernetes] | + | |
| - | + | ||
| - | # Kubernetes server endpoint | + | |
| - | # | + | |
| - | # When deployed as a replication controller in Kubernetes, Traefik will use | + | |
| - | # the environment variables KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT | + | |
| - | # to construct the endpoint. | + | |
| - | # Secure token will be found in / | + | |
| - | # and SSL CA cert in / | + | |
| - | # | + | |
| - | # The endpoint may be given to override the environment variable values. | + | |
| - | # | + | |
| - | # When the environment variables are not found, Traefik will try to connect to | + | |
| - | # the Kubernetes API server with an external-cluster client. In this case, the | + | |
| - | # endpoint is required. Specifically, | + | |
| - | # `kubectl proxy` to connect to a Kubernetes cluster from localhost. | + | |
| - | # | + | |
| - | # Optional for in-cluster configuration, | + | |
| - | # Default: empty | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Bearer token used for the Kubernetes client configuration. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: empty | + | |
| - | # | + | |
| - | # token = "my token" | + | |
| - | + | ||
| - | # Path to the certificate authority file used for the Kubernetes client | + | |
| - | # configuration. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: empty | + | |
| - | # | + | |
| - | # certAuthFilePath = "/ | + | |
| - | + | ||
| - | # Array of namespaces to watch. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: [" | + | |
| - | # | + | |
| - | # namespaces = [" | + | |
| - | + | ||
| - | # See: http:// | + | |
| - | # labelselector = "A and not B" | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Consul KV configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Consul KV configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [consul] | + | |
| - | + | ||
| - | # Consul server endpoint | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Enable watch Consul changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Prefix used for KV store. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # prefix = " | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Enable consul TLS connection | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [consul.tls] | + | |
| - | # ca = "/ | + | |
| - | # cert = "/ | + | |
| - | # key = "/ | + | |
| - | # insecureskipverify = true | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Consul Catalog configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Consul Catalog configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [consulCatalog] | + | |
| - | + | ||
| - | # Consul server endpoint | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # domain = " | + | |
| - | + | ||
| - | # Prefix for Consul catalog tags | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # prefix = " | + | |
| - | + | ||
| - | # Constraints | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # constraints = [" | + | |
| - | # Matching with containers having this tag: " | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Etcd configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Etcd configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [etcd] | + | |
| - | + | ||
| - | # Etcd server endpoint | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Enable watch Etcd changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Prefix used for KV store. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # prefix = "/ | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | # Use etcd user/pass authentication | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # username = foo | + | |
| - | # password = bar | + | |
| - | + | ||
| - | # Enable etcd TLS connection | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [etcd.tls] | + | |
| - | # ca = "/ | + | |
| - | # cert = "/ | + | |
| - | # key = "/ | + | |
| - | # insecureskipverify = true | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Zookeeper configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Zookeeperconfiguration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [zookeeper] | + | |
| - | + | ||
| - | # Zookeeper server endpoint | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = " | + | |
| - | + | ||
| - | # Enable watch Zookeeper changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Prefix used for KV store. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # prefix = "/ | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # BoltDB configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable BoltDB configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [boltdb] | + | |
| - | + | ||
| - | # BoltDB file | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # endpoint = "/ | + | |
| - | + | ||
| - | # Enable watch BoltDB changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # watch = true | + | |
| - | + | ||
| - | # Prefix used for KV store. | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # prefix = "/ | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # ECS configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable ECS configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [ecs] | + | |
| - | + | ||
| - | # ECS Cluster Name | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: " | + | |
| - | # | + | |
| - | # Cluster = " | + | |
| - | + | ||
| - | # Enable watch ECS changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # Watch = true | + | |
| - | + | ||
| - | # Polling interval (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: 15 | + | |
| - | # | + | |
| - | # RefreshSeconds = 15 | + | |
| - | + | ||
| - | # Expose ECS services by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # ExposedByDefault = false | + | |
| - | + | ||
| - | # Region to use when connecting to AWS | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # Region = " | + | |
| - | + | ||
| - | # AccessKeyID to use when connecting to AWS | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # AccessKeyID = " | + | |
| - | + | ||
| - | # SecretAccessKey to use when connecting to AWS | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # SecretAccessKey = " | + | |
| - | + | ||
| - | # Override default configuration template. For advanced users :) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # filename = " | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # Rancher configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable Rancher configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [rancher] | + | |
| - | + | ||
| - | # Default domain used. | + | |
| - | # Can be overridden by setting the " | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # domain = " | + | |
| - | + | ||
| - | # Enable watch Rancher changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # Watch = true | + | |
| - | + | ||
| - | # Polling interval (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # RefreshSeconds = 15 | + | |
| - | + | ||
| - | # Expose Rancher services by default in traefik | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: true | + | |
| - | # | + | |
| - | # ExposedByDefault = false | + | |
| - | + | ||
| - | # Filter services with unhealthy states and health states | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # Default: false | + | |
| - | # | + | |
| - | # EnableServiceHealthFilter = false | + | |
| - | + | ||
| - | # Endpoint to use when connecting to Rancher | + | |
| - | # | + | |
| - | # Required | + | |
| - | # Endpoint = " | + | |
| - | + | ||
| - | # AccessKey to use when connecting to Rancher | + | |
| - | # | + | |
| - | # Required | + | |
| - | # AccessKey = " | + | |
| - | + | ||
| - | # SecretKey to use when connecting to Rancher | + | |
| - | # | + | |
| - | # Required | + | |
| - | # SecretKey = " | + | |
| - | + | ||
| - | # Constraints | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # constraints = [" | + | |
| - | # Matching with containers having this tag: " | + | |
| - | + | ||
| - | ################################################################ | + | |
| - | # DynamoDB configuration backend | + | |
| - | ################################################################ | + | |
| - | + | ||
| - | # Enable DynamoDB configuration backend | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # [dynamodb] | + | |
| - | + | ||
| - | # DynamoDB Table Name | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # TableName = " | + | |
| - | + | ||
| - | # Enable watch DynamoDB changes | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # Watch = true | + | |
| - | + | ||
| - | # Polling interval (in seconds) | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # RefreshSeconds = 15 | + | |
| - | + | ||
| - | # Region to use when connecting to AWS | + | |
| - | # | + | |
| - | # Required | + | |
| - | # | + | |
| - | # Region = " | + | |
| - | + | ||
| - | # AccessKeyID to use when connecting to AWS | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # AccessKeyID = " | + | |
| - | + | ||
| - | # SecretAccessKey to use when connecting to AWS | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # SecretAccessKey = " | + | |
| - | + | ||
| - | # Endpoint of dynamodb when testing locally | + | |
| - | # | + | |
| - | # Optional | + | |
| - | # | + | |
| - | # Endpoint = " | + | |
| - | + | ||
| - | + | ||
| - | ################################################################ | + | |
| - | # Sample rules | + | |
| - | ################################################################ | + | |
| - | # [backends] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # url = " | + | |
| - | # | + | |
| - | # | + | |
| - | # url = " | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # url = " | + | |
| - | # | + | |
| - | # | + | |
| - | # url = " | + | |
| - | # | + | |
| - | # | + | |
| - | # [frontends] | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # rule = "Host: test.localhost, | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # rule = " | + | |
| - | # | + | |
| - | # | + | |
| - | # | + | |
| - | # rule = "Path: /test, / | + | |
| - | </code> | + | |
| * [[https:// | * [[https:// | ||
| === swarm | === swarm | ||
| - | * DOCs: | + | <callout type=" |
| - | * 2-Docker Swarm.pdf | + | * ./2-Docker Swarm.pdf |
| - | * Clase explicacion Swarm.txt | + | * ./Clase explicacion Swarm.txt |
| - | * Seminario Orquestadores de Contenedores Swarn kubernetes .pdf | + | * ./Seminario Orquestadores de Contenedores Swarn kubernetes .pdf |
| - | * [[https:// | + | * [[https:// |
| + | </ | ||
| * orquestador | * orquestador | ||
| * ejecución contenedores en varios nodos | * ejecución contenedores en varios nodos | ||
| Línia 1265: | Línia 64: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | |||
| == Extra | == Extra | ||
| Línia 1274: | Línia 72: | ||
| * traefik.me | * traefik.me | ||
| - | == TODO | ||
| - | <callout type=" | ||