kind: Deployment
apiVersion: apps/v1
metadata:
  name: whoami
  labels:
    app: whoami

spec:
  replicas: 1
  selector:
    matchLabels:
      app: whoami
  template:
    metadata:
      labels:
        app: whoami
    spec:
      containers:
        - name: whoami
          image: traefik/whoami
          ports:
            - name: web
              containerPort: 80
apiVersion: v1
kind: Service
metadata:
  name: whoami

spec:
  type: ClusterIP
  ports:
    - name: web
      port: 80
      targetPort: 80

  selector:
    app: whoami
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: whoami-ingress-route
  namespace: default
spec:
  entryPoints:
    - websecure
  routes:
  - match: (Host(`whoami.dezendorf.net`)||Host(`whoamir.dezendorf.net`))
    kind: Rule
    services:
    - name: whoami
      port: 80
  tls:
    certResolver: myresolver

