Created
March 14, 2020 21:35
-
-
Save youngkin/5a170ed04a500483ba52743696f1be7b to your computer and use it in GitHub Desktop.
Create whoami test deployment for Traefik
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: whoami-ingress | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: | |
- host: whoami.localhost | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: whoami-service | |
servicePort: http | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: whoami-service | |
spec: | |
ports: | |
- name: http | |
targetPort: 80 | |
port: 80 | |
selector: | |
app: whoami | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: whoami-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: whoami | |
template: | |
metadata: | |
labels: | |
app: whoami | |
spec: | |
containers: | |
- name: whoami-container | |
image: kingdevnl/whoami:arm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment