Skip to content

Commit 92c509f

Browse files
authored
Update wording for some host preflights (#1880)
1 parent 7836656 commit 92c509f

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

pkg/preflights/host-preflight.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ spec:
869869
outcomes:
870870
- fail:
871871
when: "true"
872-
message: The node IP {{ .NodeIP }} must not be within the Pod CIDR range {{ .PodCIDR.CIDR }}. Choose a different Pod CIDR or network interface.
872+
message: The node IP {{ .NodeIP }} cannot be within the Pod CIDR range {{ .PodCIDR.CIDR }}. Use --pod-cidr to specify a different Pod CIDR, or use --network-interface to specify a different network interface.
873873
- pass:
874874
when: "false"
875875
message: The node IP {{ .NodeIP }} is not within the Pod CIDR range {{ .PodCIDR.CIDR }}.
@@ -881,7 +881,7 @@ spec:
881881
outcomes:
882882
- fail:
883883
when: "true"
884-
message: The node IP {{ .NodeIP }} must not be within the Service CIDR range {{ .ServiceCIDR.CIDR }}. Choose a different Service CIDR or network interface.
884+
message: The node IP {{ .NodeIP }} cannot be within the Service CIDR range {{ .ServiceCIDR.CIDR }}. Use --service-cidr to specify a different Service CIDR, or use --network-interface to specify a different network interface.
885885
- pass:
886886
when: "false"
887887
message: The node IP {{ .NodeIP }} is not within the Service CIDR range {{ .ServiceCIDR.CIDR }}.
@@ -893,7 +893,7 @@ spec:
893893
outcomes:
894894
- fail:
895895
when: "true"
896-
message: The node IP {{ .NodeIP }} must not be within the Global CIDR range {{ .GlobalCIDR.CIDR }}. Choose a different CIDR or network interface.
896+
message: The node IP {{ .NodeIP }} cannot be within the CIDR range {{ .GlobalCIDR.CIDR }}. Use --cidr to specify a different CIDR block of available private IP addresses (/16 or larger), or use --network-interface to specify a different network interface.
897897
- pass:
898898
when: "false"
899899
message: The node IP {{ .NodeIP }} is not within the Global CIDR range {{ .GlobalCIDR.CIDR }}.
@@ -902,61 +902,61 @@ spec:
902902
outcomes:
903903
- fail:
904904
when: 'net.ipv4.conf.default.arp_filter > 0'
905-
message: "ARP filtering must be disabled by default for newly created interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_filter=0', and run 'sudo sysctl -p'."
905+
message: "ARP filtering must be disabled by default for newly created interfaces. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_filter=0', and run 'sudo sysctl -p'."
906906
- pass:
907907
when: 'net.ipv4.conf.default.arp_filter == 0'
908-
message: "ARP filtering is disabled by default for newly created interfaces on the host."
908+
message: "ARP filtering is disabled by default for newly created interfaces."
909909
- sysctl:
910910
checkName: "ARP Filter value for all interfaces"
911911
outcomes:
912912
- fail:
913913
when: 'net.ipv4.conf.all.arp_filter > 0'
914-
message: "ARP filtering must be disabled for all interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_filter=0', and run 'sudo sysctl -p'."
914+
message: "ARP filtering must be disabled for all interfaces. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_filter=0', and run 'sudo sysctl -p'."
915915
- pass:
916916
when: 'net.ipv4.conf.all.arp_filter == 0'
917-
message: "ARP filtering is disabled for all interfaces on the host."
917+
message: "ARP filtering is disabled for all interfaces."
918918
- sysctl:
919919
checkName: "ARP Ignore default value for newly created interfaces"
920920
outcomes:
921921
- fail:
922922
when: 'net.ipv4.conf.default.arp_ignore > 0'
923-
message: "ARP ignore must be disabled by default for newly created interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_ignore=0', and run 'sudo sysctl -p'."
923+
message: "ARP ignore must be disabled by default for newly created interfaces. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_ignore=0', and run 'sudo sysctl -p'."
924924
- pass:
925925
when: 'net.ipv4.conf.default.arp_ignore == 0'
926-
message: "ARP ignore is disabled by default for newly created interfaces on the host."
926+
message: "ARP ignore is disabled by default for newly created interfaces."
927927
- sysctl:
928928
checkName: "ARP Ignore value for all interfaces"
929929
outcomes:
930930
- fail:
931931
when: 'net.ipv4.conf.all.arp_ignore > 0'
932-
message: "ARP ignore must be disabled for all interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_ignore=0', and run 'sudo sysctl -p'."
932+
message: "ARP ignore must be disabled for all interfaces. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_ignore=0', and run 'sudo sysctl -p'."
933933
- pass:
934934
when: 'net.ipv4.conf.all.arp_ignore == 0'
935-
message: "ARP ignore is disabled for all interfaces on the host."
935+
message: "ARP ignore is disabled for all interfaces."
936936
- sysctl:
937937
checkName: "Reverse Path Filtering default value for newly created interfaces"
938938
outcomes:
939939
- fail:
940940
when: 'net.ipv4.conf.default.rp_filter == 1'
941-
message: "Reverse path filtering must be set to either loose mode (2 - preferred) or disabled (0) for newly created interfaces on the host. To change it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.rp_filter=2', and run 'sudo sysctl -p'."
941+
message: "Reverse path filtering must be set to either loose mode (2 - preferred) or disabled (0) for newly created interfaces. To change it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.rp_filter=2', and run 'sudo sysctl -p'."
942942
- pass:
943943
when: 'net.ipv4.conf.default.rp_filter == 2'
944-
message: "Reverse path filtering is set to loose mode for newly created interfaces on the host."
944+
message: "Reverse path filtering is set to loose mode for newly created interfaces."
945945
- pass:
946946
when: 'net.ipv4.conf.default.rp_filter == 0'
947-
message: "Reverse path filtering is disabled for newly created interfaces on the host."
947+
message: "Reverse path filtering is disabled for newly created interfaces."
948948
- sysctl:
949949
checkName: "Reverse Path Filtering value for all interfaces"
950950
outcomes:
951951
- fail:
952952
when: 'net.ipv4.conf.all.rp_filter == 1'
953-
message: "Reverse path filtering must be set to either loose mode (2 - preferred) or disabled (0) for all interfaces on the host. To change it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.rp_filter=2', and run 'sudo sysctl -p'."
953+
message: "Reverse path filtering must be set to either loose mode (2 - preferred) or disabled (0) for all interfaces. To change it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.rp_filter=2', and run 'sudo sysctl -p'."
954954
- pass:
955955
when: 'net.ipv4.conf.all.rp_filter == 2'
956-
message: "Reverse path filtering is set to loose mode for all interfaces on the host."
956+
message: "Reverse path filtering is set to loose mode for all interfaces."
957957
- pass:
958958
when: 'net.ipv4.conf.all.rp_filter == 0'
959-
message: "Reverse path filtering is disabled for all interfaces on the host."
959+
message: "Reverse path filtering is disabled for all interfaces."
960960
- sysctl:
961961
checkName: "IP forwarding"
962962
outcomes:
@@ -971,19 +971,19 @@ spec:
971971
outcomes:
972972
- fail:
973973
when: 'net.ipv4.conf.all.forwarding == 0'
974-
message: "IP forwarding must be enabled. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.conf.all.forwarding=1', and run 'sudo sysctl -p'."
974+
message: "IP forwarding must be enabled for all interfaces. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.conf.all.forwarding=1', and run 'sudo sysctl -p'."
975975
- pass:
976976
when: 'net.ipv4.conf.all.forwarding == 1'
977-
message: "IP forwarding is enabled."
977+
message: "IP forwarding is enabled for all interfaces."
978978
- sysctl:
979-
checkName: "IP forwarding for the default interface"
979+
checkName: "IP forwarding default value for newly created interfaces"
980980
outcomes:
981981
- fail:
982982
when: 'net.ipv4.conf.default.forwarding == 0'
983-
message: "IP forwarding must be enabled. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.conf.default.forwarding=1', and run 'sudo sysctl -p'."
983+
message: "IP forwarding must be enabled for newly created interfaces. To enable it, edit /etc/sysctl.conf, add or uncomment the line 'net.ipv4.conf.default.forwarding=1', and run 'sudo sysctl -p'."
984984
- pass:
985985
when: 'net.ipv4.conf.default.forwarding == 1'
986-
message: "IP forwarding is enabled."
986+
message: "IP forwarding is enabled for newly created interfaces."
987987
- sysctl:
988988
checkName: "Bridge netfilter call iptables"
989989
outcomes:
@@ -1061,7 +1061,7 @@ spec:
10611061
outcomes:
10621062
- fail:
10631063
when: "Mode == Enforcing"
1064-
message: SELinux must be disabled or run in permissive mode.
1064+
message: SELinux must be disabled or run in permissive mode. To run SELinux in permissive mode, edit /etc/selinux/config, change the line 'SELINUX=enforcing' to 'SELINUX=permissive', save the file, and reboot. You can run getenforce to verify the change."
10651065
- pass:
10661066
when: "Mode == Permissive"
10671067
message: SELinux is running in permissive mode.

0 commit comments

Comments
 (0)