Last active
June 3, 2020 06:00
-
-
Save mickael-kerjean/227fe531964929c1ac65afaa64c9fc61 to your computer and use it in GitHub Desktop.
install_ingress.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: DaemonSet | |
apiVersion: apps/v1 | |
metadata: | |
name: traefik-ingress-controller | |
namespace: kube-system | |
labels: | |
k8s-app: traefik-ingress-lb | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: traefik-ingress-lb | |
name: traefik-ingress-lb | |
template: | |
metadata: | |
labels: | |
k8s-app: traefik-ingress-lb | |
name: traefik-ingress-lb | |
spec: | |
serviceAccountName: traefik-ingress-controller | |
terminationGracePeriodSeconds: 60 | |
containers: | |
- image: traefik:v1.7 | |
name: traefik-ingress-lb | |
ports: | |
- name: http | |
containerPort: 80 | |
hostPort: 80 | |
- name: https | |
containerPort: 443 | |
hostPort: 443 | |
securityContext: | |
capabilities: | |
drop: | |
- ALL | |
add: | |
- NET_BIND_SERVICE | |
args: | |
- --api | |
- --kubernetes | |
- --logLevel=INFO | |
- --defaultentrypoints=http,https | |
- --entrypoints=Name:https Address::443 TLS | |
- --entrypoints=Name:http Address::80 | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: traefik-ingress-service | |
namespace: kube-system | |
spec: | |
selector: | |
k8s-app: traefik-ingress-lb | |
ports: | |
- protocol: TCP | |
port: 80 | |
name: web | |
- protocol: TCP | |
port: 8080 | |
name: admin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment