Skip to content

Commit

Permalink
changed some default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Cascio committed Jul 13, 2021
1 parent 9281985 commit 4c01b7e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions registrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ import (

var hostIp = flag.String("ip", "", "IP for ports mapped to the host")
var internal = flag.Bool("internal", false, "Use internal ports instead of published ones")
var explicit = flag.Bool("explicit", false, "Only register services which have SERVICE_NAME label set")
var explicit = flag.Bool("explicit", true, "Only register services which have SERVICE_NAME label set")
var useIpFromLabel = flag.String("useIpFromLabel", "", "Use IP which is stored in a label assigned to the container")
var refreshInterval = flag.Int("ttl-refresh", 0, "Frequency with which service TTLs are refreshed")
var refreshTtl = flag.Int("ttl", 0, "TTL for services (default is no expiry)")
var forceTags = flag.String("tags", "", "Append tags for all registered services")
var resyncInterval = flag.Int("resync", 0, "Frequency with which services are resynchronized")
var resyncInterval = flag.Int("resync", 30, "Frequency with which services are resynchronized")
var deregister = flag.String("deregister", "always", "Deregister exited services \"always\" or \"on-success\"")
var retryAttempts = flag.Int("retry-attempts", 0, "Max retry attempts to establish a connection with the backend. Use -1 for infinite retries")
var retryInterval = flag.Int("retry-interval", 2000, "Interval (in millisecond) between retry-attempts.")
var cleanup = flag.Bool("cleanup", false, "Remove dangling services")
var retryAttempts = flag.Int("retry-attempts", -1, "Max retry attempts to establish a connection with the backend. Use -1 for infinite retries")
var retryInterval = flag.Int("retry-interval", 3000, "Interval (in millisecond) between retry-attempts.")
var cleanup = flag.Bool("cleanup", true, "Remove dangling services")
var swarmReplicasAware = flag.Bool("swarm-replicas-aware", true, "Remove registered swarm services without replicas")
var swarmManagerSvcName = flag.String("swarm-manager-servicename", "", "Register swarm manager service when non-empty")

Expand Down

0 comments on commit 4c01b7e

Please sign in to comment.