UNCLASSIFIED

Commits (6)
...@@ -2,6 +2,14 @@ ...@@ -2,6 +2,14 @@
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.5]
### Fixed
- Kube API egress allowed for all pods, not just istiod
## [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.5
{{- if .Values.networkPolicies.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: egress-kube-api
namespace: {{ .Release.Namespace }}
spec:
podSelector: {}
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 }}
...@@ -150,7 +150,7 @@ extraIngressGateways: [] ...@@ -150,7 +150,7 @@ extraIngressGateways: []
# minReplicas: 1 # minReplicas: 1
# maxReplicas: 3 # maxReplicas: 3
# serviceAnnotations: # serviceAnnotations:
# service.beta.kubernetes.io/aws-load-balancer-internal: "true # service.beta.kubernetes.io/aws-load-balancer-internal: "true"
# metrics: # metrics:
# - type: Resource # - type: Resource
# resource: # resource:
...@@ -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