Last active
May 27, 2020 08:31
-
-
Save lfache/0c14dc58e32a577d3aefc45235b733d7 to your computer and use it in GitHub Desktop.
deployment for whoami only HTTP
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: | |
name: whoami-app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: whoami-app | |
template: | |
metadata: | |
labels: | |
app: whoami-app | |
spec: | |
containers: | |
- name: whoami-app | |
image: containous/whoami | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: whoami-app | |
labels: | |
app: whoami-app | |
spec: | |
ports: | |
- port: 80 | |
name: whoami-app | |
selector: | |
app: whoami-app | |
--- | |
apiVersion: traefik.containo.us/v1alpha1 | |
kind: IngressRoute | |
metadata: | |
name: ingressroutetls | |
spec: | |
entryPoints: | |
- web | |
routes: | |
- match: Host(`mydomain.com`) | |
kind: Rule | |
services: | |
- name: whoami-app | |
port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment