Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Last active October 17, 2019 21:21
Show Gist options
  • Save richardsonlima/3bf300024143d03d6d522e046e64ee7a to your computer and use it in GitHub Desktop.
Save richardsonlima/3bf300024143d03d6d522e046e64ee7a to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
serviceAccountName: traefik-ingress-controller
terminationGracePeriodSeconds: 60
containers:
- image: traefik
name: traefik-ingress-lb
ports:
- name: http
containerPort: 80
hostPort: 81
- name: admin
containerPort: 8080
securityContext:
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
args:
- --api
- --kubernetes
- --insecureskipverify
- --logLevel=DEBUG
---
kind: Service
apiVersion: v1
metadata:
name: traefik-ingress-service
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- protocol: TCP
port: 81
name: web
- protocol: TCP
port: 8060
name: admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment