add etcd ca args

This commit is contained in:
凡羊羊 2020-02-15 14:38:30 +08:00
parent 29a2f9be31
commit 32122af52b

View File

@ -118,6 +118,9 @@ func (g *GWServer) AddFlags(fs *pflag.FlagSet) {
// etcd // etcd
fs.StringSliceVar(&g.EtcdEndpoint, "etcd-endpoints", []string{"http://127.0.0.1:2379"}, "etcd cluster endpoints.") fs.StringSliceVar(&g.EtcdEndpoint, "etcd-endpoints", []string{"http://127.0.0.1:2379"}, "etcd cluster endpoints.")
fs.IntVar(&g.EtcdTimeout, "etcd-timeout", 10, "etcd http timeout seconds") fs.IntVar(&g.EtcdTimeout, "etcd-timeout", 10, "etcd http timeout seconds")
fs.StringVar(&g.EtcdCaFile, "etcd-ca", "", "etcd tls ca file ")
fs.StringVar(&g.EtcdCertFile, "etcd-cert", "", "etcd tls cert file")
fs.StringVar(&g.EtcdKeyFile, "etcd-key", "", "etcd http tls cert key file")
// health check // health check
fs.StringVar(&g.HealthPath, "health-path", "/healthz", "absolute path to the kubeconfig file") fs.StringVar(&g.HealthPath, "health-path", "/healthz", "absolute path to the kubeconfig file")
fs.DurationVar(&g.HealthCheckTimeout, "health-check-timeout", 10, `Time limit, in seconds, for a probe to health-check-path to succeed.`) fs.DurationVar(&g.HealthCheckTimeout, "health-check-timeout", 10, `Time limit, in seconds, for a probe to health-check-path to succeed.`)