Traefik

GKE traefik fails to create rbac permissions

大兔子大兔子 提交于 2019-12-10 10:19:27
问题 I am trying to install traefik as an ingress controller on GKE (google cloud kubernetes engine) and when I try: kubectl apply -f https://raw.githubusercontent.com/containous/traefik/master/examples/k8s/traefik-rbac.yaml I have this error: Error from server (Forbidden): error when creating "https://raw.githubusercontent.com/containous/traefik/master/examples/k8s/traefik-rbac.yaml": clusterroles.rbac.authorization.k8s.io "traefik-ingress-controller" is forbidden: attempt to grant extra

Traefik docker image not working on Windows but working on MacOS?

蓝咒 提交于 2019-12-10 02:43:42
问题 I have an application that's composed of several Docker images that is being developed on MacOS and I'm trying to get it started on Windows. Most seem to be working, but there's a Traefik load balancer that doesn't. On MacOS it just works, but on Windows, whatever URL I access, it gives me a 404, the actual content which is just "404 page not found". The Traefik configuration looks like this: logLevel = "INFO" defaultEntryPoints = ["http", "https"] [entryPoints] [entryPoints.http] address = "

Traefik will issue certificate instead of Let's encrypt

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 13:49:19
问题 I am trying to set up traefik along with this tutorial: https://www.digitalocean.com/community/tutorials/how-to-use-traefik-as-a-reverse-proxy-for-docker-containers-on-ubuntu-16-04 Here's the traefik.toml I'm using: defaultEntryPoints = ["http", "https"] [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.redirect] entryPoint = "https" [entryPoints.https] address = ":443" [entryPoints.https.tls] [web] address = ":8080" [web.auth.basic] users = [myuserandpw] [acme] email =

Why does PathPrefixStrip work when PathPrefix won't?

社会主义新天地 提交于 2019-12-07 11:48:08
问题 I have a GatsbyJS static site built with --prefix-paths . The pathPrefix is set to /environment/test in gatsby-config.js . It is deployed to a docker swarm running Traefik. Adding the following label to the service makes everything run ok: traefik.frontend.rule=PathPrefixStrip:/environment/test I can then browse to /environment/test and click around in my GatsbyJs site. However I find it strange since the backend is build with the path prefix. Adding the following label does not work: traefik

Docker container internal vs external dns resolution issue using Traefik

谁说我不能喝 提交于 2019-12-06 15:08:48
Docker 18.06.1-ce, traefik 1.7.3, dnsmasq, Mac 10.14 I have docker-compose setup with Traefik and need to access several services from inside the docker network/containers and externally. On a linux box (with Let'sEncrypt and http redirected to https), everything works using the same FQDN for both docker container internal and external access, and I don't have to use the service names. When I run curl http://belapi.dev.biodati.test from inside the pipeline container using docker-compose exec belapi /bin/bash I get the following error (and I don't see it showing up in the Traefik access logs):

How to redirect http to https with Traefik 2.0 and Docker Compose labels?

独自空忆成欢 提交于 2019-12-06 05:50:53
问题 Please note that it is a Traefik V2 question. I had a solution on V1 but V2 is a total rewamp. This above is supposed to redirect http://whoami.mysite.com to http s ://whoami.mysite.com. The http s is working nicely. The http don't redirect to https and raise an error 404. There is no other file. All is in this Docker-compose.yml for the moment since it is a test to prepare further deployement. version: "3.3" services: traefik: image: "traefik:v2.0" container_name: "traefik" command: - "--log

Why does PathPrefixStrip work when PathPrefix won't?

眉间皱痕 提交于 2019-12-06 03:13:09
I have a GatsbyJS static site built with --prefix-paths . The pathPrefix is set to /environment/test in gatsby-config.js . It is deployed to a docker swarm running Traefik. Adding the following label to the service makes everything run ok: traefik.frontend.rule=PathPrefixStrip:/environment/test I can then browse to /environment/test and click around in my GatsbyJs site. However I find it strange since the backend is build with the path prefix. Adding the following label does not work: traefik.frontend.rule=PathPrefix:/environment/test Shouldn't it work with PathPrefix instead of

Howto rewrite paths with traefik when using path prefix rules?

╄→尐↘猪︶ㄣ 提交于 2019-12-06 00:58:21
问题 My traefik config for wordpress contains the following docker-labels: - "traefik.backend=wordpress" - "traefik.docker.network=web" - "traefik.frontend.rule=Host:MyHostName.net;PathPrefix:/blog" - "traefik.enable=true" - "traefik.port=80" Now requesting the url "https://MyHostName/blog" seems to reach the service which seems to return a redirect to "https://MyHostName/wp-admin...". Any idea how to solve this? THX in advance! Info: I cannot use subdomains... UPDATE 0 First thing to do should be

How to implement fail2ban with Traefik

柔情痞子 提交于 2019-12-06 00:50:16
问题 I'm interested in setting up fail2ban with my Traefik deployment. I found a gist that has some snippets in it, but I'm not clear on how to use them. Can anyone fill in the blanks please? Or, is there a better way to implement fail2ban style security with Traefik? 回答1: I was able to accomplish this starting with the gist you posted. This is under the assumptions you have Traefik already working, want to block IPs that have HTTP Basic Auth failures, and ban them with iptables. There's a couple

Traefik docker image not working on Windows but working on MacOS?

孤街醉人 提交于 2019-12-05 02:08:29
I have an application that's composed of several Docker images that is being developed on MacOS and I'm trying to get it started on Windows. Most seem to be working, but there's a Traefik load balancer that doesn't. On MacOS it just works, but on Windows, whatever URL I access, it gives me a 404, the actual content which is just "404 page not found". The Traefik configuration looks like this: logLevel = "INFO" defaultEntryPoints = ["http", "https"] [entryPoints] [entryPoints.http] address = ":80" [entryPoints.https] address = ":443" [entryPoints.https.tls] [entryPoints.https.tls