[WIFI-7854] Fix: allow access from github actions to kube api

Signed-off-by: Dmitry Dunaev <dmitry@opsfleet.com>
This commit is contained in:
Dmitry Dunaev
2022-05-09 15:28:07 +03:00
parent 9d46389431
commit 9985c85ac4
2 changed files with 20 additions and 1 deletions

View File

@@ -14,4 +14,3 @@ spec:
except:
- 10.10.0.0/16
- 172.20.0.0/16

View File

@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: egress-allow-kube-api
spec:
podSelector:
matchLabels: {}
policyTypes:
- Egress
egress:
- ports:
- port: 443
protocol: TCP
to:
- ipBlock:
cidr: 172.20.0.1/32
- ipBlock:
cidr: 10.10.11.166/32
- ipBlock:
cidr: 10.10.12.140/32