mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-06-05 22:53:53 +00:00
45 lines
938 B
YAML
45 lines
938 B
YAML
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
|