Skip to content

Instantly share code, notes, and snippets.

@lfache
lfache / whoami.yaml
Created May 26, 2020 20:36
Whoami for Traefik example with HTTPS
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ingressroutetls
spec:
entryPoints:
- websecure
routes:
- match: Host(`mydomain.com`)
kind: Rule
@lfache
lfache / whoami.yaml
Last active May 27, 2020 08:31
deployment for whoami only HTTP
kind: Deployment
apiVersion: apps/v1
metadata:
name: whoami-app
spec:
replicas: 1
selector:
matchLabels:
app: whoami-app
template:
@lfache
lfache / gist:fca258bfde73066fea66f3888eb45622
Created May 26, 2020 13:15
Deployment.yaml for Traefik 2.2 on Kubernetes
apiVersion: v1
kind: Service
metadata:
name: traefik
spec:
ports:
- protocol: TCP
name: web
port: 80
- protocol: TCP
@lfache
lfache / CustomResourceDefinition.yaml
Created May 26, 2020 12:59
CustomResourceDefinition for Traefik 2.2 on Kubernetes
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingressroutes.traefik.containo.us
spec:
group: traefik.containo.us
version: v1alpha1
names:
kind: IngressRoute