mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-16 22:29:09 +01:00
longhorn: enable the internal NetworkPolicies
With them only Longhorn's own components can reach the longhorn-manager API, which any pod could otherwise call without authentication to manage volumes. 1.12 was kept off because its instance-manager policy left the host-side iSCSI initiator out; 1.13 opens port 3260 to any source while v1DataEngineInitiatorSourceCIDRs is empty.
This commit is contained in:
1 parent
f2936e69ec
commit
5208379310
1 file changed
+4
-6
@@ -29,12 +29,10 @@ spec:
|
|||||||
defaultClassReplicaCount: 1
|
defaultClassReplicaCount: 1
|
||||||
preUpgradeChecker:
|
preUpgradeChecker:
|
||||||
jobEnabled: false
|
jobEnabled: false
|
||||||
# From 1.12 Longhorn adds NetworkPolicies between its components,
|
# restrictInternalTraffic is on by default since 1.12: only Longhorn
|
||||||
# and Calico enforces them. The instance-manager one only admits
|
# components may reach the longhorn-manager API (otherwise any pod
|
||||||
# Longhorn pods, while the iSCSI initiator connects from the host,
|
# could manage volumes unauthenticated). Since 1.13 iSCSI (3260)
|
||||||
# so keep them off until that is tested on its own.
|
# stays open to the host-side initiator.
|
||||||
networkPolicies:
|
|
||||||
restrictInternalTraffic: false
|
|
||||||
# From 1.13 the CSI controller may read every Secret in the cluster,
|
# From 1.13 the CSI controller may read every Secret in the cluster,
|
||||||
# for provisioner-secret StorageClass parameters. Neither
|
# for provisioner-secret StorageClass parameters. Neither
|
||||||
# StorageClass here uses those.
|
# StorageClass here uses those.
|
||||||
|
|||||||
Reference in new issue
Block a user