UNCLASSIFIED

Commits (2)
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.8.4-bb.4]
### Added
- Kube API egress networkpolicy
## [1.8.4-bb.3] ## [1.8.4-bb.3]
### Added ### Added
- Added network policies for istio - Added network policies for istio
......
apiVersion: v2 apiVersion: v2
name: istio name: istio
version: 1.8.4-bb.3 version: 1.8.4-bb.4
{{- if .Values.networkPolicies.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-egress-api
namespace: {{ .Release.Namespace }}
spec:
podSelector:
matchLabels:
app: istiod
egress:
- to:
- ipBlock:
cidr: {{ .Values.networkPolicies.controlPlaneCidr }}
{{- if eq .Values.networkPolicies.controlPlaneCidr "0.0.0.0/0" }}
# ONLY Block requests to cloud metadata IP
except:
- 169.254.169.254/32
{{- end }}
policyTypes:
- Egress
{{- end }}
...@@ -221,3 +221,4 @@ values: ...@@ -221,3 +221,4 @@ values:
networkPolicies: networkPolicies:
enabled: false enabled: false
controlPlaneCidr: 0.0.0.0/0
...@@ -3,3 +3,4 @@ imagePullSecrets: ...@@ -3,3 +3,4 @@ imagePullSecrets:
networkPolicies: networkPolicies:
enabled: true enabled: true
controlPlaneCidr: 172.16.0.0/12