2019-03-27 14:16:04 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: traefik-ingress-controller
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Deployment
|
2019-10-09 12:56:04 +00:00
|
|
|
apiVersion: apps/v1
|
2019-03-27 14:16:04 +00:00
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: traefik
|
|
|
|
labels:
|
|
|
|
app: traefik
|
|
|
|
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: traefik
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: traefik
|
|
|
|
spec:
|
|
|
|
serviceAccountName: traefik-ingress-controller
|
|
|
|
containers:
|
|
|
|
- name: traefik
|
2022-12-05 15:58:04 +00:00
|
|
|
image: traefik:v3.0
|
2019-03-27 14:16:04 +00:00
|
|
|
args:
|
2019-09-12 14:22:03 +00:00
|
|
|
- --api.insecure
|
2019-03-27 14:16:04 +00:00
|
|
|
- --accesslog
|
2024-04-22 15:24:04 +00:00
|
|
|
- --entryPoints.web.Address=:8000
|
|
|
|
- --entryPoints.websecure.Address=:4443
|
2019-03-27 14:16:04 +00:00
|
|
|
- --providers.kubernetescrd
|
2020-02-17 10:04:04 +00:00
|
|
|
- --certificatesresolvers.myresolver.acme.tlschallenge
|
|
|
|
- --certificatesresolvers.myresolver.acme.email=foo@you.com
|
|
|
|
- --certificatesresolvers.myresolver.acme.storage=acme.json
|
2019-03-27 14:16:04 +00:00
|
|
|
# Please note that this is the staging Let's Encrypt server.
|
|
|
|
# Once you get things working, you should remove that whole line altogether.
|
2020-02-17 10:04:04 +00:00
|
|
|
- --certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory
|
2019-03-27 14:16:04 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 8000
|
|
|
|
- name: websecure
|
|
|
|
containerPort: 4443
|
|
|
|
- name: admin
|
|
|
|
containerPort: 8080
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Deployment
|
2019-10-09 12:56:04 +00:00
|
|
|
apiVersion: apps/v1
|
2019-03-27 14:16:04 +00:00
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: whoami
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: whoami
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: whoami
|
2020-09-16 13:46:04 +00:00
|
|
|
image: traefik/whoami
|
2019-03-27 14:16:04 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 80
|