ingress from workflow allowed
This commit is contained in:
parent
0526ae4e3b
commit
38897e474f
@ -226,7 +226,7 @@ spec:
|
|||||||
original-owner: "$OWNER"
|
original-owner: "$OWNER"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create NetworkPolicy for isolation (allows ingress from same namespace and ingress-nginx)
|
# Create NetworkPolicy for isolation (allows ingress from same namespace, ingress-nginx, and argo-workflows)
|
||||||
cat > manifests/networkpolicy.yaml <<EOF
|
cat > manifests/networkpolicy.yaml <<EOF
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
@ -246,6 +246,10 @@ spec:
|
|||||||
- namespaceSelector:
|
- namespaceSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
kubernetes.io/metadata.name: ingress-nginx
|
kubernetes.io/metadata.name: ingress-nginx
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: argo-workflows
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Create service manifests
|
# Create service manifests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user