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
Collaboration Tools
mattermost
Commits
9f9b8ca9
Commit
9f9b8ca9
authored
Jun 21, 2021
by
Micah Nagel
💰
Browse files
Merge branch 'np-init' into 'main-minio2'
Fix MM NP Bug See merge request
!40
parents
a143a98d
a0744fa5
Pipeline
#328031
passed with stages
in 5 minutes and 29 seconds
Changes
7
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
12 deletions
+55
-12
CHANGELOG.md
CHANGELOG.md
+6
-0
chart/Chart.yaml
chart/Chart.yaml
+1
-1
chart/templates/bigbang/networkpolicies/allow-dns-egress.yaml
...t/templates/bigbang/networkpolicies/allow-dns-egress.yaml
+18
-0
chart/templates/bigbang/networkpolicies/allow-external-postgres.yaml
...ates/bigbang/networkpolicies/allow-external-postgres.yaml
+19
-0
chart/templates/bigbang/networkpolicies/allow-test-egress.yaml
.../templates/bigbang/networkpolicies/allow-test-egress.yaml
+9
-2
chart/templates/bigbang/networkpolicies/deny-default.yaml
chart/templates/bigbang/networkpolicies/deny-default.yaml
+1
-9
chart/values.yaml
chart/values.yaml
+1
-0
No files found.
CHANGELOG.md
View file @
9f9b8ca9
...
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
...
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
---
---
## [0.1.6-bb.5] - 2021-06-21
### Fixed
-
NetworkPolicy blocking an init container, added policy to allow postgres egress for the init container
-
Redo of test egress
-
Move around DNS policy
## [0.1.6-bb.4] - 2021-06-07
## [0.1.6-bb.4] - 2021-06-07
### Added
### Added
-
Ability to pass volumes / volumeMounts to MM pods
-
Ability to pass volumes / volumeMounts to MM pods
...
...
chart/Chart.yaml
View file @
9f9b8ca9
apiVersion
:
v2
apiVersion
:
v2
name
:
mattermost
name
:
mattermost
type
:
application
type
:
application
version
:
"
0.1.6-bb.
4
"
version
:
"
0.1.6-bb.
5
"
appVersion
:
"
5.34.2"
appVersion
:
"
5.34.2"
description
:
"
Deployment
of
mattermost"
description
:
"
Deployment
of
mattermost"
keywords
:
keywords
:
...
...
chart/templates/bigbang/networkpolicies/allow-dns-egress.yaml
0 → 100644
View file @
9f9b8ca9
{{
- if .Values.networkPolicies.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
allow-dns-egress
namespace
:
{{
.Release.Namespace
}}
spec
:
podSelector
:
{}
policyTypes
:
-
Egress
# Allow access to DNS
egress
:
-
to
:
-
namespaceSelector
:
{}
ports
:
-
port
:
53
protocol
:
UDP
{{
- end
}}
chart/templates/bigbang/networkpolicies/allow-external-postgres.yaml
View file @
9f9b8ca9
...
@@ -17,4 +17,23 @@ spec:
...
@@ -17,4 +17,23 @@ spec:
# ONLY Block requests to AWS metadata IP
# ONLY Block requests to AWS metadata IP
except
:
except
:
-
169.254.169.254/32
-
169.254.169.254/32
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
allow-external-postgres-egress-upgrade
namespace
:
{{
.Release.Namespace
}}
spec
:
podSelector
:
matchLabels
:
app
:
mattermost-update-check
policyTypes
:
-
Egress
egress
:
-
to
:
-
ipBlock
:
cidr
:
0.0.0.0/0
# ONLY Block requests to AWS metadata IP
except
:
-
169.254.169.254/32
{{
- end
}}
{{
- end
}}
chart/templates/bigbang/networkpolicies/allow-test-egress.yaml
View file @
9f9b8ca9
...
@@ -11,9 +11,16 @@ spec:
...
@@ -11,9 +11,16 @@ spec:
podSelector
:
podSelector
:
matchLabels
:
matchLabels
:
helm-test
:
enabled
helm-test
:
enabled
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
:
policyTypes
:
-
Egress
-
Egress
egress
:
-
{}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
chart/templates/bigbang/networkpolicies/deny-default.yaml
View file @
9f9b8ca9
...
@@ -9,14 +9,6 @@ spec:
...
@@ -9,14 +9,6 @@ spec:
policyTypes
:
policyTypes
:
-
Ingress
-
Ingress
-
Egress
-
Egress
# Deny all ingress
ingress
:
[]
ingress
:
[]
# Deny egress by default
egress
:
[]
# Allow access to DNS and Kube API
egress
:
-
to
:
-
namespaceSelector
:
{}
ports
:
-
port
:
53
protocol
:
UDP
{{
- end
}}
{{
- end
}}
chart/values.yaml
View file @
9f9b8ca9
...
@@ -23,6 +23,7 @@ networkPolicies:
...
@@ -23,6 +23,7 @@ networkPolicies:
ingressLabels
:
ingressLabels
:
app
:
istio-ingressgateway
app
:
istio-ingressgateway
istio
:
ingressgateway
istio
:
ingressgateway
controlPlaneCidr
:
0.0.0.0/0
sso
:
sso
:
enabled
:
false
enabled
:
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment