UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Big Bang
P
Packages
Core
istio-controlplane
Compare Revisions
6f1ad6cf5aa3d2a1124f97d4dff425f11d5e4681...445ca59c20af70fd5b6ac2363163096ee1b75e5f
Commits (2)
Add Kube API egress NP
· 0e391478
Micah Nagel
authored
Jul 15, 2021
0e391478
Merge branch 'kube-api-egress' into 'main'
· 445ca59c
Micah Nagel
authored
Jul 15, 2021
Add Kube API egress NP See merge request
!52
445ca59c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
1 deletion
+29
-1
CHANGELOG.md
CHANGELOG.md
+4
-0
chart/Chart.yaml
chart/Chart.yaml
+1
-1
chart/templates/network-policy/egress-kube-api.yaml
chart/templates/network-policy/egress-kube-api.yaml
+22
-0
chart/values.yaml
chart/values.yaml
+1
-0
tests/test-values.yaml
tests/test-values.yaml
+1
-0
No files found.
CHANGELOG.md
View file @
445ca59c
...
...
@@ -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
)
.
## [1.8.4-bb.4]
### Added
-
Kube API egress networkpolicy
## [1.8.4-bb.3]
### Added
-
Added network policies for istio
...
...
chart/Chart.yaml
View file @
445ca59c
apiVersion
:
v2
name
:
istio
version
:
1.8.4-bb.
3
version
:
1.8.4-bb.
4
chart/templates/network-policy/egress-kube-api.yaml
0 → 100644
View file @
445ca59c
{{
- 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
}}
chart/values.yaml
View file @
445ca59c
...
...
@@ -221,3 +221,4 @@ values:
networkPolicies
:
enabled
:
false
controlPlaneCidr
:
0.0.0.0/0
tests/test-values.yaml
View file @
445ca59c
...
...
@@ -3,3 +3,4 @@ imagePullSecrets:
networkPolicies
:
enabled
:
true
controlPlaneCidr
:
172.16.0.0/12