apiVersion: apps/v1
kind: Deployment
metadata:
  name: minimal-setups
  labels:
    app: minimal-setups
spec:
  replicas: 1
  selector:
    matchLabels:
      app: minimal-setups
  template:
    metadata:
      labels:
        app: minimal-setups
    spec:
      containers:
        - name: minimal-setups
          image: %IMAGE%
          ports:
            - containerPort: 8080
              protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
  name: minimal-setups
spec:
  type: ClusterIP
  selector:
    app: minimal-setups
  ports:
    - name: http
      targetPort: 8080
      port: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: minimal-setups
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-production-http
spec:
  tls:
    - hosts:
        - minimal-setups.de
      secretName: minimal-setups
  rules:
    - host: minimal-setups.de
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: minimal-setups
                port:
                  number: 80

