apiVersion: v1
kind: Service
metadata:
  name: gohoarder
  namespace: default
  labels:
    app: gohoarder
spec:
  type: ClusterIP
  ports:
  - port: 8080
    targetPort: http
    protocol: TCP
    name: http
  selector:
    app: gohoarder
---
# Optional: Ingress for external access
# Uncomment and configure based on your ingress controller
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
#   name: gohoarder
#   namespace: default
#   annotations:
#     nginx.ingress.kubernetes.io/proxy-body-size: "500m"
#     nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
# spec:
#   ingressClassName: nginx
#   rules:
#   - host: gohoarder.example.com
#     http:
#       paths:
#       - path: /
#         pathType: Prefix
#         backend:
#           service:
#             name: gohoarder
#             port:
#               name: http
#   tls:
#   - hosts:
#     - gohoarder.example.com
#     secretName: gohoarder-tls
