Generic Plugin Parameters
The following Kubernetes Plugin parameters affect any type of Job (Backup, Estimate, or Restore).
- abort_on_error[=<0 or 1>]
specifies whether or not the plugin should abort execution (and the Bacula Job) if a fatal error occurs during a Backup, Estimate, or Restore operation. If not specified, the default value is 0.
This parameter is optional.
- config=</path/to/file>
points to the location of the config file which defines how to connect to the Kubernetes cluster. Please check the Kubernetes documentation for more details about the kubeconfig file. If this directive is omitted and no other access method is configured then a default config file location will be used -
$HOME/.kube/config
.This parameter is optional.
- incluster
if this directive is defined then a standard in-cluster access to the Kubernetes API will be used. This option should be used only when the Bacula File Daemon and Kubernetes Plugin are deployed as a Kubernetes cluster service in a Pod. In this case, Kubernetes itself will provide the required access credentials. This option won’t work when executed outside of a Kubernetes cluster and services.
This parameter is optional.
- host=<url-k8s-api>
defines a Kubernetes API url. This option is used only with token parameter described below. If this option is specified, then both parameters are required.
This parameter is optional.
- token=<bearer-token>
defines a
Bearertoken
used for authorization to the Kubernetes API available at host=<url-k8s-api>. This option is used only with host parameter described above. You can read more about this type of authentication at: https://swagger.io/docs/specification/authentication/bearer-authentication/This parameter is optional.
- verify_ssl[=<0 or 1>]
specifies whether or not the plugin should verify a Kubernetes API certificate when the connection uses SSL/TLS. If set to verify_ssl=0 then verification will be disabled. This is useful when connecting to a Kubernetes API server with a self-signed certificate. The default behavior if this parameter if not set is to perform proper certificate validation.
This parameter is optional.
- ssl_ca_cert=</path/to/file>
specifies a file with the CA certificate used to customize the Kubernetes API server identity to verify the peer.
This parameter is optional.
- timeout=<seconds>
specifies the number of seconds for various network operations. Examples include: waiting for Bacula Backup Proxy Pod connection or Kubernetes API operations, waiting for Pod execution or removal. The default is 600 seconds. The minimum timeout you may set is 1 second. When an invalid value is set the default will be used.
This parameter is optional.
- debug[=1,2,3]
specifies that the plugin backend will generate an execution debug file at location
/bacula/working/backendplugin/
. This file can help with troubleshooting the job execution if something goes wrong. If not defined then no debug file will be generated. From version 16.0.14, users have the ability to choose from various debug levels, with the highest number encompassing the previous level.1: Save debug messages of k8s server interactions. 2: Save communication messages with bacula core except data packages. 3: Save all debug messages.
This parameter is optional. Normally, the level 2 is enough to open support cases.
See also
Go to:
Go back to the Kubernetes Configuration page.
Go back to the main Kubernetes Plugin page.