diff --git a/pkg/cli/haproxy.go b/pkg/cli/haproxy.go index c8baaa0e87a2..b1e861d3e6ef 100644 --- a/pkg/cli/haproxy.go +++ b/pkg/cli/haproxy.go @@ -236,7 +236,7 @@ func runGenHAProxyCmd(cmd *cobra.Command, args []string) error { var f *os.File if haProxyPath == "-" { w = os.Stdout - } else if f, err = os.OpenFile(haProxyPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755); err != nil { + } else if f, err = os.OpenFile(haProxyPath, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644); err != nil { return err } else { w = f