I hate ingress controllers
This commit is contained in:
@@ -4,21 +4,14 @@ image:
|
|||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP # use Ingress for external access
|
type: NodePort
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 5Gi
|
size: 5Gi
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true # expose via nginx ingress
|
enabled: false
|
||||||
className: nginx
|
|
||||||
hosts:
|
|
||||||
- host: openwebui.local
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
tls: [] # no https for local/minikube
|
|
||||||
|
|
||||||
# NO SECRETS!!!
|
# NO SECRETS!!!
|
||||||
extraEnvVars:
|
extraEnvVars:
|
||||||
|
|||||||
@@ -56,4 +56,4 @@ spec:
|
|||||||
- name: http
|
- name: http
|
||||||
port: 12253
|
port: 12253
|
||||||
targetPort: 12253
|
targetPort: 12253
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
|
|||||||
@@ -37,4 +37,4 @@ metadata: { name: browser, namespace: ai }
|
|||||||
spec:
|
spec:
|
||||||
selector: { app: browser }
|
selector: { app: browser }
|
||||||
ports: [{ name: http, port: 7788, targetPort: 7788 }]
|
ports: [{ name: http, port: 7788, targetPort: 7788 }]
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
|
|||||||
@@ -41,4 +41,4 @@ metadata: { name: coderunner, namespace: ai }
|
|||||||
spec:
|
spec:
|
||||||
selector: { app: coderunner }
|
selector: { app: coderunner }
|
||||||
ports: [{ name: http, port: 8787, targetPort: 8787 }]
|
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 }
|
||||||
|
|
||||||
@@ -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 }
|
||||||
|
|
||||||
@@ -7,3 +7,6 @@ resources:
|
|||||||
- allow-browser-ingress.yaml
|
- allow-browser-ingress.yaml
|
||||||
- allow-common-egress.yaml
|
- allow-common-egress.yaml
|
||||||
- allow-https-egress.yaml
|
- allow-https-egress.yaml
|
||||||
|
- allow-tools-ingress.yaml
|
||||||
|
- allow-coderunner-ingress.yaml
|
||||||
|
- allow-rag-server-ingress.yaml
|
||||||
|
|||||||
@@ -36,4 +36,4 @@ metadata: { name: rag-server, namespace: ai }
|
|||||||
spec:
|
spec:
|
||||||
selector: { app: rag-server }
|
selector: { app: rag-server }
|
||||||
ports: [{ name: http, port: 8788, targetPort: 8788 }]
|
ports: [{ name: http, port: 8788, targetPort: 8788 }]
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
|
|||||||
@@ -32,4 +32,4 @@ metadata: { name: tools, namespace: ai }
|
|||||||
spec:
|
spec:
|
||||||
selector: { app: tools }
|
selector: { app: tools }
|
||||||
ports: [{ name: http, port: 1331, targetPort: 1331 }]
|
ports: [{ name: http, port: 1331, targetPort: 1331 }]
|
||||||
type: ClusterIP
|
type: NodePort
|
||||||
|
|||||||
Reference in New Issue
Block a user