Run synchronization server. By default locks are stored in process memory and are lost on restart.
Use –kubernetes to store locks in ConfigMaps in the werf-synchronization namespace.
Syntax
werf synchronization [options]
Options
--dev=false
Enable development mode (default $WERF_DEV).
The mode allows working with project files without doing redundant commits during
debugging and development
--dev-branch="_werf-dev"
Set dev git branch name (default $WERF_DEV_BRANCH or "_werf-dev")
--dev-ignore=[]
Add rules to ignore tracked and untracked changes in development mode (can specify
multiple).
Also, can be specified with $WERF_DEV_IGNORE_* (e.g. $WERF_DEV_IGNORE_TESTS=*_test.go,
$WERF_DEV_IGNORE_DOCS=path/to/docs)
--home-dir=""
Use specified dir to store werf cache files and dirs (default $WERF_HOME or ~/.werf)
--host=""
Bind synchronization server to the specified host (default localhost or $WERF_HOST)
--kube-api-server=""
Kubernetes API server address (default $WERF_KUBE_API_SERVER)
--kube-auth-password=""
Basic auth password for Kubernetes API (default $WERF_KUBE_AUTH_PASSWORD)
--kube-auth-provider=""
Auth provider name for authentication in Kubernetes API (default
$WERF_KUBE_AUTH_PROVIDER)
--kube-auth-provider-config=[]
Auth provider config for authentication in Kubernetes API (default
$WERF_KUBE_AUTH_PROVIDER_CONFIG)
--kube-auth-username=""
Basic auth username for Kubernetes API (default $WERF_KUBE_AUTH_USERNAME)
--kube-burst-limit=100
Kubernetes client burst limit (default $WERF_KUBE_BURST_LIMIT or 100)
--kube-ca-data=""
Pass Kubernetes API server TLS CA data (default $WERF_KUBE_CA_DATA)
--kube-ca-path=""
Kubernetes API server CA path (default $WERF_KUBE_CA_PATH)
--kube-cert=""
Path to PEM-encoded TLS client cert for connecting to Kubernetes API (default
$WERF_KUBE_CERT
--kube-cert-data=""
Pass PEM-encoded TLS client cert for connecting to Kubernetes API (default
$WERF_KUBE_CERT_DATA)
--kube-config=""
Kubernetes config file path (default $WERF_KUBE_CONFIG, or $WERF_KUBECONFIG, or
$KUBECONFIG)
--kube-config-base64=""
Kubernetes config data as base64 string (default $WERF_KUBE_CONFIG_BASE64 or
$WERF_KUBECONFIG_BASE64 or $KUBECONFIG_BASE64)
--kube-context=""
Kubernetes config context (default $WERF_KUBE_CONTEXT)
--kube-context-cluster=""
Use cluster from Kubeconfig for current context (default $WERF_KUBE_CONTEXT_CLUSTER)
--kube-context-user=""
Use user from Kubeconfig for current context (default $WERF_KUBE_CONTEXT_USER)
--kube-impersonate-group=[]
Sets Impersonate-Group headers when authenticating in Kubernetes. Can be also set with
$WERF_KUBE_IMPERSONATE_GROUP_* environment variables
--kube-impersonate-uid=""
Sets Impersonate-Uid header when authenticating in Kubernetes (default
$WERF_KUBE_IMPERSONATE_UID)
--kube-impersonate-user=""
Sets Impersonate-User header when authenticating in Kubernetes (default
$WERF_KUBE_IMPERSONATE_USER)
--kube-key=""
Path to PEM-encoded TLS client key for connecting to Kubernetes API (default
$WERF_KUBE_KEY)
--kube-key-data=""
Pass PEM-encoded TLS client key for connecting to Kubernetes API (default
$WERF_KUBE_KEY_DATA)
--kube-proxy-url=""
Proxy URL to use for proxying all requests to Kubernetes API (default
$WERF_KUBE_PROXY_URL)
--kube-qps-limit=30
Kubernetes client QPS limit (default $WERF_KUBE_QPS_LIMIT or 30)
--kube-request-timeout=0s
Timeout for all requests to Kubernetes API (default $WERF_KUBE_REQUEST_TIMEOUT)
--kube-tls-server=""
Server name to use for Kubernetes API server certificate validation. If it is not
provided, the hostname used to contact the server is used (default
$WERF_KUBE_TLS_SERVER)
--kube-token=""
Kubernetes bearer token used for authentication (default $WERF_KUBE_TOKEN)
--kube-token-path=""
Path to file with bearer token for authentication in Kubernetes (default
$WERF_KUBE_TOKEN_PATH)
--kubernetes=false
Store locks in Kubernetes ConfigMaps in the werf-synchronization namespace (default
$WERF_KUBERNETES)
--kubernetes-namespace-prefix=""
Compatibility flag; ignored. The Kubernetes namespace is always werf-synchronization
(default $WERF_KUBERNETES_NAMESPACE_PREFIX)
--local=true
Compatibility flag; ignored. Without --kubernetes, locks are stored in process memory
(default $WERF_LOCAL or true)
--local-lock-manager-base-dir=""
Compatibility flag; ignored. No lock files are written (default
$WERF_LOCAL_LOCK_MANAGER_BASE_DIR)
--local-stages-storage-cache-base-dir=""
Compatibility flag; ignored. No stages-storage cache directory is used (default
$WERF_LOCAL_STAGES_STORAGE_CACHE_BASE_DIR)
--log-color-mode="auto"
Set log color mode.
Supported on, off and auto (based on the stdout’s file descriptor referring to a
terminal) modes.
Default $WERF_LOG_COLOR_MODE or auto mode.
--log-debug=false
Enable debug (default $WERF_LOG_DEBUG).
--log-pretty=true
Enable emojis, auto line wrapping and log process border (default $WERF_LOG_PRETTY or
true).
--log-quiet=false
Disable explanatory output (default $WERF_LOG_QUIET).
--log-terminal-width=-1
Set log terminal width.
Defaults to:
* $WERF_LOG_TERMINAL_WIDTH
* interactive terminal width or 140
--log-time=false
Add time to log entries for precise event time tracking (default $WERF_LOG_TIME or
false).
--log-time-format="2006-01-02T15:04:05Z07:00"
Specify custom log time format (default $WERF_LOG_TIME_FORMAT or RFC3339 format).
--log-verbose=false
Enable verbose output (default $WERF_LOG_VERBOSE).
--loose-giterminism=false
Loose werf giterminism mode restrictions
--port=""
Bind synchronization server to the specified port (default 55581 or $WERF_PORT)
--skip-tls-verify-kube=false
Skip TLS certificate validation when accessing a Kubernetes cluster (default
$WERF_SKIP_TLS_VERIFY_KUBE)
--tmp-dir=""
Use specified dir to store tmp files and dirs (default $WERF_TMP_DIR or system tmp dir)
--ttl=""
Compatibility flag; ignored. Does not configure lock leases (default $WERF_TTL)