v1.Pod

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

You are viewing documentation for a release that is no longer supported. The latest supported version of version 3 is [3.11]. For the most recent version 4, see [4]

Description

Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.

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

Operations

Create a Pod

Create a Pod

HTTP request

  1. POST /api/v1/pods HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Pod",
  8. "apiVersion": "v1",
  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/api/v1/pods <<'EOF'
  8. {
  9. "kind": "Pod",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Pod

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a Pod in a namespace

Create a Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Pod",
  8. "apiVersion": "v1",
  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/api/v1/namespaces/$NAMESPACE/pods <<'EOF'
  8. {
  9. "kind": "Pod",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Pod

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

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a Pod in a namespace

Read the specified Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$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/api/v1/namespaces/$NAMESPACE/pods/$NAME

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all Pods

List or watch objects of kind Pod

HTTP request

  1. GET /api/v1/pods 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/api/v1/pods

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.PodList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Get all Pods in a namespace

List or watch objects of kind Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods 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/api/v1/namespaces/$NAMESPACE/pods

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.PodList

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Watch a Pod in a namespace

Watch changes to an object of kind Pod

HTTP request

  1. GET /api/v1/watch/namespaces/$NAMESPACE/pods/$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/api/v1/watch/namespaces/$NAMESPACE/pods/$NAME

Path parameters

ParameterDescription

name

name of the Pod

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 Pods

Watch individual changes to a list of Pod

HTTP request

  1. GET /api/v1/watch/pods 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/api/v1/watch/pods

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 Pods in a namespace

Watch individual changes to a list of Pod

HTTP request

  1. GET /api/v1/watch/namespaces/$NAMESPACE/pods 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/api/v1/watch/namespaces/$NAMESPACE/pods

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 Pod in a namespace

Replace the specified Pod

HTTP request

  1. PUT /api/v1/namespaces/$NAMESPACE/pods/$NAME HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Pod",
  8. "apiVersion": "v1",
  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/api/v1/namespaces/$NAMESPACE/pods/$NAME <<'EOF'
  8. {
  9. "kind": "Pod",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Pod

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a Pod in a namespace

Partially update the specified Pod

HTTP request

  1. PATCH /api/v1/namespaces/$NAMESPACE/pods/$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/api/v1/namespaces/$NAMESPACE/pods/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

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 Pod in a namespace

Delete a Pod

HTTP request

  1. DELETE /api/v1/namespaces/$NAMESPACE/pods/$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/api/v1/namespaces/$NAMESPACE/pods/$NAME <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the Pod

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 Pods in a namespace

Delete collection of Pod

HTTP request

  1. DELETE /api/v1/namespaces/$NAMESPACE/pods 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/api/v1/namespaces/$NAMESPACE/pods

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

Attach to a v1.Pod in a namespace (POST)

Connect POST requests to attach of Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/attach HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/attach

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

container

The container in which to execute the command. Defaults to only container if there is only one container in the pod.

stderr

Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.

stdin

Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.

stdout

Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.

tty

TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Attach to a v1.Pod in a namespace (GET)

Connect GET requests to attach of Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/attach 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/attach

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

container

The container in which to execute the command. Defaults to only container if there is only one container in the pod.

stderr

Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.

stdin

Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.

stdout

Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.

tty

TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Create binding of a Pod in a namespace

Create binding of a Binding

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/binding HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Binding",
  8. "apiVersion": "v1",
  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/api/v1/namespaces/$NAMESPACE/pods/$NAME/binding <<'EOF'
  8. {
  9. "kind": "Binding",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Binding

Path parameters

ParameterDescription

name

name of the Binding

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

v1.Binding

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create eviction of a Pod in a namespace

Create eviction of an Eviction

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/eviction HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Eviction",
  8. "apiVersion": "policy/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/api/v1/namespaces/$NAMESPACE/pods/$NAME/eviction <<'EOF'
  8. {
  9. "kind": "Eviction",
  10. "apiVersion": "policy/v1beta1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1beta1.Eviction

Path parameters

ParameterDescription

name

name of the Eviction

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.Eviction

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Exec in a v1.Pod in a namespace (POST)

Connect POST requests to exec of Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/exec HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/exec

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

command

Command is the remote command to execute. argv array. Not executed within a shell.

container

Container in which to execute the command. Defaults to only container if there is only one container in the pod.

stderr

Redirect the standard error stream of the pod for this call. Defaults to true.

stdin

Redirect the standard input stream of the pod for this call. Defaults to false.

stdout

Redirect the standard output stream of the pod for this call. Defaults to true.

tty

TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Exec in a v1.Pod in a namespace (GET)

Connect GET requests to exec of Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/exec 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/exec

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

command

Command is the remote command to execute. argv array. Not executed within a shell.

container

Container in which to execute the command. Defaults to only container if there is only one container in the pod.

stderr

Redirect the standard error stream of the pod for this call. Defaults to true.

stdin

Redirect the standard input stream of the pod for this call. Defaults to false.

stdout

Redirect the standard output stream of the pod for this call. Defaults to true.

tty

TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Get log of a Pod in a namespace

Read log of the specified Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/log 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/log

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

container

The container for which to stream logs. Defaults to only container if there is one container in the pod.

follow

Follow the log stream of the pod. Defaults to false.

limitBytes

If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.

pretty

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

previous

Return previous terminated container logs. Defaults to false.

sinceSeconds

A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.

tailLines

If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime

timestamps

If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • text/plain

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Port-forward to a v1.Pod in a namespace (POST)

Connect POST requests to portforward of Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/portforward HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/portforward

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

ports

List of ports to forward Required when using WebSockets

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Port-forward to a v1.Pod in a namespace (GET)

Connect GET requests to portforward of Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/portforward 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/portforward

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

ports

List of ports to forward Required when using WebSockets

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Get status of a Pod in a namespace

Read status of the specified Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$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/api/v1/namespaces/$NAMESPACE/pods/$NAME/status

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update status of a Pod in a namespace

Replace status of the specified Pod

HTTP request

  1. PUT /api/v1/namespaces/$NAMESPACE/pods/$NAME/status HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close
  5. Content-Type: application/json'
  6. {
  7. "kind": "Pod",
  8. "apiVersion": "v1",
  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/api/v1/namespaces/$NAMESPACE/pods/$NAME/status <<'EOF'
  8. {
  9. "kind": "Pod",
  10. "apiVersion": "v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

v1.Pod

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch status of a Pod in a namespace

Partially update status of the specified Pod

HTTP request

  1. PATCH /api/v1/namespaces/$NAMESPACE/pods/$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/api/v1/namespaces/$NAMESPACE/pods/$NAME/status <<'EOF'
  8. {
  9. ...
  10. }
  11. EOF

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the Pod

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

v1.Pod

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

Proxy OPTIONS request to a Pod in a namespace

Connect OPTIONS requests to proxy of Pod

HTTP request

  1. OPTIONS /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X OPTIONS \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy POST request to a Pod in a namespace

Connect POST requests to proxy of Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy HEAD request to a Pod in a namespace

Connect HEAD requests to proxy of Pod

HTTP request

  1. HEAD /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X HEAD \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy GET request to a Pod in a namespace

Connect GET requests to proxy of Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy PUT request to a Pod in a namespace

Connect PUT requests to proxy of Pod

HTTP request

  1. PUT /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy PATCH request to a Pod in a namespace

Connect PATCH requests to proxy of Pod

HTTP request

  1. PATCH /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy DELETE request to a Pod in a namespace

Connect DELETE requests to proxy of Pod

HTTP request

  1. DELETE /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy OPTIONS request to a Pod in a namespace (with path)

Connect OPTIONS requests to proxy of Pod

HTTP request

  1. OPTIONS /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X OPTIONS \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy POST request to a Pod in a namespace (with path)

Connect POST requests to proxy of Pod

HTTP request

  1. POST /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X POST \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy HEAD request to a Pod in a namespace (with path)

Connect HEAD requests to proxy of Pod

HTTP request

  1. HEAD /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X HEAD \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy GET request to a Pod in a namespace (with path)

Connect GET requests to proxy of Pod

HTTP request

  1. GET /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy PUT request to a Pod in a namespace (with path)

Connect PUT requests to proxy of Pod

HTTP request

  1. PUT /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X PUT \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy PATCH request to a Pod in a namespace (with path)

Connect PATCH requests to proxy of Pod

HTTP request

  1. PATCH /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH HTTP/1.1
  2. Authorization: Bearer $TOKEN
  3. Accept: application/json
  4. Connection: close

Curl request

  1. $ curl -k \
  2. -X PATCH \
  3. -H "Authorization: Bearer $TOKEN" \
  4. -H 'Accept: application/json' \
  5. https://$ENDPOINT/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*

Proxy DELETE request to a Pod in a namespace (with path)

Connect DELETE requests to proxy of Pod

HTTP request

  1. DELETE /api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH 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/api/v1/namespaces/$NAMESPACE/pods/$NAME/proxy/$PATH

Path parameters

ParameterDescription

name

name of the Pod

namespace

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

path

path to the resource

Query parameters

ParameterDescription

path

Path is the URL path to use for the current proxy request to pod.

Responses

HTTP CodeSchema

200 OK

string

401 Unauthorized

Consumes

  • */*

Produces

  • */*