Created
April 12, 2021 09:47
-
-
Save lemmy04/87f9ed481f416d30a3d0f9e89d970fec to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: whoami | |
--- | |
kind: Deployment | |
apiVersion: apps/v1 | |
metadata: | |
name: whoami-app | |
namespace: whoami | |
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 | |
namespace: whoami | |
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 | |
namespace: whoami | |
spec: | |
entryPoints: | |
- websecure | |
routes: | |
- match: Host(`whoami.apps.my.lan`) | |
kind: Rule | |
services: | |
- name: whoami-app | |
port: 80 | |
tls: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment