Add OMV endpoint, ingress, and service configurations

This commit is contained in:
2026-01-21 05:13:07 +05:30
parent 8d1dda3e9f
commit 1e9f1f9f48
3 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Endpoints
metadata:
name: omv
namespace: external-resources
subsets:
- addresses:
- ip: 192.168.1.4
ports:
- name: http
protocol: TCP
port: 80

View File

@@ -0,0 +1,27 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: omv-ingress
namespace: external-resources
annotations:
cert-manager.io/cluster-issuer: letsencrypt-cloudflare
traefik.ingress.kubernetes.io/router.middlewares: tools-authelia@kubernetescrd
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
ingressClassName: traefik
tls:
- hosts:
- omv.akshun-lab.cc
secretName: omv-tls
rules:
- host: omv.akshun-lab.cc
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: omv
port:
number: 80

View File

@@ -0,0 +1,13 @@
---
apiVersion: v1
kind: Service
metadata:
name: omv
namespace: external-resources
spec:
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
clusterIP: None