v1.ReplicationController

Description

ReplicationController represents the configuration of a replication controller.

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

Operations

Create a ReplicationController

Create a ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.ReplicationController

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.ReplicationController

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a ReplicationController in a namespace

Create a ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.ReplicationController

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get a ReplicationController in a namespace

Read the specified ReplicationController

HTTP request

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

Path parameters

ParameterDescription

name

name of the ReplicationController

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get all ReplicationControllers

List or watch objects of kind ReplicationController

HTTP request

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

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Get all ReplicationControllers in a namespace

List or watch objects of kind ReplicationController

HTTP request

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

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

  • application/json;stream=watch

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

Watch a ReplicationController in a namespace

Watch changes to an object of kind ReplicationController

HTTP request

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

Path parameters

ParameterDescription

name

name of the ReplicationController

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 ReplicationControllers

Watch individual changes to a list of ReplicationController

HTTP request

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

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

Watch individual changes to a list of ReplicationController

HTTP request

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

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

Replace the specified ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.ReplicationController

Path parameters

ParameterDescription

name

name of the ReplicationController

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch a ReplicationController in a namespace

Partially update the specified ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the ReplicationController

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

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

Delete a ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.DeleteOptions

Path parameters

ParameterDescription

name

name of the ReplicationController

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

Delete collection of ReplicationController

HTTP request

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

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

Get scale of a ReplicationController in a namespace

Read scale of the specified Scale

HTTP request

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

v1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Get scale of a ReplicationController in a namespace

Read scale of the specified Scale

HTTP request

  1. GET /apis/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$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/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$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 ReplicationController in a namespace

Replace scale of the specified Scale

HTTP request

  1. PUT /api/v1/namespaces/$NAMESPACE/replicationcontrollers/$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": "autoscaling/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/replicationcontrollers/$NAME/scale <<'EOF'
  8. {
  9. "kind": "Scale",
  10. "apiVersion": "autoscaling/v1",
  11. ...
  12. }
  13. EOF

HTTP body

ParameterSchema

body

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

v1.Scale

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update scale of a ReplicationController in a namespace

Replace scale of the specified Scale

HTTP request

  1. PUT /apis/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$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": "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/apis/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$NAME/scale <<'EOF'
  8. {
  9. "kind": "Scale",
  10. "apiVersion": "v1",
  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 ReplicationController in a namespace

Partially update scale of the specified Scale

HTTP request

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

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

Patch scale of a ReplicationController in a namespace

Partially update scale of the specified Scale

HTTP request

  1. PATCH /apis/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$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/extensions/v1beta1/namespaces/$NAMESPACE/replicationcontrollers/$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 ReplicationController in a namespace

Read status of the specified ReplicationController

HTTP request

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

Path parameters

ParameterDescription

name

name of the ReplicationController

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Update status of a ReplicationController in a namespace

Replace status of the specified ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.ReplicationController

Path parameters

ParameterDescription

name

name of the ReplicationController

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Patch status of a ReplicationController in a namespace

Partially update status of the specified ReplicationController

HTTP request

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

HTTP body

ParameterSchema

body

v1.Patch

Path parameters

ParameterDescription

name

name of the ReplicationController

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

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