31 lines
664 B
YAML
31 lines
664 B
YAML
|
|
# services/hermes/networkpolicy.yaml
|
||
|
|
apiVersion: networking.k8s.io/v1
|
||
|
|
kind: NetworkPolicy
|
||
|
|
metadata:
|
||
|
|
name: hermes-ollama-ingress
|
||
|
|
namespace: hermes
|
||
|
|
spec:
|
||
|
|
podSelector:
|
||
|
|
matchLabels:
|
||
|
|
app: hermes-ollama
|
||
|
|
policyTypes:
|
||
|
|
- Ingress
|
||
|
|
ingress:
|
||
|
|
- from:
|
||
|
|
- podSelector:
|
||
|
|
matchLabels:
|
||
|
|
app: hermes-model-gate
|
||
|
|
ports:
|
||
|
|
- protocol: TCP
|
||
|
|
port: 11434
|
||
|
|
- from:
|
||
|
|
- namespaceSelector:
|
||
|
|
matchLabels:
|
||
|
|
kubernetes.io/metadata.name: maintenance
|
||
|
|
podSelector:
|
||
|
|
matchLabels:
|
||
|
|
app: ariadne
|
||
|
|
ports:
|
||
|
|
- protocol: TCP
|
||
|
|
port: 11434
|