kind: Service apiVersion: v1 metadata: name: nextcloud namespace: nextcloud spec: selector: app: nextcloud ports: - protocol: TCP port: 80 targetPort: 80 --- apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: nextcloud namespace: nextcloud spec: rules: - host: cloud.shoup.io http: paths: - backend: serviceName: nextcloud servicePort: 80 path: /