--- apiVersion: v1 kind: Namespace metadata: name: whoami --- apiVersion: apps/v1 kind: Deployment metadata: labels: app: whoami name: whoami namespace: whoami spec: replicas: 2 selector: matchLabels: app: whoami template: metadata: labels: app: whoami spec: containers: - image: traefik/whoami:v1.10.3 name: whoami ports: - name: web containerPort: 80 --- apiVersion: v1 kind: Service metadata: labels: app: whoami name: whoami namespace: whoami spec: ports: - name: http port: 80 targetPort: web selector: app: whoami --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: whoami-ingress namespace: whoami annotations: cert-manager.io/cluster-issuer: letsencrypt-production external-dns.alpha.kubernetes.io/hostname: whoami.van-hemmen.com traefik.ingress.kubernetes.io/router.entrypoints: websecure spec: rules: - host: whoami.van-hemmen.com http: paths: - path: / pathType: Prefix backend: service: name: whoami port: number: 80 tls: - hosts: - whoami.van-hemmen.com secretName: whoami-app-tls ---