Delete
Name: delete.
Delete an alveolus deployment by deleting all related descriptors. // end of short descriptionbundlebee.delete.propagationPolicy can be set in descriptor(s) metadata to force default CLI behavior for this descriptor.
Configuration
-
--alveolus (
BUNDLEBEE_DELETE_ALVEOLUS) -
Alveolus name to rollback (in currently deployed version). When set to
auto, it will look up all manifests found in the classpath (it is not recommended until you perfectly know what you do). If you set manifest option, alveolus is set toautoand there is a single alveolus in it, this will default to it instead of using classpath deployment. Default value:auto
-
--awaitTimeout (
BUNDLEBEE_DELETE_AWAITTIMEOUT) - If an integer > 0, how long (ms) to await for the actual deletion of components, default does not await.
-
--descriptorAwaitTimeout (
BUNDLEBEE_DELETE_DESCRIPTORAWAITTIMEOUT) -
For descriptors with
await=truethe max duration the test can last. It is per descriptor with await true and independent ofawaitTimeout. Default value:60000
-
--excludedDescriptors (
BUNDLEBEE_DELETE_EXCLUDEDDESCRIPTORS) -
Enables to exclude descriptors from the command line.
noneto ignore. Value is comma separated. Note that using this setting, location is set to*so only the name is matched. Default value:none
-
--excludedLocations (
BUNDLEBEE_DELETE_EXCLUDEDLOCATIONS) -
Enables to exclude locations (descriptor is set to
*) from the command line.noneto ignore. Value is comma separated. Default value:none
-
--from (
BUNDLEBEE_DELETE_FROM) -
Root dependency to download to get the manifest. If set to
autoit is assumed to be present in current classpath. Default value:auto
-
--gracePeriodSeconds (
BUNDLEBEE_DELETE_GRACEPERIODSECONDS) -
If set it will be added on REST calls to force a custom grace period (in seconds). Setting it to
0enables to delete faster objects.
-
--manifest (
BUNDLEBEE_DELETE_MANIFEST) -
Manifest to load to start to find the alveolus. This optional setting mainly enables to use dependencies easily. Ignored if set to
skip. Default value:skip
Inherited Global Configuration
|
TIP
|
for these configurations, don't hesitate to use |
-
--bundlebee.awaiter.retryInterval (
BUNDLEBEE_AWAITER_RETRYINTERVAL) -
How often to retry for a descriptor condition. Increasing it will reduce the pressure on the Kubernetes REST API (rate limiting for example). Default value:
500
-
--bundlebee.httpclient.connectTimeout (
BUNDLEBEE_HTTPCLIENT_CONNECTTIMEOUT) -
The HTTP client connect timeout (in java Duration format),
nonecan be used to ignore this setting. Default value:none
-
--bundlebee.httpclient.followRedirects (
BUNDLEBEE_HTTPCLIENT_FOLLOWREDIRECTS) -
The HTTP client redirect policy. Default to
NORMAL, can be set toALWAYSorNEVER. Default value:NORMAL
-
--bundlebee.httpclient.forcedHttpVersion (
BUNDLEBEE_HTTPCLIENT_FORCEDHTTPVERSION) -
The HTTP client version,
nonemean the JVM default (v2),HTTP_1_1v1.1 andHTTP_2v2.0. Default value:none
-
--bundlebee.httpclient.threads (
BUNDLEBEE_HTTPCLIENT_THREADS) -
How many threads are allocated to async HTTP client, negative or zero value means to use common pool. Default value:
-1
-
--bundlebee.kube.api (
BUNDLEBEE_KUBE_API) -
When kubeconfig is not set the base API endpoint. Default value:
http://localhost:8080
-
--bundlebee.kube.context (
BUNDLEBEE_KUBE_CONTEXT) - When kubeconfig (explicit or not) is used, the context to use. If not set it is taken from the kubeconfig itself.
-
--bundlebee.kube.customMetadataInjectionPoint (
BUNDLEBEE_KUBE_CUSTOMMETADATAINJECTIONPOINT) -
When using custom metadata (bundlebee ones or timestamp to force a rollout), where to inject them. Default uses labels since it enables to query them later on but you can switch it to annotations. Default value:
labels
-
--bundlebee.kube.defaultPropagationPolicy (
BUNDLEBEE_KUBE_DEFAULTPROPAGATIONPOLICY) -
Default value for deletions of
propagationPolicy. Values can beOrphan,ForegroundandBackground. Default value:Foreground
-
--bundlebee.kube.dryRun (
BUNDLEBEE_KUBE_DRYRUN) -
If
truehttp requests/responses are skipped. Note that dry run implies verbose=true for the http client. Note that as of today, all responses are mocked by a HTTP 200 and an empty JSON payload. Default value:false
-
--bundlebee.kube.fieldValidation (
BUNDLEBEE_KUBE_FIELDVALIDATION) -
fieldValidation- server side validation - value when applying a descriptor, values can beStrict,WarnprIgnore. Note that usingskipwill ignore the query parameter. Default value:Strict
-
--bundlebee.kube.filters.statefuleset.spec.allowed (
BUNDLEBEE_KUBE_FILTERS_STATEFULESET_SPEC_ALLOWED) -
The attributes to keep from
StatefulSet(specchildren) descriptor on updates. Default value:replicas,template,updateStrategy,persistentVolumeClaimRetentionPolicy,minReadySeconds,serviceName,selector
-
--bundlebee.kube.force (
BUNDLEBEE_KUBE_FORCE) -
By default a descriptor update is done using
PATCHwith strategic merge patch logic, if set totrueit will use a plainPUT. Note thatio.yupiik.bundlebee/putOnUpdateannotations can be set totrueto force that in the descriptor itself and for cases it is not enough, you can setforcetotrueto delete the descriptor before applying it again (move from clusterip to nodeport or the opposite in a serice for ex). Note that you can set it totruein a descriptor annotationio.yupiik.bundlebee/forcetoo to not be global. Default value:false
-
--bundlebee.kube.http.timeout (
BUNDLEBEE_KUBE_HTTP_TIMEOUT) -
HTTP timeout in ms, ignored if <= 0. Default value:
60000
-
--bundlebee.kube.implicitlyDroppedAttributes (
BUNDLEBEE_KUBE_IMPLICITLYDROPPEDATTRIBUTES) -
Enables to tolerate custom attributes in the descriptors. Typically used to drop
/$schemaattribute which enables a nice completion in editors. Values are|delimited and are either a JSON-Pointer (wrapped in a remove JSON-Patch) or directly a JSON-Patch. Usingnoneignores this processing. Default value:/$schema|/$bundlebeeIgnoredLintingRules
-
--bundlebee.kube.logDescriptorOnParsingError (
BUNDLEBEE_KUBE_LOGDESCRIPTORONPARSINGERROR) -
Should YAML/JSON be logged when it can't be parsed. Default value:
true
-
--bundlebee.kube.namespace (
BUNDLEBEE_KUBE_NAMESPACE) -
When kubeconfig is not set the namespace to use. Default value:
default
-
--bundlebee.kube.patchContentType (
BUNDLEBEE_KUBE_PATCHCONTENTTYPE) -
Default header value for
PATCHcontent-typerequests header. It uses strategic merge patch algorithm but in some cases you just want to useapplication/jsonor (better)application/merge-patch+json. Annotationio.yupiik.bundlebee/patchContentTypeis also supported. Default value:application/strategic-merge-patch+json
-
--bundlebee.kube.proxy.host (
BUNDLEBEE_KUBE_PROXY_HOST) - If a proxy is needed to contact the target cluster API, its host, ignore if not set.
-
--bundlebee.kube.proxy.password (
BUNDLEBEE_KUBE_PROXY_PASSWORD) -
If a proxy is needed to contact the target cluster API, its password if it needs an authentication (take care the JVM can nee
-Djdk.http.auth.tunneling.disabledSchemes=options).
-
--bundlebee.kube.proxy.port (
BUNDLEBEE_KUBE_PROXY_PORT) -
If a proxy is needed to contact the target cluster API, its port. Default value:
3128
-
--bundlebee.kube.proxy.setProxySystemProperties (
BUNDLEBEE_KUBE_PROXY_SETPROXYSYSTEMPROPERTIES) -
If a proxy is configured to use authentication, automatically set
-Djdk.http.auth.tunneling.disabledSchemes=, note that setting it on the JVM is still more reliable depending how you run bundlebee (in particular with maven or embed). Important: the system property is "leaked", ie it is not cleaned up to limit side effect in concurrent mode. Default value:true
-
--bundlebee.kube.proxy.username (
BUNDLEBEE_KUBE_PROXY_USERNAME) -
If a proxy is needed to contact the target cluster API, its username if it needs an authentication (take care the JVM can nee
-Djdk.http.auth.tunneling.disabledSchemes=options).
-
--bundlebee.kube.putOnUpdate (
BUNDLEBEE_KUBE_PUTONUPDATE) -
By default a descriptor update is done using
PATCHwith strategic merge patch logic, if set totrueit will use a plainPUT. Note thatio.yupiik.bundlebee/putOnUpdateannotations can be set totrueto force that in the descriptor itself. Default value:false
-
--bundlebee.kube.rateLimiter.enabled (
BUNDLEBEE_KUBE_RATELIMITER_ENABLED) -
Should HTTP client requests be limited and HTTP 427 responses be handled. Default value:
false
-
--bundlebee.kube.rateLimiter.permits (
BUNDLEBEE_KUBE_RATELIMITER_PERMITS) -
How many calls can be done if rate limiting is enabled. Note that setting it to
Integer.MAX_VALUEwill disable the client rate limiting and only enable server one. Default value:100
-
--bundlebee.kube.rateLimiter.window (
BUNDLEBEE_KUBE_RATELIMITER_WINDOW) -
Rate limiting window duration in milliseconds (default being 1 second). Default value:
1000
-
--bundlebee.kube.resourceMapping (
BUNDLEBEE_KUBE_RESOURCEMAPPING) -
Enables to define resource mapping, syntax uses propeties one:
<lowercased resource kind>s = /apis/..... Default value:
-
--bundlebee.kube.skipDryRunForGet (
BUNDLEBEE_KUBE_SKIPDRYRUNFORGET) -
If
trueGET http requests are not skipped whendryRunis true. Default value:false
-
--bundlebee.kube.skipUpdateForKinds (
BUNDLEBEE_KUBE_SKIPUPDATEFORKINDS) -
List of kind of descriptors updates can be skipped, it is often useful for
PersistentVolumeClaim. Default value:PersistentVolumeClaim
-
--bundlebee.kube.token (
BUNDLEBEE_KUBE_TOKEN) -
When
kubeconfigis set toexplicit, the bearer token to use (if set).
-
--bundlebee.kube.validateSSL (
BUNDLEBEE_KUBE_VALIDATESSL) -
Should SSL connector be validated or not. Default value:
true
-
--bundlebee.kube.verbose (
BUNDLEBEE_KUBE_VERBOSE) -
If
truehttp requests/responses to Kubernetes will be logged. Default value:false
-
--bundlebee.maven.cache (
BUNDLEBEE_MAVEN_CACHE) -
Where to cache maven dependencies. If set to
auto, tries to read the system propertymaven.repo.localthen thesettings.xmllocalRepositoryand finally it would fallback on$HOME/.m2/repository. Default value:auto
-
--bundlebee.maven.forceCustomSettingsXml (
BUNDLEBEE_MAVEN_FORCECUSTOMSETTINGSXML) -
If
truewe only usecachevalue and never fallback on default maven settings.xml location. Default value:false
-
--bundlebee.maven.http.connectTimeout (
BUNDLEBEE_MAVEN_HTTP_CONNECTTIMEOUT) -
When fetching a dependency using HTTP, the connection timeout for this dependency. Default value:
30000
-
--bundlebee.maven.preferCustomSettingsXml (
BUNDLEBEE_MAVEN_PREFERCUSTOMSETTINGSXML) -
If
falsewe first try to readsettings.xmlfile(s) incachelocation before the default one. Default value:true
-
--bundlebee.maven.repositories.downloads.enabled (
BUNDLEBEE_MAVEN_REPOSITORIES_DOWNLOADS_ENABLED) -
Enable the download, i.e. ensure it runs only with local maven repository. Default value:
false
-
--bundlebee.maven.repositories.httpHeaders (
BUNDLEBEE_MAVEN_REPOSITORIES_HTTPHEADERS) -
Properties to define the headers to set per repository, syntax is
host1=headerName headerValueand it supports as much lines as used repositories. Note that you can use maven~/.m2/settings.xmlservers (potentially ciphered) username/password pairs. In this last case the server id must bebundlebee.<server host>. Still in settings.xml case, if the username is null the password value is used as rawAuthorizationheader else username/password is encoded as a basic header.
-
--bundlebee.maven.repositories.release (
BUNDLEBEE_MAVEN_REPOSITORIES_RELEASE) -
Default release repository. Default value:
https://repo.maven.apache.org/maven2/
-
--bundlebee.maven.repositories.snapshot (
BUNDLEBEE_MAVEN_REPOSITORIES_SNAPSHOT) - Default snapshot repository, not set by default.
-
--kubeconfig (
KUBECONFIG) -
Kubeconfig location. If set to
autoit will try to guess from your$HOME/.kube/configfile until you set it soexplicitwhere it will use otherbundlebee.kubeproperties to create the client. The content can also be set inline!. Default value:auto