Skip to content

Instantly share code, notes, and snippets.

@rrichardson
Created October 4, 2016 20:42
Show Gist options
  • Save rrichardson/373129e3fa7685b9c71cfc1baa90e324 to your computer and use it in GitHub Desktop.
Save rrichardson/373129e3fa7685b9c71cfc1baa90e324 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: traefik-ingress-lb
namespace: kube-system
labels:
k8s-app: traefik-ingress-lb
spec:
replicas: 3
# selector:
# matchLabels:
# k8s-app: traefik-ingress-lb
template:
metadata:
labels:
k8s-app: traefik-ingress-lb
name: traefik-ingress-lb
namespace: kube-system
version: v1.1.0
spec:
imagePullSecrets:
- name: gitlab-key
terminationGracePeriodSeconds: 60
containers:
- image: git.me.com:4567/devops/traefik-ingress-controller:1.1
name: traefik-ingress-controller
resources:
limits:
cpu: 200m
memory: 30Mi
requests:
cpu: 100m
memory: 20Mi
ports:
- name: http
containerPort: 80
hostPort: 80
- name: admin
containerPort: 8080
args:
- --web
- --kubernetes
- --logLevel=DEBUG
---
apiVersion: v1
kind: Service
metadata:
name: traefik-ingress-lb
namespace: kube-system
spec:
type: LoadBalancer
selector:
app: traefik-ingress-lb
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment