add custom

This commit is contained in:
ducoterra
2020-04-20 09:45:29 -04:00
parent 2090a38310
commit 4f18562459
4 changed files with 231 additions and 0 deletions

59
custom/deploy.yaml Normal file
View File

@@ -0,0 +1,59 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-custom-controller
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: traefik
labels:
app: traefik
spec:
replicas: 1
selector:
matchLabels:
app: traefik
template:
metadata:
labels:
app: traefik
spec:
serviceAccountName: traefik-custom-controller
containers:
- name: traefik
image: traefik:v2.2
args:
- --log.level=DEBUG
- --api
- --api.insecure
- --entrypoints.web.address=:9080
- --entrypoints.websecure.address=:9443
- --entrypoints.websecure.http.tls=true
- --providers.kubernetescrd
ports:
- name: web
containerPort: 9080
- name: tcpep
containerPort: 9443
---
apiVersion: v1
kind: Service
metadata:
name: traefik
spec:
type: LoadBalancer
selector:
app: traefik
ports:
- protocol: TCP
port: 9080
name: web
targetPort: 9080
- protocol: TCP
port: 9443
name: websecure
targetPort: 9443