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
Security Tools
Twistlock
Commits
80713ab2
Commit
80713ab2
authored
May 25, 2021
by
runyontr
Browse files
Merge branch 'add-network-policy' into 'main'
Add network policy See merge request
!22
parents
39326aff
526ad987
Pipeline
#277984
passed with stages
in 2 minutes and 53 seconds
Changes
8
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
77 additions
and
8 deletions
+77
-8
.gitlab-ci.yml
.gitlab-ci.yml
+2
-2
chart/Chart.yaml
chart/Chart.yaml
+1
-1
chart/templates/network-policy/egress-default-deny-external.yml
...templates/network-policy/egress-default-deny-external.yml
+12
-0
chart/templates/network-policy/ingress-default-deny.yml
chart/templates/network-policy/ingress-default-deny.yml
+12
-0
chart/templates/network-policy/ingress-egress-istio.yml
chart/templates/network-policy/ingress-egress-istio.yml
+22
-0
chart/templates/network-policy/ingress-monitoring.yml
chart/templates/network-policy/ingress-monitoring.yml
+17
-0
chart/values.yaml
chart/values.yaml
+10
-4
tests/test-values.yml
tests/test-values.yml
+1
-1
No files found.
.gitlab-ci.yml
View file @
80713ab2
include
:
-
project
:
'
platform-one/big-bang/pipeline-templates/pipeline-templates
'
-
project
:
"
platform-one/big-bang/pipeline-templates/pipeline-templates
"
ref
:
master
file
:
'
/templates/package-tests.yml
'
file
:
"
/templates/package-tests.yml
"
chart/Chart.yaml
View file @
80713ab2
apiVersion
:
v2
name
:
twistlock
version
:
0.0.4-bb.
0
version
:
0.0.4-bb.
1
appVersion
:
21.04.412
chart/templates/network-policy/egress-default-deny-external.yml
0 → 100644
View file @
80713ab2
{{
- if .Values.networkPolicies.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
default-deny-external-egress
namespace
:
"
{{
.Release.Namespace
}}"
spec
:
podSelector
:
{}
policyTypes
:
-
Egress
egress
:
[]
{{
- end
}}
\ No newline at end of file
chart/templates/network-policy/ingress-default-deny.yml
0 → 100644
View file @
80713ab2
{{
- if .Values.networkPolicies.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
default-deny-ingress
namespace
:
"
{{
.Release.Namespace
}}"
spec
:
podSelector
:
{}
ingress
:
[]
policyTypes
:
-
Ingress
{{
- end
}}
\ No newline at end of file
chart/templates/network-policy/ingress-egress-istio.yml
0 → 100644
View file @
80713ab2
{{
- if and .Values.networkPolicies.enabled .Values.istio.enabled
}}
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
istio
namespace
:
"
{{
.Release.Namespace
}}"
spec
:
podSelector
:
{}
policyTypes
:
-
Ingress
-
Egress
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
app.kubernetes.io/name
:
istio-controlplane
egress
:
-
to
:
-
namespaceSelector
:
matchLabels
:
app.kubernetes.io/name
:
istio-controlplane
{{
- end
}}
chart/templates/network-policy/ingress-monitoring.yml
0 → 100644
View file @
80713ab2
{{
- 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
:
{}
# all namespaces for now
ports
:
-
port
:
PROMETHEUS_PORT
protocol
:
TCP
podSelector
:
{}
# all pods
policyTypes
:
-
Ingress
{{
- end
}}
chart/values.yaml
View file @
80713ab2
...
...
@@ -16,9 +16,12 @@ istio:
hosts
:
-
twistlock.{{ .Values.hostname }}
networkPolicies
:
enabled
:
false
# imagePullSecrets defines the secrets to use when pulling the operator container image.
imagePullSecrets
:
[]
console
:
image
:
repository
:
registry1.dso.mil/ironbank/twistlock/console/console
...
...
@@ -28,7 +31,8 @@ console:
size
:
100Gi
accessMode
:
ReadWriteOnce
affinity
:
{}
affinity
:
{}
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# - topologyKey: "kubernetes.io/hostname"
...
...
@@ -44,10 +48,12 @@ affinity: {}
# values:
# - "twistlock"
nodeSelector
:
{}
nodeSelector
:
{}
# node-type: twistlock"
tolerations
:
[]
tolerations
:
[]
# - key: "key1"
# operator: "Equal"
# value: "value1"
...
...
tests/test-values.yml
View file @
80713ab2
...
...
@@ -2,7 +2,7 @@ istio:
enabled
:
true
imagePullSecrets
:
-
name
:
private-registry-mil
-
name
:
private-registry-mil
console
:
persistence
:
...
...
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