Skip to content

Instantly share code, notes, and snippets.

@lfache
Last active May 27, 2020 08:31
Show Gist options
  • Save lfache/0c14dc58e32a577d3aefc45235b733d7 to your computer and use it in GitHub Desktop.
Save lfache/0c14dc58e32a577d3aefc45235b733d7 to your computer and use it in GitHub Desktop.
deployment for whoami only HTTP
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