1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

update traefik

This commit is contained in:
kev 2021-09-28 11:55:15 +08:00
parent da8380f57d
commit 9590aa1994
8 changed files with 7 additions and 4573 deletions

View File

@ -1,4 +1,10 @@
traefik
=======
[Traefik][1] is an open-source Edge Router that makes publishing your services a fun
and easy experience. It receives requests on behalf of your system and finds
out which components are responsible for handling them.
https://doc.traefik.io/traefik/user-guides/docker-compose/acme-http/
[1]: https://doc.traefik.io/traefik/

View File

@ -1,5 +0,0 @@
FROM scratch
COPY ca-certificates.crt /etc/ssl/certs/
COPY traefik /
EXPOSE 80
ENTRYPOINT ["/traefik"]

View File

@ -1,25 +0,0 @@
traefik
=======
![](https://traefik.io/traefik.logo.svg)
[Træfɪk][1] is a modern HTTP reverse proxy and load balancer made to deploy
microservices with ease. It supports several backends (Docker 🐳, Swarm 🐳🐳,
Mesos/Marathon, Consul, Etcd, Zookeeper, BoltDB, Rest API, file...) to manage
its configuration automatically and dynamically.
## up and running
```bash
$ kubectl cluster-info
$ kubectl create -f k8s.rc.yaml -f k8s.ing.yaml
$ kubectl run website --image=easypi/nginx-arm --port=80 --replicas=4
$ kubectl expose deployment website --type=NodePort
$ curl --resolve website:80:192.168.31.231 http://website/
```
## references
- <https://medium.com/@rothgar/exposing-services-using-ingress-with-on-prem-kubernetes-clusters-f413d87b6d34>
[1]: https://github.com/containous/traefik

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +0,0 @@
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: website-ingress
spec:
rules:
- host: website
http:
paths:
- path: /
backend:
serviceName: website
servicePort: 80

View File

@ -1,33 +0,0 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: traefik-ingress-controller
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 1
selector:
k8s-app: traefik-ingress-lb
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
terminationGracePeriodSeconds: 60
containers:
- image: easypi/traefik-arm
name: traefik-ingress-lb
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
hostPort: 80
- containerPort: 443
hostPort: 443
- containerPort: 8080
args:
- --web
- --kubernetes
- --logLevel=DEBUG
nodeSelector:
kubernetes.io/hostname: 192.168.31.231

Binary file not shown.

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
traefik:
image: "traefik:v2.4"
image: "traefik:v2.5"
container_name: "traefik"
command:
- "--api.insecure=true"