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
Developer Tools
Nexus
Commits
c2b52a1e
Commit
c2b52a1e
authored
Jun 10, 2021
by
kevin.wilder
Browse files
Merge branch 'network-policies' into 'main'
Network policies See merge request
!4
parents
b71f41b3
e8d6ff71
Pipeline
#308226
passed with stages
in 2 minutes and 56 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
117 additions
and
2 deletions
+117
-2
CHANGELOG.md
CHANGELOG.md
+5
-0
chart/Chart.yaml
chart/Chart.yaml
+1
-1
chart/templates/bigbang/networkpolicies/default-deny-all.yaml
...t/templates/bigbang/networkpolicies/default-deny-all.yaml
+15
-0
chart/templates/bigbang/networkpolicies/istio.yaml
chart/templates/bigbang/networkpolicies/istio.yaml
+44
-0
chart/templates/bigbang/networkpolicies/kube-api-egress.yaml
chart/templates/bigbang/networkpolicies/kube-api-egress.yaml
+19
-0
chart/templates/bigbang/networkpolicies/monitoring.yaml
chart/templates/bigbang/networkpolicies/monitoring.yaml
+24
-0
chart/values.yaml
chart/values.yaml
+7
-0
tests/test-values.yml
tests/test-values.yml
+2
-1
No files found.
CHANGELOG.md
View file @
c2b52a1e
# Changelog
## [29.1.0-bb.2]
# Added
*
default-deny-all network policy
*
istio network policy
*
monitoring network policy
chart/Chart.yaml
View file @
c2b52a1e
apiVersion
:
v2
name
:
nexus-repository-manager
version
:
29.1.0-bb.
1
version
:
29.1.0-bb.
2
appVersion
:
3.29.0
description
:
Sonatype Nexus Repository Manager - Universal Binary repository
type
:
application
...
...
chart/templates/bigbang/networkpolicies/default-deny-all.yaml
0 → 100644
View file @
c2b52a1e
{{
if .Values.networkPolicies.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
default-deny-all
namespace
:
{{
.Release.Namespace
}}
spec
:
podSelector
:
{}
policyTypes
:
-
Ingress
-
Egress
ingress
:
[]
egress
:
[]
{{
- end
}}
chart/templates/bigbang/networkpolicies/istio.yaml
0 → 100644
View file @
c2b52a1e
{{
if .Values.networkPolicies.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
allow-to-istio-ingressgateway
namespace
:
{{
.Release.Namespace
}}
spec
:
podSelector
:
{}
policyTypes
:
-
Ingress
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
app.kubernetes.io/name
:
istio-controlplane
podSelector
:
matchLabels
:
{{
- toYaml .Values.networkPolicies.ingressLabels | nindent 10
}}
ports
:
-
port
:
{{
.Values.nexus.nexusPort
}}
{{
- range .Values.nexus.docker.registries
}}
-
port
:
{{
.port
}}
{{
- end
}}
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
allow-to-istio-egress
namespace
:
{{
.Release.Namespace
}}
spec
:
podSelector
:
{}
policyTypes
:
-
Egress
egress
:
-
to
:
-
namespaceSelector
:
matchLabels
:
app.kubernetes.io/name
:
istio-controlplane
podSelector
:
matchLabels
:
istio
:
pilot
ports
:
-
port
:
15012
{{
- end
}}
chart/templates/bigbang/networkpolicies/kube-api-egress.yaml
0 → 100644
View file @
c2b52a1e
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
kube-api-dns-egress
namespace
:
{{
.Release.Namespace
}}
spec
:
egress
:
-
to
:
-
namespaceSelector
:
{}
ports
:
-
port
:
443
protocol
:
TCP
-
port
:
53
protocol
:
UDP
podSelector
:
matchLabels
:
app.kubernetes.io/name
:
nexus-repository-manager
policyTypes
:
-
Egress
\ No newline at end of file
chart/templates/bigbang/networkpolicies/monitoring.yaml
0 → 100644
View file @
c2b52a1e
{{
- if and .Values.networkPolicies.enabled .Values.monitoring.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
allow-scraping
namespace
:
"
{{
.Release.Namespace
}}"
spec
:
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
app.kubernetes.io/name
:
monitoring
podSelector
:
matchLabels
:
app
:
prometeus
ports
:
-
port
:
{{
.Values.nexus.nexusPort
}}
podSelector
:
matchLabels
:
app.kubernetes.io/name
:
nexus-repository-manager
policyTypes
:
-
Ingress
{{
- end
}}
chart/values.yaml
View file @
c2b52a1e
...
...
@@ -6,6 +6,13 @@ istio:
nexus
:
gateways
:
-
"
istio-system/main"
networkPolicies
:
enabled
:
false
ingressLabels
:
app
:
istio-ingressgateway
istio
:
ingressgateway
monitoring
:
enabled
:
false
license_key
:
"
"
...
...
tests/test-values.yml
View file @
c2b52a1e
...
...
@@ -4,5 +4,6 @@ istio:
nexus
:
imagePullSecrets
:
-
name
:
private-registry-mil
networkPolicies
:
enabled
:
true
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