I hate ingress controllers

This commit is contained in:
ION606
2025-09-13 21:22:21 -04:00
parent 2c538a1cf9
commit 85635f9648
10 changed files with 58 additions and 14 deletions
+2 -9
View File
@@ -4,21 +4,14 @@ image:
pullPolicy: IfNotPresent
service:
type: ClusterIP # use Ingress for external access
type: NodePort
persistence:
enabled: true
size: 5Gi
ingress:
enabled: true # expose via nginx ingress
className: nginx
hosts:
- host: openwebui.local
paths:
- path: /
pathType: Prefix
tls: [] # no https for local/minikube
enabled: false
# NO SECRETS!!!
extraEnvVars:
+1 -1
View File
@@ -56,4 +56,4 @@ spec:
- name: http
port: 12253
targetPort: 12253
type: ClusterIP
type: NodePort
+1 -1
View File
@@ -37,4 +37,4 @@ metadata: { name: browser, namespace: ai }
spec:
selector: { app: browser }
ports: [{ name: http, port: 7788, targetPort: 7788 }]
type: ClusterIP
type: NodePort
+1 -1
View File
@@ -41,4 +41,4 @@ metadata: { name: coderunner, namespace: ai }
spec:
selector: { app: coderunner }
ports: [{ name: http, port: 8787, targetPort: 8787 }]
type: ClusterIP
type: NodePort
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-coderunner-ingress
namespace: ai
spec:
podSelector:
matchLabels:
app: coderunner
policyTypes: ["Ingress"]
ingress:
- from:
- ipBlock: { cidr: 0.0.0.0/0 }
ports:
- { protocol: TCP, port: 8787 }
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-rag-server-ingress
namespace: ai
spec:
podSelector:
matchLabels:
app: rag-server
policyTypes: ["Ingress"]
ingress:
- from:
- ipBlock: { cidr: 0.0.0.0/0 }
ports:
- { protocol: TCP, port: 8788 }
+16
View File
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-tools-ingress
namespace: ai
spec:
podSelector:
matchLabels:
app: tools
policyTypes: ["Ingress"]
ingress:
- from:
- ipBlock: { cidr: 0.0.0.0/0 }
ports:
- { protocol: TCP, port: 1331 }
+3
View File
@@ -7,3 +7,6 @@ resources:
- allow-browser-ingress.yaml
- allow-common-egress.yaml
- allow-https-egress.yaml
- allow-tools-ingress.yaml
- allow-coderunner-ingress.yaml
- allow-rag-server-ingress.yaml
+1 -1
View File
@@ -36,4 +36,4 @@ metadata: { name: rag-server, namespace: ai }
spec:
selector: { app: rag-server }
ports: [{ name: http, port: 8788, targetPort: 8788 }]
type: ClusterIP
type: NodePort
+1 -1
View File
@@ -32,4 +32,4 @@ metadata: { name: tools, namespace: ai }
spec:
selector: { app: tools }
ports: [{ name: http, port: 1331, targetPort: 1331 }]
type: ClusterIP
type: NodePort