Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: ServiceAccount
- metadata:
- namespace: default
- name: traefik-ingress-controller
- ---
- kind: Deployment
- apiVersion: apps/v1
- metadata:
- namespace: default
- name: traefik
- labels:
- app: traefik
- spec:
- replicas: 2
- selector:
- matchLabels:
- app: traefik
- template:
- metadata:
- labels:
- app: traefik
- spec:
- serviceAccountName: traefik-ingress-controller
- volumes:
- - name: acme
- hostPath:
- path: /storage/config/traefik
- containers:
- - name: traefik
- image: traefik:v2.2
- args:
- - --api.insecure
- - --accesslog
- - --entrypoints.web.Address=:80
- - --entrypoints.websecure.Address=:443
- - --providers.kubernetescrd
- - --certificatesresolvers.letsencrypt.acme.tlschallenge
- - --certificatesresolvers.letsencrypt.acme.email=jamiestinson1@icloud.com
- - --certificatesresolvers.letsencrypt.acme.storage=/data/acme.json
- # Please note that this is the staging Let's Encrypt server.
- # Once you get things working, you should remove that whole line altogether.
- - --certificatesresolvers.letsencrypt.acme.caserver=https://acme-v02.api.letsencrypt.org/directory
- ports:
- - name: web
- containerPort: 80
- - name: websecure
- containerPort: 443
- - name: admin
- containerPort: 8080
- volumeMounts:
- - name: acme
- mountPath: /data
- ---
- kind: Deployment
- apiVersion: apps/v1
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement