Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Created May 20, 2017 02:35
Show Gist options
  • Save marcoceppi/bb9463e84ee2667b05d0dcf06da46a57 to your computer and use it in GitHub Desktop.
Save marcoceppi/bb9463e84ee2667b05d0dcf06da46a57 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-controller
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 1
selector:
matchLabels:
k8s-app: traefik-ingress-lb
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
spec:
terminationGracePeriodSeconds: 60
hostNetwork: true
containers:
- image: traefik
name: traefik-ingress-lb
resources:
limits:
cpu: 200m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
- name: admin
containerPort: 8081
args:
- -d
- --web
- --web.address=:8081
- --kubernetes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment