This changes `ControllerManager` to `Node`. `Node` is created from a client where the VK lib is responsible for creating all the things except the client (unless client is nil, then we use the env client). This should be a good replacement for node-cli. It offers a simpler API. *It only works with leases enabled* since this seems always desired, however an option could be added to disable if needed. The intent of this is to provide a simpler way to get a vk node up and running while also being extensible. We can slowly add options, but they should be focussed on a use-case rather than trying to support every possible scenario... in which case the user can just use the controllers directly.
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
description: The command-line tool for running Virtual Kubelets
|
|
flags:
|
|
- name: --cluster-domain
|
|
arg: string
|
|
description: Kubernetes cluster domain
|
|
default: cluster.local
|
|
- name: --disable-taint
|
|
arg: bool
|
|
description: Disable the Virtual Kubelet [Node taint](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/)
|
|
default: "false"
|
|
- name: --enable-node-lease
|
|
arg: bool
|
|
description: Use node leases (1.13) for node heartbeats
|
|
default: "false"
|
|
- name: --full-resync-period
|
|
arg: duration
|
|
description: How often to perform a full resync of Pods between Kubernetes and the provider
|
|
default: 1m0s
|
|
- name: --kubeconfig
|
|
arg: string
|
|
description: kubectl config file
|
|
default: $HOME/.kube/config
|
|
- name: --log-level
|
|
arg: string
|
|
description: The log level, e.g. `trace` `debug`, `info`, `warn`, or `error`
|
|
default: info
|
|
- name: --metrics-addr
|
|
arg: string
|
|
description: The address to listen on for metrics and stats
|
|
default: ":10255"
|
|
- name: --namespace
|
|
arg: string
|
|
description: The Kubernetes namespace
|
|
default: all
|
|
- name: --nodename
|
|
arg: string
|
|
description: The Kubernetes Node name
|
|
default: virtual-kubelet
|
|
- name: --os
|
|
arg: string
|
|
description: The operating system (must be `linux` or `windows`)
|
|
default: Linux
|
|
- name: --pod-sync-workers
|
|
arg: int
|
|
description: The number of Pod synchronization workers
|
|
default: 10
|
|
- name: --provider
|
|
arg: string
|
|
description: The Virtual Kubelet [provider](/docs/providers)
|
|
- name: --provider-config
|
|
arg: string
|
|
description: The Virtual Kubelet [provider](/docs/providers) configuration file
|
|
- name: --startup-timeout
|
|
arg: duration
|
|
description: How long to wait for the virtual-kubelet to start
|
|
default: 0
|
|
- name: --trace-exporter
|
|
arg: strings
|
|
description: The tracing exporter to use. Available exporters are `jaeger` and `ocagent`
|
|
- name: --trace-sample-rate
|
|
arg: string
|
|
description: The probability of tracing samples
|
|
- name: --trace-service-name
|
|
arg: string
|
|
description: The name of the services used to register with the trace exporter
|
|
default: virtual-kubelet
|
|
- name: --trace-tag
|
|
arg: map
|
|
description: Tags to include with traces, in `key=value` form |