Skip to main content

AppsV1Api

All URIs are relative to http://localhost

Controller Revision

MethodHTTP requestDescription
createNamespacedControllerRevisionPOST /apis/apps/v1/namespaces/{namespace}/controllerrevisionscreate a ControllerRevision
readNamespacedControllerRevisionGET /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}read the specified ControllerRevision
listNamespacedControllerRevisionGET /apis/apps/v1/namespaces/{namespace}/controllerrevisionslist or watch objects of kind ControllerRevision
listControllerRevisionForAllNamespacesGET /apis/apps/v1/controllerrevisionslist or watch objects of kind ControllerRevision
patchNamespacedControllerRevisionPATCH /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}partially update the specified ControllerRevision
replaceNamespacedControllerRevisionPUT /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}replace the specified ControllerRevision
deleteCollectionNamespacedControllerRevisionDELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisionsdelete collection of ControllerRevision
deleteNamespacedControllerRevisionDELETE /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}delete a ControllerRevision

Daemon Set

MethodHTTP requestDescription
createNamespacedDaemonSetPOST /apis/apps/v1/namespaces/{namespace}/daemonsetscreate a DaemonSet
readNamespacedDaemonSetGET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}read the specified DaemonSet
listNamespacedDaemonSetGET /apis/apps/v1/namespaces/{namespace}/daemonsetslist or watch objects of kind DaemonSet
readNamespacedDaemonSetStatusGET /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusread status of the specified DaemonSet
listDaemonSetForAllNamespacesGET /apis/apps/v1/daemonsetslist or watch objects of kind DaemonSet
patchNamespacedDaemonSetPATCH /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}partially update the specified DaemonSet
patchNamespacedDaemonSetStatusPATCH /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statuspartially update status of the specified DaemonSet
replaceNamespacedDaemonSetPUT /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}replace the specified DaemonSet
deleteCollectionNamespacedDaemonSetDELETE /apis/apps/v1/namespaces/{namespace}/daemonsetsdelete collection of DaemonSet
deleteNamespacedDaemonSetDELETE /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}delete a DaemonSet
replaceNamespacedDaemonSetStatusPUT /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/statusreplace status of the specified DaemonSet

Deployment

MethodHTTP requestDescription
createNamespacedDeploymentPOST /apis/apps/v1/namespaces/{namespace}/deploymentscreate a Deployment
readNamespacedDeploymentGET /apis/apps/v1/namespaces/{namespace}/deployments/{name}read the specified Deployment
listNamespacedDeploymentGET /apis/apps/v1/namespaces/{namespace}/deploymentslist or watch objects of kind Deployment
readNamespacedDeploymentScaleGET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scaleread scale of the specified Deployment
readNamespacedDeploymentStatusGET /apis/apps/v1/namespaces/{namespace}/deployments/{name}/statusread status of the specified Deployment
listDeploymentForAllNamespacesGET /apis/apps/v1/deploymentslist or watch objects of kind Deployment
patchNamespacedDeploymentPATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}partially update the specified Deployment
patchNamespacedDeploymentScalePATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scalepartially update scale of the specified Deployment
patchNamespacedDeploymentStatusPATCH /apis/apps/v1/namespaces/{namespace}/deployments/{name}/statuspartially update status of the specified Deployment
replaceNamespacedDeploymentPUT /apis/apps/v1/namespaces/{namespace}/deployments/{name}replace the specified Deployment
deleteCollectionNamespacedDeploymentDELETE /apis/apps/v1/namespaces/{namespace}/deploymentsdelete collection of Deployment
deleteNamespacedDeploymentDELETE /apis/apps/v1/namespaces/{namespace}/deployments/{name}delete a Deployment
replaceNamespacedDeploymentScalePUT /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scalereplace scale of the specified Deployment
replaceNamespacedDeploymentStatusPUT /apis/apps/v1/namespaces/{namespace}/deployments/{name}/statusreplace status of the specified Deployment

Replica Set

MethodHTTP requestDescription
createNamespacedReplicaSetPOST /apis/apps/v1/namespaces/{namespace}/replicasetscreate a ReplicaSet
readNamespacedReplicaSetGET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}read the specified ReplicaSet
listNamespacedReplicaSetGET /apis/apps/v1/namespaces/{namespace}/replicasetslist or watch objects of kind ReplicaSet
readNamespacedReplicaSetScaleGET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scaleread scale of the specified ReplicaSet
readNamespacedReplicaSetStatusGET /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/statusread status of the specified ReplicaSet
listReplicaSetForAllNamespacesGET /apis/apps/v1/replicasetslist or watch objects of kind ReplicaSet
patchNamespacedReplicaSetPATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}partially update the specified ReplicaSet
patchNamespacedReplicaSetScalePATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scalepartially update scale of the specified ReplicaSet
patchNamespacedReplicaSetStatusPATCH /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/statuspartially update status of the specified ReplicaSet
replaceNamespacedReplicaSetPUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}replace the specified ReplicaSet
deleteCollectionNamespacedReplicaSetDELETE /apis/apps/v1/namespaces/{namespace}/replicasetsdelete collection of ReplicaSet
deleteNamespacedReplicaSetDELETE /apis/apps/v1/namespaces/{namespace}/replicasets/{name}delete a ReplicaSet
replaceNamespacedReplicaSetScalePUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scalereplace scale of the specified ReplicaSet
replaceNamespacedReplicaSetStatusPUT /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/statusreplace status of the specified ReplicaSet

Stateful Set

MethodHTTP requestDescription
createNamespacedStatefulSetPOST /apis/apps/v1/namespaces/{namespace}/statefulsetscreate a StatefulSet
readNamespacedStatefulSetGET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}read the specified StatefulSet
listNamespacedStatefulSetGET /apis/apps/v1/namespaces/{namespace}/statefulsetslist or watch objects of kind StatefulSet
readNamespacedStatefulSetScaleGET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scaleread scale of the specified StatefulSet
readNamespacedStatefulSetStatusGET /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/statusread status of the specified StatefulSet
listStatefulSetForAllNamespacesGET /apis/apps/v1/statefulsetslist or watch objects of kind StatefulSet
patchNamespacedStatefulSetPATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}partially update the specified StatefulSet
patchNamespacedStatefulSetScalePATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scalepartially update scale of the specified StatefulSet
patchNamespacedStatefulSetStatusPATCH /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/statuspartially update status of the specified StatefulSet
replaceNamespacedStatefulSetPUT /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}replace the specified StatefulSet
deleteCollectionNamespacedStatefulSetDELETE /apis/apps/v1/namespaces/{namespace}/statefulsetsdelete collection of StatefulSet
deleteNamespacedStatefulSetDELETE /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}delete a StatefulSet
replaceNamespacedStatefulSetScalePUT /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scalereplace scale of the specified StatefulSet
replaceNamespacedStatefulSetStatusPUT /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/statusreplace status of the specified StatefulSet

APIResources

MethodHTTP requestDescription
getAPIResourcesGET /apis/apps/v1/get available resources

Controller Revision

createNamespacedControllerRevision

V1ControllerRevision createNamespacedControllerRevision(body)

create a ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiCreateNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiCreateNamespacedControllerRevisionRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1ControllerRevision: /models/workloads#v1controllerrevision */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ControllerRevision
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1ControllerRevision

readNamespacedControllerRevision

V1ControllerRevision readNamespacedControllerRevision()

read the specified ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedControllerRevisionRequest = {
// name of the ControllerRevision
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the ControllerRevisiondefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1ControllerRevision

listNamespacedControllerRevision

V1ControllerRevisionList listNamespacedControllerRevision()

list or watch objects of kind ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListNamespacedControllerRevisionRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1ControllerRevisionList

listControllerRevisionForAllNamespaces

V1ControllerRevisionList listControllerRevisionForAllNamespaces()

list or watch objects of kind ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListControllerRevisionForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listControllerRevisionForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1ControllerRevisionList

patchNamespacedControllerRevision

V1ControllerRevision patchNamespacedControllerRevision(body)

partially update the specified ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedControllerRevisionRequest = {
// name of the ControllerRevision
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the ControllerRevisiondefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1ControllerRevision

replaceNamespacedControllerRevision

V1ControllerRevision replaceNamespacedControllerRevision(body)

replace the specified ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedControllerRevisionRequest = {
// name of the ControllerRevision
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1ControllerRevision: /models/workloads#v1controllerrevision */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ControllerRevision
name[string]name of the ControllerRevisiondefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1ControllerRevision

deleteCollectionNamespacedControllerRevision

V1Status deleteCollectionNamespacedControllerRevision()

delete collection of ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type

V1Status

deleteNamespacedControllerRevision

V1Status deleteNamespacedControllerRevision()

delete a ControllerRevision

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteNamespacedControllerRevisionRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteNamespacedControllerRevisionRequest = {
// name of the ControllerRevision
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedControllerRevision(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ControllerRevisiondefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type

V1Status

Daemon Set

createNamespacedDaemonSet

V1DaemonSet createNamespacedDaemonSet(body)

create a DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiCreateNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiCreateNamespacedDaemonSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "DaemonSet", metadata: { name: "example" }, spec: { selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1daemonset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DaemonSet
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1DaemonSet

readNamespacedDaemonSet

V1DaemonSet readNamespacedDaemonSet()

read the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedDaemonSetRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1DaemonSet

listNamespacedDaemonSet

V1DaemonSetList listNamespacedDaemonSet()

list or watch objects of kind DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListNamespacedDaemonSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1DaemonSetList

readNamespacedDaemonSetStatus

V1DaemonSet readNamespacedDaemonSetStatus()

read status of the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedDaemonSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedDaemonSetStatusRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedDaemonSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1DaemonSet

listDaemonSetForAllNamespaces

V1DaemonSetList listDaemonSetForAllNamespaces()

list or watch objects of kind DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListDaemonSetForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListDaemonSetForAllNamespacesRequest = {
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listDaemonSetForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1DaemonSetList

patchNamespacedDaemonSet

V1DaemonSet patchNamespacedDaemonSet(body)

partially update the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedDaemonSetRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1DaemonSet

patchNamespacedDaemonSetStatus

V1DaemonSet patchNamespacedDaemonSetStatus(body)

partially update status of the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedDaemonSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedDaemonSetStatusRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedDaemonSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1DaemonSet

replaceNamespacedDaemonSet

V1DaemonSet replaceNamespacedDaemonSet(body)

replace the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedDaemonSetRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "DaemonSet", metadata: { name: "example" }, spec: { selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1daemonset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DaemonSet
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1DaemonSet

deleteCollectionNamespacedDaemonSet

V1Status deleteCollectionNamespacedDaemonSet()

delete collection of DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type

V1Status

deleteNamespacedDaemonSet

V1Status deleteNamespacedDaemonSet()

delete a DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteNamespacedDaemonSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteNamespacedDaemonSetRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedDaemonSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type

V1Status

replaceNamespacedDaemonSetStatus

V1DaemonSet replaceNamespacedDaemonSetStatus(body)

replace status of the specified DaemonSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedDaemonSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest = {
// name of the DaemonSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "DaemonSet", metadata: { name: "example" }, spec: { selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1daemonset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedDaemonSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DaemonSet
name[string]name of the DaemonSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1DaemonSet

Deployment

createNamespacedDeployment

V1Deployment createNamespacedDeployment(body)

create a Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiCreateNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiCreateNamespacedDeploymentRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "Deployment", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1deployment,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Deployment
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Deployment

readNamespacedDeployment

V1Deployment readNamespacedDeployment()

read the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedDeploymentRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1Deployment

listNamespacedDeployment

V1DeploymentList listNamespacedDeployment()

list or watch objects of kind Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListNamespacedDeploymentRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1DeploymentList

readNamespacedDeploymentScale

V1Scale readNamespacedDeploymentScale()

read scale of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedDeploymentScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedDeploymentScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedDeploymentScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1Scale

readNamespacedDeploymentStatus

V1Deployment readNamespacedDeploymentStatus()

read status of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedDeploymentStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedDeploymentStatusRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedDeploymentStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1Deployment

listDeploymentForAllNamespaces

V1DeploymentList listDeploymentForAllNamespaces()

list or watch objects of kind Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListDeploymentForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListDeploymentForAllNamespacesRequest = {
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listDeploymentForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1DeploymentList

patchNamespacedDeployment

V1Deployment patchNamespacedDeployment(body)

partially update the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedDeploymentRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1Deployment

patchNamespacedDeploymentScale

V1Scale patchNamespacedDeploymentScale(body)

partially update scale of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedDeploymentScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedDeploymentScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedDeploymentScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1Scale

patchNamespacedDeploymentStatus

V1Deployment patchNamespacedDeploymentStatus(body)

partially update status of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedDeploymentStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedDeploymentStatusRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedDeploymentStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1Deployment

replaceNamespacedDeployment

V1Deployment replaceNamespacedDeployment(body)

replace the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedDeploymentRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "Deployment", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1deployment,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Deployment
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Deployment

deleteCollectionNamespacedDeployment

V1Status deleteCollectionNamespacedDeployment()

delete collection of Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteCollectionNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type

V1Status

deleteNamespacedDeployment

V1Status deleteNamespacedDeployment()

delete a Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteNamespacedDeploymentRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteNamespacedDeploymentRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedDeployment(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type

V1Status

replaceNamespacedDeploymentScale

V1Scale replaceNamespacedDeploymentScale(body)

replace scale of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedDeploymentScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedDeploymentScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1Scale: /models/workloads#v1scale */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedDeploymentScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Scale
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Scale

replaceNamespacedDeploymentStatus

V1Deployment replaceNamespacedDeploymentStatus(body)

replace status of the specified Deployment

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedDeploymentStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedDeploymentStatusRequest = {
// name of the Deployment
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "Deployment", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1deployment,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedDeploymentStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Deployment
name[string]name of the Deploymentdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Deployment

Replica Set

createNamespacedReplicaSet

V1ReplicaSet createNamespacedReplicaSet(body)

create a ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiCreateNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiCreateNamespacedReplicaSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1ReplicaSet: /models/workloads#v1replicaset */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ReplicaSet
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1ReplicaSet

readNamespacedReplicaSet

V1ReplicaSet readNamespacedReplicaSet()

read the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedReplicaSetRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1ReplicaSet

listNamespacedReplicaSet

V1ReplicaSetList listNamespacedReplicaSet()

list or watch objects of kind ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListNamespacedReplicaSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1ReplicaSetList

readNamespacedReplicaSetScale

V1Scale readNamespacedReplicaSetScale()

read scale of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedReplicaSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedReplicaSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedReplicaSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1Scale

readNamespacedReplicaSetStatus

V1ReplicaSet readNamespacedReplicaSetStatus()

read status of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedReplicaSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedReplicaSetStatusRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedReplicaSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1ReplicaSet

listReplicaSetForAllNamespaces

V1ReplicaSetList listReplicaSetForAllNamespaces()

list or watch objects of kind ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListReplicaSetForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListReplicaSetForAllNamespacesRequest = {
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listReplicaSetForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1ReplicaSetList

patchNamespacedReplicaSet

V1ReplicaSet patchNamespacedReplicaSet(body)

partially update the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedReplicaSetRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1ReplicaSet

patchNamespacedReplicaSetScale

V1Scale patchNamespacedReplicaSetScale(body)

partially update scale of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedReplicaSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedReplicaSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedReplicaSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1Scale

patchNamespacedReplicaSetStatus

V1ReplicaSet patchNamespacedReplicaSetStatus(body)

partially update status of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedReplicaSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedReplicaSetStatusRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedReplicaSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1ReplicaSet

replaceNamespacedReplicaSet

V1ReplicaSet replaceNamespacedReplicaSet(body)

replace the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedReplicaSetRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1ReplicaSet: /models/workloads#v1replicaset */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ReplicaSet
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1ReplicaSet

deleteCollectionNamespacedReplicaSet

V1Status deleteCollectionNamespacedReplicaSet()

delete collection of ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type

V1Status

deleteNamespacedReplicaSet

V1Status deleteNamespacedReplicaSet()

delete a ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteNamespacedReplicaSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteNamespacedReplicaSetRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedReplicaSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type

V1Status

replaceNamespacedReplicaSetScale

V1Scale replaceNamespacedReplicaSetScale(body)

replace scale of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedReplicaSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1Scale: /models/workloads#v1scale */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedReplicaSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Scale
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Scale

replaceNamespacedReplicaSetStatus

V1ReplicaSet replaceNamespacedReplicaSetStatus(body)

replace status of the specified ReplicaSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedReplicaSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest = {
// name of the ReplicaSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1ReplicaSet: /models/workloads#v1replicaset */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedReplicaSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1ReplicaSet
name[string]name of the ReplicaSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1ReplicaSet

Stateful Set

createNamespacedStatefulSet

V1StatefulSet createNamespacedStatefulSet(body)

create a StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiCreateNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiCreateNamespacedStatefulSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "StatefulSet", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, serviceName: "example", template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1statefulset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.createNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1StatefulSet
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1StatefulSet

readNamespacedStatefulSet

V1StatefulSet readNamespacedStatefulSet()

read the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedStatefulSetRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1StatefulSet

listNamespacedStatefulSet

V1StatefulSetList listNamespacedStatefulSet()

list or watch objects of kind StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListNamespacedStatefulSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1StatefulSetList

readNamespacedStatefulSetScale

V1Scale readNamespacedStatefulSetScale()

read scale of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedStatefulSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedStatefulSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedStatefulSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1Scale

readNamespacedStatefulSetStatus

V1StatefulSet readNamespacedStatefulSetStatus()

read status of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReadNamespacedStatefulSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReadNamespacedStatefulSetStatusRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
};

const data = await apiInstance.readNamespacedStatefulSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
Return type

V1StatefulSet

listStatefulSetForAllNamespaces

V1StatefulSetList listStatefulSetForAllNamespaces()

list or watch objects of kind StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiListStatefulSetForAllNamespacesRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiListStatefulSetForAllNamespacesRequest = {
// allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. (optional)
allowWatchBookmarks: true,
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional)
fieldSelector: "fieldSelector_example",
// ...8 more optional parameter(s)
};

const data = await apiInstance.listStatefulSetForAllNamespaces(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
allowWatchBookmarks[boolean]allowWatchBookmarks requests watch events with type "BOOKMARK". More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
watch[boolean]Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. More info(optional) defaults to undefined
Return type

V1StatefulSetList

patchNamespacedStatefulSet

V1StatefulSet patchNamespacedStatefulSet(body)

partially update the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedStatefulSetRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1StatefulSet

patchNamespacedStatefulSetScale

V1Scale patchNamespacedStatefulSetScale(body)

partially update scale of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedStatefulSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedStatefulSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedStatefulSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1Scale

patchNamespacedStatefulSetStatus

V1StatefulSet patchNamespacedStatefulSetStatus(body)

partially update status of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiPatchNamespacedStatefulSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiPatchNamespacedStatefulSetStatusRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See type definition in parameter table */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional)
fieldManager: "fieldManager_example",
// ...2 more optional parameter(s)
};

const data = await apiInstance.patchNamespacedStatefulSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyany
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
force[boolean]Force is going to "force" Apply requests. More info(optional) defaults to undefined
Return type

V1StatefulSet

replaceNamespacedStatefulSet

V1StatefulSet replaceNamespacedStatefulSet(body)

replace the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedStatefulSetRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "StatefulSet", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, serviceName: "example", template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1statefulset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1StatefulSet
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1StatefulSet

deleteCollectionNamespacedStatefulSet

V1Status deleteCollectionNamespacedStatefulSet()

delete collection of StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest = {
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional)
_continue: "continue_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...11 more optional parameter(s)
};

const data = await apiInstance.deleteCollectionNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
_continue[string]The continue option should be set when retrieving more results from the server. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldSelector[string]A selector to restrict the list of returned objects by their fields. Defaults to everything. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
labelSelector[string]A selector to restrict the list of returned objects by their labels. Defaults to everything. More info(optional) defaults to undefined
limit[number]limit is a maximum number of responses to return for a list call. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
resourceVersion[string]resourceVersion sets a constraint on what resource versions a request may be served from. More info(optional) defaults to undefined
resourceVersionMatch[string]resourceVersionMatch determines how resourceVersion is applied to list calls. More info(optional) defaults to undefined
sendInitialEvents[boolean]sendInitialEvents=true may be set together with watch=true. More info(optional) defaults to undefined
timeoutSeconds[number]Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. More info(optional) defaults to undefined
Return type

V1Status

deleteNamespacedStatefulSet

V1Status deleteNamespacedStatefulSet()

delete a StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiDeleteNamespacedStatefulSetRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiDeleteNamespacedStatefulSetRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional)
gracePeriodSeconds: 1,
body: { /* See V1DeleteOptions: /models/other#v1deleteoptions */ },
// ...3 more optional parameter(s)
};

const data = await apiInstance.deleteNamespacedStatefulSet(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1DeleteOptions
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
gracePeriodSeconds[number]The duration in seconds before the object should be deleted. More info(optional) defaults to undefined
ignoreStoreReadErrorWithClusterBreakingPotential[boolean]if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. More info(optional) defaults to undefined
orphanDependents[boolean]Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. More info(optional) defaults to undefined
propagationPolicy[string]Whether and how garbage collection will be performed. More info(optional) defaults to undefined
Return type

V1Status

replaceNamespacedStatefulSetScale

V1Scale replaceNamespacedStatefulSetScale(body)

replace scale of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedStatefulSetScaleRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest = {
// name of the Scale
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { /* See V1Scale: /models/workloads#v1scale */ },
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedStatefulSetScale(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1Scale
name[string]name of the Scaledefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1Scale

replaceNamespacedStatefulSetStatus

V1StatefulSet replaceNamespacedStatefulSetStatus(body)

replace status of the specified StatefulSet

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';
import type { AppsV1ApiReplaceNamespacedStatefulSetStatusRequest } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest = {
// name of the StatefulSet
name: "name_example",
// object name and auth scope, such as for teams and projects
namespace: "namespace_example",
body: { apiVersion: "apps/v1", kind: "StatefulSet", metadata: { name: "example" }, spec: { replicas: 1, selector: { matchLabels: { app: "example" } }, serviceName: "example", template: { metadata: { labels: { app: "example" } }, spec: { containers: [{ name: "app", image: "nginx" }] } } } }, // See full type: /models/workloads#v1statefulset,
// If \'true\', then the output is pretty printed. Defaults to \'false\' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional)
pretty: "pretty_example",
// When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional)
dryRun: "dryRun_example",
// fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional)
fieldManager: "fieldManager_example",
// ...1 more optional parameter(s)
};

const data = await apiInstance.replaceNamespacedStatefulSetStatus(request);
console.log('API called successfully. Returned data:', data);
Parameters
NameTypeDescriptionNotes
bodyV1StatefulSet
name[string]name of the StatefulSetdefaults to undefined
namespace[string]object name and auth scope, such as for teams and projectsdefaults to undefined
pretty[string]If 'true', then the output is pretty printed. More info(optional) defaults to undefined
dryRun[string]When present, indicates that modifications should not be persisted. More info(optional) defaults to undefined
fieldManager[string]fieldManager is a name associated with the actor or entity that is making these changes. More info(optional) defaults to undefined
fieldValidation[string]fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. More info(optional) defaults to undefined
Return type

V1StatefulSet

APIResources

getAPIResources

V1APIResourceList getAPIResources()

get available resources

Example
import { createConfiguration, AppsV1Api } from '@kubernetes/client-node';

const configuration = createConfiguration();
const apiInstance = new AppsV1Api(configuration);

const request = {};

const data = await apiInstance.getAPIResources(request);
console.log('API called successfully. Returned data:', data);
Parameters

This endpoint does not need any parameter.

Return type

V1APIResourceList