Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions templates/default-deny-network-policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{- if eq (.Values.defaultDenyNetworkPolicy.enabled | toString) "true" }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny-in-namespace-{{ .Release.Namespace }}
namespace: {{ .Release.Namespace }}
spec:
podSelector: {}
policyTypes:
- Ingress
- Egress
{{- end }}
9 changes: 9 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ global:
# -- The DNS entry for the cluster the chart is being rendered on with the apps. prefix
localClusterDomain: apps.foo.cluster.com

# -- Default-deny NetworkPolicy for the vault namespace
# When enabled, deploys a namespace-wide NetworkPolicy that blocks all ingress and
# egress for pods without an explicit allow policy. Patterns that need zero-trust
# network isolation should enable this and provide per-pod allow rules via
# vault.server.networkPolicy.
# @default -- false
defaultDenyNetworkPolicy:
enabled: false

# -- A number of settings passed down to the vault subchart
# @default -- depends on the individual settings
vault:
Expand Down