2019-03-27 14:16:04 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: traefik-ingress-controller
|
|
|
|
|
|
|
|
---
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
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
|
|
|
|
image: traefik:v2.0
|
|
|
|
args:
|
|
|
|
- --api
|
|
|
|
- --accesslog
|
2019-06-17 09:48:05 +00:00
|
|
|
- --entrypoints.web.Address=:8000
|
|
|
|
- --entrypoints.websecure.Address=:4443
|
2019-03-27 14:16:04 +00:00
|
|
|
- --providers.kubernetescrd
|
2019-07-19 09:52:04 +00:00
|
|
|
- --certificatesresolvers.default.acme.tlschallenge
|
|
|
|
- --certificatesresolvers.default.acme.email=foo@you.com
|
|
|
|
- --certificatesresolvers.default.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.
|
2019-07-19 09:52:04 +00:00
|
|
|
- --certificatesresolvers.default.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
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
metadata:
|
|
|
|
namespace: default
|
|
|
|
name: whoami
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: whoami
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: whoami
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: whoami
|
|
|
|
image: containous/whoami
|
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 80
|