add harbor
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
d8e2543152
commit
8ca8f0b8ea
45 changed files with 322 additions and 805 deletions
37
apps/harbor/templates/network-policies.yaml
Normal file
37
apps/harbor/templates/network-policies.yaml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
apiVersion: "cilium.io/v2"
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: harbor-intra-namespace-allow
|
||||
namespace: harbor
|
||||
spec:
|
||||
description: "Allow all internal Harbor microservices to talk to each other cleanly"
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
app: harbor
|
||||
ingress:
|
||||
- fromEndpoints:
|
||||
- matchLabels:
|
||||
io.kubernetes.pod.namespace: harbor
|
||||
egress:
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
io.kubernetes.pod.namespace: harbor
|
||||
---
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: allow-ingress
|
||||
namespace: harbor
|
||||
spec:
|
||||
description: "Allow external traffic from the shared Cilium edge proxy into the harbor namespace services"
|
||||
endpointSelector:
|
||||
matchLabels: {}
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- ingress
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "80"
|
||||
protocol: TCP
|
||||
- port: "8080"
|
||||
protocol: TCP
|
||||
Loading…
Add table
Add a link
Reference in a new issue