I hate ingress controllers
This commit is contained in:
@@ -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-common-egress.yaml
|
||||
- allow-https-egress.yaml
|
||||
- allow-tools-ingress.yaml
|
||||
- allow-coderunner-ingress.yaml
|
||||
- allow-rag-server-ingress.yaml
|
||||
|
||||
Reference in New Issue
Block a user