diff --git a/pkg/cli/cmds/config.go b/pkg/cli/cmds/config.go index 1b05078efe..f539e767d9 100644 --- a/pkg/cli/cmds/config.go +++ b/pkg/cli/cmds/config.go @@ -11,7 +11,7 @@ var ( ConfigFlag = cli.StringFlag{ Name: "config,c", Usage: "(config) Load configuration from `FILE`", - EnvVar: "K3S_CONFIG_FILE", + EnvVar: version.ProgramUpper + "_CONFIG_FILE", Value: "/etc/rancher/" + version.Program + "/config.yaml", } )