INNER CODE UNIT · Go
configureFlags
kubernetes/dns · cmd/sidecar/main.go:131
func configureFlags(opt *sidecar.Options, flagSet *pflag.FlagSet) {
flagSet.StringVar(
&opt.DnsMasqAddr, "dnsmasq-addr", opt.DnsMasqAddr,
"address that the dnsmasq server is listening on")
flagSet.IntVar(
&opt.DnsMasqPort, "dnsmasq-port", opt.DnsMasqPort,
"port that the dnsmasq server is listening on")
flagSet.IntVar(
&opt.DnsMasqPollIntervalMs, "dnsmasq-poll-interval-ms", opt.DnsMasqPollIntervalMs,
"interval with which to poll dnsmasq for stats")
flagSet.Var(
(*probeOptions)(&opt.Probes), "probe",
"probe the given DNS server with the DNS name and export probe"+
" metrics and healthcheck URI. Specified as"+
" <label>,<server>,<dns name>[,<interval_seconds>][,<type>]."+
" Healthcheck url will be exported under /healthcheck/<label>."+
" interval_seconds is optional."+
" This option may be specified multiple times to check multiple servers."+