Last active
August 5, 2020 13:46
-
-
Save Yitaek/9151d872693a4d88d56b4a7a9b802e75 to your computer and use it in GitHub Desktop.
Traefik whoami files
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: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
namespace: default | |
name: whoami | |
labels: | |
app: whoami | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: whoami | |
template: | |
metadata: | |
labels: | |
app: whoami | |
spec: | |
containers: | |
- name: whoami | |
image: containous/whoami | |
ports: | |
- name: web | |
containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: whoami | |
spec: | |
ports: | |
- protocol: TCP | |
name: web | |
port: 80 | |
selector: | |
app: whoami | |
--- | |
apiVersion: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
name: whoami | |
spec: | |
entryPoints: | |
- websecure | |
routes: | |
- match: Host(`whoami.example.com`) | |
kind: Rule | |
services: | |
- name: whoami | |
port: 80 | |
tls: | |
secretName: whoami |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment