[DO-1600] Fix trivy-operator 7 (!48)
[DO-1600] Reviewed-on: https://git.avroid.tech/K8s/k8s-configs/pulls/48
This commit is contained in:
@@ -20,6 +20,25 @@ spec:
|
|||||||
- ports:
|
- ports:
|
||||||
- port: 4954
|
- port: 4954
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
# https://aquasecurity.github.io/trivy-operator/v0.23.0/getting-started/installation/troubleshooting/#installing-the-operator-in-a-namespace-with-default-deny-all-egressingress-network-policies
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: NetworkPolicy
|
||||||
|
metadata:
|
||||||
|
name: trivy-in-4954
|
||||||
|
namespace: avroid-prod
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
spec:
|
||||||
|
podSelector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: trivy
|
||||||
|
policyTypes:
|
||||||
|
- Ingress
|
||||||
|
ingress:
|
||||||
|
- ports:
|
||||||
|
- port: 4954
|
||||||
|
protocol: TCP
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
|
|||||||
Reference in New Issue
Block a user