mirror of https://github.com/kubernetes/kops.git
Move iptables-setup to /opt/kops/bin
This commit is contained in:
parent
993b808cfc
commit
dd5b24eece
|
|
@ -46,7 +46,7 @@ func (b *FirewallBuilder) buildSystemdService() *nodetasks.Service {
|
||||||
manifest.Set("Unit", "Before", "network.target")
|
manifest.Set("Unit", "Before", "network.target")
|
||||||
manifest.Set("Service", "Type", "oneshot")
|
manifest.Set("Service", "Type", "oneshot")
|
||||||
manifest.Set("Service", "RemainAfterExit", "yes")
|
manifest.Set("Service", "RemainAfterExit", "yes")
|
||||||
manifest.Set("Service", "ExecStart", "/opt/kops/helpers/iptables-setup")
|
manifest.Set("Service", "ExecStart", "/opt/kops/bin/iptables-setup")
|
||||||
manifest.Set("Install", "WantedBy", "basic.target")
|
manifest.Set("Install", "WantedBy", "basic.target")
|
||||||
|
|
||||||
manifestString := manifest.Render()
|
manifestString := manifest.Render()
|
||||||
|
|
@ -87,7 +87,7 @@ iptables -A FORWARD -w -p ICMP -j ACCEPT
|
||||||
fi
|
fi
|
||||||
`
|
`
|
||||||
return &nodetasks.File{
|
return &nodetasks.File{
|
||||||
Path: "/opt/kops/helpers/iptables-setup",
|
Path: "/opt/kops/bin/iptables-setup",
|
||||||
Contents: fi.NewStringResource(script),
|
Contents: fi.NewStringResource(script),
|
||||||
Type: nodetasks.FileType_File,
|
Type: nodetasks.FileType_File,
|
||||||
Mode: s("0755"),
|
Mode: s("0755"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue