Allowed approved namespaces to access platform Postgres
This commit is contained in:
parent
b86f749653
commit
c2182b4578
1 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: cilium.io/v2
|
||||||
|
kind: CiliumNetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: platform-postgres-ingress
|
||||||
|
namespace: platform-services
|
||||||
|
spec:
|
||||||
|
endpointSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: platform-postgres
|
||||||
|
ingress:
|
||||||
|
- fromEndpoints:
|
||||||
|
- matchLabels:
|
||||||
|
k8s:io.kubernetes.pod.namespace: forgejo
|
||||||
|
- matchLabels:
|
||||||
|
k8s:io.kubernetes.pod.namespace: openproject
|
||||||
|
- matchLabels:
|
||||||
|
k8s:io.kubernetes.pod.namespace: pgadmin
|
||||||
|
toPorts:
|
||||||
|
- ports:
|
||||||
|
- port: "5432"
|
||||||
|
protocol: TCP
|
||||||
Loading…
Add table
Add a link
Reference in a new issue