v1beta1.Deployment

Description

Deployment enables declarative updates for Pods and ReplicaSets.

Object Schema

Expand or mouse-over a field for more information about it.

  1. apiVersion:
  2. kind:
  3. metadata:
  4. annotations:
  5. [string]:
  6. clusterName:
  7. creationTimestamp:
  8. deletionGracePeriodSeconds:
  9. deletionTimestamp:
  10. finalizers:
  11. - [string]:
  12. generateName:
  13. generation:
  14. initializers:
  15. pending:
  16. - name:
  17. result:
  18. apiVersion:
  19. code:
  20. details:
  21. causes:
  22. - field:
  23. message:
  24. reason:
  25. group:
  26. kind:
  27. name:
  28. retryAfterSeconds:
  29. uid:
  30. kind:
  31. message:
  32. metadata:
  33. resourceVersion:
  34. selfLink:
  35. reason:
  36. status:
  37. labels:
  38. [string]:
  39. name:
  40. namespace:
  41. ownerReferences:
  42. - apiVersion:
  43. blockOwnerDeletion:
  44. controller:
  45. kind:
  46. name:
  47. uid:
  48. resourceVersion:
  49. selfLink:
  50. uid:
  51. spec:
  52. minReadySeconds:
  53. paused:
  54. progressDeadlineSeconds:
  55. replicas:
  56. revisionHistoryLimit:
  57. rollbackTo:
  58. revision:
  59. selector:
  60. matchExpressions:
  61. - key:
  62. operator:
  63. values:
  64. - [string]:
  65. matchLabels:
  66. [string]:
  67. strategy:
  68. rollingUpdate:
  69. maxSurge:
  70. maxUnavailable:
  71. type:
  72. template:
  73. metadata:
  74. annotations:
  75. [string]:
  76. clusterName:
  77. creationTimestamp:
  78. deletionGracePeriodSeconds:
  79. deletionTimestamp:
  80. finalizers:
  81. - [string]:
  82. generateName:
  83. generation:
  84. initializers:
  85. pending:
  86. - name:
  87. result:
  88. apiVersion:
  89. code:
  90. details:
  91. causes:
  92. - field:
  93. message:
  94. reason:
  95. group:
  96. kind:
  97. name:
  98. retryAfterSeconds:
  99. uid:
  100. kind:
  101. message:
  102. metadata:
  103. resourceVersion:
  104. selfLink:
  105. reason:
  106. status:
  107. labels:
  108. [string]:
  109. name:
  110. namespace:
  111. ownerReferences:
  112. - apiVersion:
  113. blockOwnerDeletion:
  114. controller:
  115. kind:
  116. name:
  117. uid:
  118. resourceVersion:
  119. selfLink:
  120. uid:
  121. spec:
  122. activeDeadlineSeconds:
  123. affinity:
  124. nodeAffinity:
  125. preferredDuringSchedulingIgnoredDuringExecution:
  126. - preference:
  127. - matchExpressions:
  128. - - key:
  129. operator:
  130. values:
  131. - [string]:
  132. weight:
  133. requiredDuringSchedulingIgnoredDuringExecution:
  134. nodeSelectorTerms:
  135. - matchExpressions:
  136. - - key:
  137. operator:
  138. values:
  139. - [string]:
  140. podAffinity:
  141. preferredDuringSchedulingIgnoredDuringExecution:
  142. - podAffinityTerm:
  143. - labelSelector:
  144. - matchExpressions:
  145. - - key:
  146. operator:
  147. values:
  148. - [string]:
  149. matchLabels:
  150. [string]:
  151. namespaces:
  152. - [string]:
  153. topologyKey:
  154. weight:
  155. requiredDuringSchedulingIgnoredDuringExecution:
  156. - labelSelector:
  157. - matchExpressions:
  158. - - key:
  159. operator:
  160. values:
  161. - [string]:
  162. matchLabels:
  163. [string]:
  164. namespaces:
  165. - [string]:
  166. topologyKey:
  167. podAntiAffinity:
  168. preferredDuringSchedulingIgnoredDuringExecution:
  169. - podAffinityTerm:
  170. - labelSelector:
  171. - matchExpressions:
  172. - - key:
  173. operator:
  174. values:
  175. - [string]:
  176. matchLabels:
  177. [string]:
  178. namespaces:
  179. - [string]:
  180. topologyKey:
  181. weight:
  182. requiredDuringSchedulingIgnoredDuringExecution:
  183. - labelSelector:
  184. - matchExpressions:
  185. - - key:
  186. operator:
  187. values:
  188. - [string]:
  189. matchLabels:
  190. [string]:
  191. namespaces:
  192. - [string]:
  193. topologyKey:
  194. automountServiceAccountToken:
  195. containers:
  196. - args:
  197. - - [string]:
  198. command:
  199. - [string]:
  200. env:
  201. - name:
  202. value:
  203. valueFrom:
  204. configMapKeyRef:
  205. key:
  206. name:
  207. optional:
  208. fieldRef:
  209. apiVersion:
  210. fieldPath:
  211. resourceFieldRef:
  212. containerName:
  213. divisor:
  214. resource:
  215. secretKeyRef:
  216. key:
  217. name:
  218. optional:
  219. envFrom:
  220. - configMapRef:
  221. - name:
  222. optional:
  223. prefix:
  224. secretRef:
  225. name:
  226. optional:
  227. image:
  228. imagePullPolicy:
  229. lifecycle:
  230. postStart:
  231. exec:
  232. command:
  233. - [string]:
  234. httpGet:
  235. host:
  236. httpHeaders:
  237. - name:
  238. value:
  239. path:
  240. port:
  241. scheme:
  242. tcpSocket:
  243. host:
  244. port:
  245. preStop:
  246. exec:
  247. command:
  248. - [string]:
  249. httpGet:
  250. host:
  251. httpHeaders:
  252. - name:
  253. value:
  254. path:
  255. port:
  256. scheme:
  257. tcpSocket:
  258. host:
  259. port:
  260. livenessProbe:
  261. exec:
  262. command:
  263. - [string]:
  264. failureThreshold:
  265. httpGet:
  266. host:
  267. httpHeaders:
  268. - name:
  269. value:
  270. path:
  271. port:
  272. scheme:
  273. initialDelaySeconds:
  274. periodSeconds:
  275. successThreshold:
  276. tcpSocket:
  277. host:
  278. port:
  279. timeoutSeconds:
  280. name:
  281. ports:
  282. - containerPort:
  283. hostIP:
  284. hostPort:
  285. name:
  286. protocol:
  287. readinessProbe:
  288. exec:
  289. command:
  290. - [string]:
  291. failureThreshold:
  292. httpGet:
  293. host:
  294. httpHeaders:
  295. - name:
  296. value:
  297. path:
  298. port:
  299. scheme:
  300. initialDelaySeconds:
  301. periodSeconds:
  302. successThreshold:
  303. tcpSocket:
  304. host:
  305. port:
  306. timeoutSeconds:
  307. resources:
  308. limits:
  309. [string]:
  310. requests:
  311. [string]:
  312. securityContext:
  313. capabilities:
  314. add:
  315. - [string]:
  316. drop:
  317. - [string]:
  318. privileged:
  319. readOnlyRootFilesystem:
  320. runAsNonRoot:
  321. runAsUser:
  322. seLinuxOptions:
  323. level:
  324. role:
  325. type:
  326. user:
  327. stdin:
  328. stdinOnce:
  329. terminationMessagePath:
  330. terminationMessagePolicy:
  331. tty:
  332. volumeMounts:
  333. - mountPath:
  334. name:
  335. readOnly:
  336. subPath:
  337. workingDir:
  338. dnsPolicy:
  339. hostAliases:
  340. - hostnames:
  341. - - [string]:
  342. ip:
  343. hostIPC:
  344. hostNetwork:
  345. hostPID:
  346. hostname:
  347. imagePullSecrets:
  348. - name:
  349. initContainers:
  350. - args:
  351. - - [string]:
  352. command:
  353. - [string]:
  354. env:
  355. - name:
  356. value:
  357. valueFrom:
  358. configMapKeyRef:
  359. key:
  360. name:
  361. optional:
  362. fieldRef:
  363. apiVersion:
  364. fieldPath:
  365. resourceFieldRef:
  366. containerName:
  367. divisor:
  368. resource:
  369. secretKeyRef:
  370. key:
  371. name:
  372. optional:
  373. envFrom:
  374. - configMapRef:
  375. - name:
  376. optional:
  377. prefix:
  378. secretRef:
  379. name:
  380. optional:
  381. image:
  382. imagePullPolicy:
  383. lifecycle:
  384. postStart:
  385. exec:
  386. command:
  387. - [string]:
  388. httpGet:
  389. host:
  390. httpHeaders:
  391. - name:
  392. value:
  393. path:
  394. port:
  395. scheme:
  396. tcpSocket:
  397. host:
  398. port:
  399. preStop:
  400. exec:
  401. command:
  402. - [string]:
  403. httpGet:
  404. host:
  405. httpHeaders:
  406. - name:
  407. value:
  408. path:
  409. port:
  410. scheme:
  411. tcpSocket:
  412. host:
  413. port:
  414. livenessProbe:
  415. exec:
  416. command:
  417. - [string]:
  418. failureThreshold:
  419. httpGet:
  420. host:
  421. httpHeaders:
  422. - name:
  423. value:
  424. path:
  425. port:
  426. scheme:
  427. initialDelaySeconds:
  428. periodSeconds:
  429. successThreshold:
  430. tcpSocket:
  431. host:
  432. port:
  433. timeoutSeconds:
  434. name:
  435. ports:
  436. - containerPort:
  437. hostIP:
  438. hostPort:
  439. name:
  440. protocol:
  441. readinessProbe:
  442. exec:
  443. command:
  444. - [string]:
  445. failureThreshold:
  446. httpGet:
  447. host:
  448. httpHeaders:
  449. - name:
  450. value:
  451. path:
  452. port:
  453. scheme:
  454. initialDelaySeconds:
  455. periodSeconds:
  456. successThreshold:
  457. tcpSocket:
  458. host:
  459. port:
  460. timeoutSeconds:
  461. resources:
  462. limits:
  463. [string]:
  464. requests:
  465. [string]:
  466. securityContext:
  467. capabilities:
  468. add:
  469. - [string]:
  470. drop:
  471. - [string]:
  472. privileged:
  473. readOnlyRootFilesystem:
  474. runAsNonRoot:
  475. runAsUser:
  476. seLinuxOptions:
  477. level:
  478. role:
  479. type:
  480. user:
  481. stdin:
  482. stdinOnce:
  483. terminationMessagePath:
  484. terminationMessagePolicy:
  485. tty:
  486. volumeMounts:
  487. - mountPath:
  488. name:
  489. readOnly:
  490. subPath:
  491. workingDir:
  492. nodeName:
  493. nodeSelector:
  494. [string]:
  495. restartPolicy:
  496. schedulerName:
  497. securityContext:
  498. fsGroup:
  499. runAsNonRoot:
  500. runAsUser:
  501. seLinuxOptions:
  502. level:
  503. role:
  504. type:
  505. user:
  506. supplementalGroups:
  507. - [integer]:
  508. serviceAccount:
  509. serviceAccountName:
  510. subdomain:
  511. terminationGracePeriodSeconds:
  512. tolerations:
  513. - effect:
  514. key:
  515. operator:
  516. tolerationSeconds:
  517. value:
  518. volumes:
  519. - awsElasticBlockStore:
  520. - fsType:
  521. partition:
  522. readOnly:
  523. volumeID:
  524. azureDisk:
  525. cachingMode:
  526. diskName:
  527. diskURI:
  528. fsType:
  529. kind:
  530. readOnly:
  531. azureFile:
  532. readOnly:
  533. secretName:
  534. shareName:
  535. cephfs:
  536. monitors:
  537. - [string]:
  538. path:
  539. readOnly:
  540. secretFile:
  541. secretRef:
  542. name:
  543. user:
  544. cinder:
  545. fsType:
  546. readOnly:
  547. volumeID:
  548. configMap:
  549. defaultMode:
  550. items:
  551. - key:
  552. mode:
  553. path:
  554. name:
  555. optional:
  556. downwardAPI:
  557. defaultMode:
  558. items:
  559. - fieldRef:
  560. - apiVersion:
  561. fieldPath:
  562. mode:
  563. path:
  564. resourceFieldRef:
  565. containerName:
  566. divisor:
  567. resource:
  568. emptyDir:
  569. medium:
  570. sizeLimit:
  571. fc:
  572. fsType:
  573. lun:
  574. readOnly:
  575. targetWWNs:
  576. - [string]:
  577. flexVolume:
  578. driver:
  579. fsType:
  580. options:
  581. [string]:
  582. readOnly:
  583. secretRef:
  584. name:
  585. flocker:
  586. datasetName:
  587. datasetUUID:
  588. gcePersistentDisk:
  589. fsType:
  590. partition:
  591. pdName:
  592. readOnly:
  593. glusterfs:
  594. endpoints:
  595. path:
  596. readOnly:
  597. hostPath:
  598. path:
  599. iscsi:
  600. chapAuthDiscovery:
  601. chapAuthSession:
  602. fsType:
  603. iqn:
  604. iscsiInterface:
  605. lun:
  606. portals:
  607. - [string]:
  608. readOnly:
  609. secretRef:
  610. name:
  611. targetPortal:
  612. name:
  613. nfs:
  614. path:
  615. readOnly:
  616. server:
  617. persistentVolumeClaim:
  618. claimName:
  619. readOnly:
  620. photonPersistentDisk:
  621. fsType:
  622. pdID:
  623. portworxVolume:
  624. fsType:
  625. readOnly:
  626. volumeID:
  627. projected:
  628. defaultMode:
  629. sources:
  630. - configMap:
  631. - items:
  632. - - key:
  633. mode:
  634. path:
  635. name:
  636. optional:
  637. downwardAPI:
  638. items:
  639. - fieldRef:
  640. - apiVersion:
  641. fieldPath:
  642. mode:
  643. path:
  644. resourceFieldRef:
  645. containerName:
  646. divisor:
  647. resource:
  648. secret:
  649. items:
  650. - key:
  651. mode:
  652. path:
  653. name:
  654. optional:
  655. quobyte:
  656. group:
  657. readOnly:
  658. registry:
  659. user:
  660. volume:
  661. rbd:
  662. fsType:
  663. image:
  664. keyring:
  665. monitors:
  666. - [string]:
  667. pool:
  668. readOnly:
  669. secretRef:
  670. name:
  671. user:
  672. scaleIO:
  673. fsType:
  674. gateway:
  675. protectionDomain:
  676. readOnly:
  677. secretRef:
  678. name:
  679. sslEnabled:
  680. storageMode:
  681. storagePool:
  682. system:
  683. volumeName:
  684. secret:
  685. defaultMode:
  686. items:
  687. - key:
  688. mode:
  689. path:
  690. optional:
  691. secretName:
  692. storageos:
  693. fsType:
  694. readOnly:
  695. secretRef:
  696. name:
  697. volumeName:
  698. volumeNamespace:
  699. vsphereVolume:
  700. fsType:
  701. storagePolicyID:
  702. storagePolicyName:
  703. volumePath:
  704. status:
  705. availableReplicas:
  706. collisionCount:
  707. conditions:
  708. - lastTransitionTime:
  709. lastUpdateTime:
  710. message:
  711. reason:
  712. status:
  713. type:
  714. observedGeneration:
  715. readyReplicas:
  716. replicas:
  717. unavailableReplicas:
  718. updatedReplicas:

Operations

Create a Deployment

Create a Deployment

HTTP request

  1. POST /apis/apps/v1beta1/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Deployment",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/deployments <<'EOF'
  8. {
  9. "kind": "Deployment",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Deployment

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a Deployment in a namespace

Create a Deployment

HTTP request

  1. POST /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Deployment",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments <<'EOF'
  8. {
  9. "kind": "Deployment",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Deployment

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a Deployment in a namespace

Read the specified Deployment

HTTP request

  1. GET /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

exact

Should the export be exact. Exact export maintains cluster-specific fields like ‘Namespace’.

export

Should this value be exported. Export strips fields that a user can not specify.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all Deployments

List or watch objects of kind Deployment

HTTP request

  1. GET /apis/apps/v1beta1/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/deployments

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1beta1.DeploymentList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Get all Deployments in a namespace

List or watch objects of kind Deployment

HTTP request

  1. GET /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1beta1.DeploymentList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch a Deployment in a namespace

Watch changes to an object of kind Deployment

HTTP request

  1. GET /apis/apps/v1beta1/watch/namespaces/$NAMESPACE/deployments/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/watch/namespaces/$NAMESPACE/deployments/$NAME

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all Deployments

Watch individual changes to a list of Deployment

HTTP request

  1. GET /apis/apps/v1beta1/watch/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/watch/deployments

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Watch all Deployments in a namespace

Watch individual changes to a list of Deployment

HTTP request

  1. GET /apis/apps/v1beta1/watch/namespaces/$NAMESPACE/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/watch/namespaces/$NAMESPACE/deployments

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

pretty

If ‘true’, then the output is pretty printed.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.WatchEvent

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

  • application/vnd.kubernetes.protobuf;stream=watch

Update a Deployment in a namespace

Replace the specified Deployment

HTTP request

  1. PUT /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Deployment",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME <<'EOF'
  8. {
  9. "kind": "Deployment",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Deployment

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a Deployment in a namespace

Partially update the specified Deployment

HTTP request

  1. PATCH /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete a Deployment in a namespace

Delete a Deployment

HTTP request

  1. DELETE /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

gracePeriodSeconds

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.

orphanDependents

Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both.

propagationPolicy

Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Delete all Deployments in a namespace

Delete collection of Deployment

HTTP request

  1. DELETE /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X DELETE \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments

Path parameters

ParameterDescription

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

fieldSelector

A selector to restrict the list of returned objects by their fields. Defaults to everything.

includeUninitialized

If true, partially initialized resources are included in the response.

labelSelector

A selector to restrict the list of returned objects by their labels. Defaults to everything.

resourceVersion

When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it’s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.

timeoutSeconds

Timeout for the list/watch call.

watch

Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.

Responses

HTTP CodeSchema

200 OK

v1.Status

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create rollback of a Deployment in a namespace

Create rollback of a DeploymentRollback

HTTP request

  1. POST /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/rollback HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "DeploymentRollback",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/rollback <<'EOF'
  8. {
  9. "kind": "DeploymentRollback",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.DeploymentRollback

Path parameters

ParameterDescription

name

name of the DeploymentRollback

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.DeploymentRollback

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get scale of a Deployment in a namespace

Read scale of the specified Scale

HTTP request

  1. GET /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update scale of a Deployment in a namespace

Replace scale of the specified Scale

HTTP request

  1. PUT /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Scale",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale <<'EOF'
  8. {
  9. "kind": "Scale",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Scale

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch scale of a Deployment in a namespace

Partially update scale of the specified Scale

HTTP request

  1. PATCH /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/scale <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Scale

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Scale

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get status of a Deployment in a namespace

Read status of the specified Deployment

HTTP request

  1. GET /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -H "Authorization: Bearer $TOKEN" \
  3. -H 'Accept: application/json' \
  4. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update status of a Deployment in a namespace

Replace status of the specified Deployment

HTTP request

  1. PUT /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Deployment",
  8. "apiVersion": "apps/v1beta1",
  9. ...
  10. }

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status <<'EOF'
  8. {
  9. "kind": "Deployment",
  10. "apiVersion": "apps/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Deployment

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch status of a Deployment in a namespace

Partially update status of the specified Deployment

HTTP request

  1. PATCH /apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json-patch+json'
  6. {
  7. ...
  8. }

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -d @- \
  4. -H "Authorization: Bearer $TOKEN" \
  5. -H 'Accept: application/json' \
  6. -H 'Content-Type: application/json-patch+json' \
  7. https://$ENDPOINT/apis/apps/v1beta1/namespaces/$NAMESPACE/deployments/$NAME/status <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Deployment

namespace

object name and auth scope, such as for teams and projects

Query parameters

ParameterDescription

pretty

If ‘true’, then the output is pretty printed.

Responses

HTTP CodeSchema

200 OK

v1beta1.Deployment

401 Unauthorized

Consumes

  • application/json-patch+json

  • application/merge-patch+json

  • application/strategic-merge-patch+json

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf