Add Kubernetes manifests for self-hosted services
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
# ingress-cilium.yaml
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: docker-registry
|
||||
namespace: registry
|
||||
annotations:
|
||||
# Forces Cilium to assign a unique IP from your 10.1.0.x pool
|
||||
ingress.cilium.io/loadbalancer-mode: "dedicated"
|
||||
spec:
|
||||
ingressClassName: cilium # use Cilium as the Ingress controller
|
||||
rules:
|
||||
- host: "rg.mariushome.lt"
|
||||
http:
|
||||
paths:
|
||||
# Route registry API (must be before the UI catch-all)
|
||||
- path: /v2
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: docker-registry
|
||||
port:
|
||||
number: 5000
|
||||
# Route everything else to the UI
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: registry-ui
|
||||
port:
|
||||
number: 80
|
||||
Reference in New Issue
Block a user