diff --git a/cmd/nginx/flags.go b/cmd/nginx/flags.go index eb57e7bd29..397d591a4a 100644 --- a/cmd/nginx/flags.go +++ b/cmd/nginx/flags.go @@ -20,6 +20,7 @@ import ( "flag" "fmt" "os" + "runtime" "time" "github.com/golang/glog" @@ -194,6 +195,12 @@ func parseFlags() (bool, *controller.Configuration, error) { glog.Warningf("Check of SSL certificate chain is disabled (--enable-ssl-chain-completion=false)") } + if *dynamicConfigurationEnabled && (runtime.GOARCH == "s390x" || runtime.GOARCH == "ppc64le") { + b := false + dynamicConfigurationEnabled = &b + glog.Warningf("Disabling dynamic configuration feature (LuaJIT is not available in s390x and ppc64le)") + } + config := &controller.Configuration{ APIServerHost: *apiserverHost, KubeConfigFile: *kubeConfigFile,