v1.PodSecurityPolicyReview

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

PodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the PodTemplateSpec in question.

Object Schema

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

  1. apiVersion:
  2. kind:
  3. spec:
  4. serviceAccountNames:
  5. - [string]:
  6. template:
  7. metadata:
  8. annotations:
  9. [string]:
  10. clusterName:
  11. creationTimestamp:
  12. deletionGracePeriodSeconds:
  13. deletionTimestamp:
  14. finalizers:
  15. - [string]:
  16. generateName:
  17. generation:
  18. initializers:
  19. pending:
  20. - name:
  21. result:
  22. apiVersion:
  23. code:
  24. details:
  25. causes:
  26. - field:
  27. message:
  28. reason:
  29. group:
  30. kind:
  31. name:
  32. retryAfterSeconds:
  33. uid:
  34. kind:
  35. message:
  36. metadata:
  37. resourceVersion:
  38. selfLink:
  39. reason:
  40. status:
  41. labels:
  42. [string]:
  43. name:
  44. namespace:
  45. ownerReferences:
  46. - apiVersion:
  47. blockOwnerDeletion:
  48. controller:
  49. kind:
  50. name:
  51. uid:
  52. resourceVersion:
  53. selfLink:
  54. uid:
  55. spec:
  56. activeDeadlineSeconds:
  57. affinity:
  58. nodeAffinity:
  59. preferredDuringSchedulingIgnoredDuringExecution:
  60. - preference:
  61. - matchExpressions:
  62. - - key:
  63. operator:
  64. values:
  65. - [string]:
  66. weight:
  67. requiredDuringSchedulingIgnoredDuringExecution:
  68. nodeSelectorTerms:
  69. - matchExpressions:
  70. - - key:
  71. operator:
  72. values:
  73. - [string]:
  74. podAffinity:
  75. preferredDuringSchedulingIgnoredDuringExecution:
  76. - podAffinityTerm:
  77. - labelSelector:
  78. - matchExpressions:
  79. - - key:
  80. operator:
  81. values:
  82. - [string]:
  83. matchLabels:
  84. [string]:
  85. namespaces:
  86. - [string]:
  87. topologyKey:
  88. weight:
  89. requiredDuringSchedulingIgnoredDuringExecution:
  90. - labelSelector:
  91. - matchExpressions:
  92. - - key:
  93. operator:
  94. values:
  95. - [string]:
  96. matchLabels:
  97. [string]:
  98. namespaces:
  99. - [string]:
  100. topologyKey:
  101. podAntiAffinity:
  102. preferredDuringSchedulingIgnoredDuringExecution:
  103. - podAffinityTerm:
  104. - labelSelector:
  105. - matchExpressions:
  106. - - key:
  107. operator:
  108. values:
  109. - [string]:
  110. matchLabels:
  111. [string]:
  112. namespaces:
  113. - [string]:
  114. topologyKey:
  115. weight:
  116. requiredDuringSchedulingIgnoredDuringExecution:
  117. - labelSelector:
  118. - matchExpressions:
  119. - - key:
  120. operator:
  121. values:
  122. - [string]:
  123. matchLabels:
  124. [string]:
  125. namespaces:
  126. - [string]:
  127. topologyKey:
  128. automountServiceAccountToken:
  129. containers:
  130. - args:
  131. - - [string]:
  132. command:
  133. - [string]:
  134. env:
  135. - name:
  136. value:
  137. valueFrom:
  138. configMapKeyRef:
  139. key:
  140. name:
  141. optional:
  142. fieldRef:
  143. apiVersion:
  144. fieldPath:
  145. resourceFieldRef:
  146. containerName:
  147. divisor:
  148. resource:
  149. secretKeyRef:
  150. key:
  151. name:
  152. optional:
  153. envFrom:
  154. - configMapRef:
  155. - name:
  156. optional:
  157. prefix:
  158. secretRef:
  159. name:
  160. optional:
  161. image:
  162. imagePullPolicy:
  163. lifecycle:
  164. postStart:
  165. exec:
  166. command:
  167. - [string]:
  168. httpGet:
  169. host:
  170. httpHeaders:
  171. - name:
  172. value:
  173. path:
  174. port:
  175. scheme:
  176. tcpSocket:
  177. host:
  178. port:
  179. preStop:
  180. exec:
  181. command:
  182. - [string]:
  183. httpGet:
  184. host:
  185. httpHeaders:
  186. - name:
  187. value:
  188. path:
  189. port:
  190. scheme:
  191. tcpSocket:
  192. host:
  193. port:
  194. livenessProbe:
  195. exec:
  196. command:
  197. - [string]:
  198. failureThreshold:
  199. httpGet:
  200. host:
  201. httpHeaders:
  202. - name:
  203. value:
  204. path:
  205. port:
  206. scheme:
  207. initialDelaySeconds:
  208. periodSeconds:
  209. successThreshold:
  210. tcpSocket:
  211. host:
  212. port:
  213. timeoutSeconds:
  214. name:
  215. ports:
  216. - containerPort:
  217. hostIP:
  218. hostPort:
  219. name:
  220. protocol:
  221. readinessProbe:
  222. exec:
  223. command:
  224. - [string]:
  225. failureThreshold:
  226. httpGet:
  227. host:
  228. httpHeaders:
  229. - name:
  230. value:
  231. path:
  232. port:
  233. scheme:
  234. initialDelaySeconds:
  235. periodSeconds:
  236. successThreshold:
  237. tcpSocket:
  238. host:
  239. port:
  240. timeoutSeconds:
  241. resources:
  242. limits:
  243. [string]:
  244. requests:
  245. [string]:
  246. securityContext:
  247. capabilities:
  248. add:
  249. - [string]:
  250. drop:
  251. - [string]:
  252. privileged:
  253. readOnlyRootFilesystem:
  254. runAsNonRoot:
  255. runAsUser:
  256. seLinuxOptions:
  257. level:
  258. role:
  259. type:
  260. user:
  261. stdin:
  262. stdinOnce:
  263. terminationMessagePath:
  264. terminationMessagePolicy:
  265. tty:
  266. volumeMounts:
  267. - mountPath:
  268. name:
  269. readOnly:
  270. subPath:
  271. workingDir:
  272. dnsPolicy:
  273. hostAliases:
  274. - hostnames:
  275. - - [string]:
  276. ip:
  277. hostIPC:
  278. hostNetwork:
  279. hostPID:
  280. hostname:
  281. imagePullSecrets:
  282. - name:
  283. initContainers:
  284. - args:
  285. - - [string]:
  286. command:
  287. - [string]:
  288. env:
  289. - name:
  290. value:
  291. valueFrom:
  292. configMapKeyRef:
  293. key:
  294. name:
  295. optional:
  296. fieldRef:
  297. apiVersion:
  298. fieldPath:
  299. resourceFieldRef:
  300. containerName:
  301. divisor:
  302. resource:
  303. secretKeyRef:
  304. key:
  305. name:
  306. optional:
  307. envFrom:
  308. - configMapRef:
  309. - name:
  310. optional:
  311. prefix:
  312. secretRef:
  313. name:
  314. optional:
  315. image:
  316. imagePullPolicy:
  317. lifecycle:
  318. postStart:
  319. exec:
  320. command:
  321. - [string]:
  322. httpGet:
  323. host:
  324. httpHeaders:
  325. - name:
  326. value:
  327. path:
  328. port:
  329. scheme:
  330. tcpSocket:
  331. host:
  332. port:
  333. preStop:
  334. exec:
  335. command:
  336. - [string]:
  337. httpGet:
  338. host:
  339. httpHeaders:
  340. - name:
  341. value:
  342. path:
  343. port:
  344. scheme:
  345. tcpSocket:
  346. host:
  347. port:
  348. livenessProbe:
  349. exec:
  350. command:
  351. - [string]:
  352. failureThreshold:
  353. httpGet:
  354. host:
  355. httpHeaders:
  356. - name:
  357. value:
  358. path:
  359. port:
  360. scheme:
  361. initialDelaySeconds:
  362. periodSeconds:
  363. successThreshold:
  364. tcpSocket:
  365. host:
  366. port:
  367. timeoutSeconds:
  368. name:
  369. ports:
  370. - containerPort:
  371. hostIP:
  372. hostPort:
  373. name:
  374. protocol:
  375. readinessProbe:
  376. exec:
  377. command:
  378. - [string]:
  379. failureThreshold:
  380. httpGet:
  381. host:
  382. httpHeaders:
  383. - name:
  384. value:
  385. path:
  386. port:
  387. scheme:
  388. initialDelaySeconds:
  389. periodSeconds:
  390. successThreshold:
  391. tcpSocket:
  392. host:
  393. port:
  394. timeoutSeconds:
  395. resources:
  396. limits:
  397. [string]:
  398. requests:
  399. [string]:
  400. securityContext:
  401. capabilities:
  402. add:
  403. - [string]:
  404. drop:
  405. - [string]:
  406. privileged:
  407. readOnlyRootFilesystem:
  408. runAsNonRoot:
  409. runAsUser:
  410. seLinuxOptions:
  411. level:
  412. role:
  413. type:
  414. user:
  415. stdin:
  416. stdinOnce:
  417. terminationMessagePath:
  418. terminationMessagePolicy:
  419. tty:
  420. volumeMounts:
  421. - mountPath:
  422. name:
  423. readOnly:
  424. subPath:
  425. workingDir:
  426. nodeName:
  427. nodeSelector:
  428. [string]:
  429. restartPolicy:
  430. schedulerName:
  431. securityContext:
  432. fsGroup:
  433. runAsNonRoot:
  434. runAsUser:
  435. seLinuxOptions:
  436. level:
  437. role:
  438. type:
  439. user:
  440. supplementalGroups:
  441. - [integer]:
  442. serviceAccount:
  443. serviceAccountName:
  444. subdomain:
  445. terminationGracePeriodSeconds:
  446. tolerations:
  447. - effect:
  448. key:
  449. operator:
  450. tolerationSeconds:
  451. value:
  452. volumes:
  453. - awsElasticBlockStore:
  454. - fsType:
  455. partition:
  456. readOnly:
  457. volumeID:
  458. azureDisk:
  459. cachingMode:
  460. diskName:
  461. diskURI:
  462. fsType:
  463. kind:
  464. readOnly:
  465. azureFile:
  466. readOnly:
  467. secretName:
  468. shareName:
  469. cephfs:
  470. monitors:
  471. - [string]:
  472. path:
  473. readOnly:
  474. secretFile:
  475. secretRef:
  476. name:
  477. user:
  478. cinder:
  479. fsType:
  480. readOnly:
  481. volumeID:
  482. configMap:
  483. defaultMode:
  484. items:
  485. - key:
  486. mode:
  487. path:
  488. name:
  489. optional:
  490. downwardAPI:
  491. defaultMode:
  492. items:
  493. - fieldRef:
  494. - apiVersion:
  495. fieldPath:
  496. mode:
  497. path:
  498. resourceFieldRef:
  499. containerName:
  500. divisor:
  501. resource:
  502. emptyDir:
  503. medium:
  504. sizeLimit:
  505. fc:
  506. fsType:
  507. lun:
  508. readOnly:
  509. targetWWNs:
  510. - [string]:
  511. flexVolume:
  512. driver:
  513. fsType:
  514. options:
  515. [string]:
  516. readOnly:
  517. secretRef:
  518. name:
  519. flocker:
  520. datasetName:
  521. datasetUUID:
  522. gcePersistentDisk:
  523. fsType:
  524. partition:
  525. pdName:
  526. readOnly:
  527. gitRepo:
  528. directory:
  529. repository:
  530. revision:
  531. glusterfs:
  532. endpoints:
  533. path:
  534. readOnly:
  535. hostPath:
  536. path:
  537. iscsi:
  538. chapAuthDiscovery:
  539. chapAuthSession:
  540. fsType:
  541. iqn:
  542. iscsiInterface:
  543. lun:
  544. portals:
  545. - [string]:
  546. readOnly:
  547. secretRef:
  548. name:
  549. targetPortal:
  550. name:
  551. nfs:
  552. path:
  553. readOnly:
  554. server:
  555. persistentVolumeClaim:
  556. claimName:
  557. readOnly:
  558. photonPersistentDisk:
  559. fsType:
  560. pdID:
  561. portworxVolume:
  562. fsType:
  563. readOnly:
  564. volumeID:
  565. projected:
  566. defaultMode:
  567. sources:
  568. - configMap:
  569. - items:
  570. - - key:
  571. mode:
  572. path:
  573. name:
  574. optional:
  575. downwardAPI:
  576. items:
  577. - fieldRef:
  578. - apiVersion:
  579. fieldPath:
  580. mode:
  581. path:
  582. resourceFieldRef:
  583. containerName:
  584. divisor:
  585. resource:
  586. secret:
  587. items:
  588. - key:
  589. mode:
  590. path:
  591. name:
  592. optional:
  593. quobyte:
  594. group:
  595. readOnly:
  596. registry:
  597. user:
  598. volume:
  599. rbd:
  600. fsType:
  601. image:
  602. keyring:
  603. monitors:
  604. - [string]:
  605. pool:
  606. readOnly:
  607. secretRef:
  608. name:
  609. user:
  610. scaleIO:
  611. fsType:
  612. gateway:
  613. protectionDomain:
  614. readOnly:
  615. secretRef:
  616. name:
  617. sslEnabled:
  618. storageMode:
  619. storagePool:
  620. system:
  621. volumeName:
  622. secret:
  623. defaultMode:
  624. items:
  625. - key:
  626. mode:
  627. path:
  628. optional:
  629. secretName:
  630. storageos:
  631. fsType:
  632. readOnly:
  633. secretRef:
  634. name:
  635. volumeName:
  636. volumeNamespace:
  637. vsphereVolume:
  638. fsType:
  639. storagePolicyID:
  640. storagePolicyName:
  641. volumePath:
  642. status:
  643. allowedServiceAccounts:
  644. - allowedBy:
  645. - apiVersion:
  646. fieldPath:
  647. kind:
  648. name:
  649. namespace:
  650. resourceVersion:
  651. uid:
  652. name:
  653. reason:
  654. template:
  655. metadata:
  656. annotations:
  657. [string]:
  658. clusterName:
  659. creationTimestamp:
  660. deletionGracePeriodSeconds:
  661. deletionTimestamp:
  662. finalizers:
  663. - [string]:
  664. generateName:
  665. generation:
  666. initializers:
  667. pending:
  668. - name:
  669. result:
  670. apiVersion:
  671. code:
  672. details:
  673. causes:
  674. - field:
  675. message:
  676. reason:
  677. group:
  678. kind:
  679. name:
  680. retryAfterSeconds:
  681. uid:
  682. kind:
  683. message:
  684. metadata:
  685. resourceVersion:
  686. selfLink:
  687. reason:
  688. status:
  689. labels:
  690. [string]:
  691. name:
  692. namespace:
  693. ownerReferences:
  694. - apiVersion:
  695. blockOwnerDeletion:
  696. controller:
  697. kind:
  698. name:
  699. uid:
  700. resourceVersion:
  701. selfLink:
  702. uid:
  703. spec:
  704. activeDeadlineSeconds:
  705. affinity:
  706. nodeAffinity:
  707. preferredDuringSchedulingIgnoredDuringExecution:
  708. - preference:
  709. - matchExpressions:
  710. - - key:
  711. operator:
  712. values:
  713. - [string]:
  714. weight:
  715. requiredDuringSchedulingIgnoredDuringExecution:
  716. nodeSelectorTerms:
  717. - matchExpressions:
  718. - - key:
  719. operator:
  720. values:
  721. - [string]:
  722. podAffinity:
  723. preferredDuringSchedulingIgnoredDuringExecution:
  724. - podAffinityTerm:
  725. - labelSelector:
  726. - matchExpressions:
  727. - - key:
  728. operator:
  729. values:
  730. - [string]:
  731. matchLabels:
  732. [string]:
  733. namespaces:
  734. - [string]:
  735. topologyKey:
  736. weight:
  737. requiredDuringSchedulingIgnoredDuringExecution:
  738. - labelSelector:
  739. - matchExpressions:
  740. - - key:
  741. operator:
  742. values:
  743. - [string]:
  744. matchLabels:
  745. [string]:
  746. namespaces:
  747. - [string]:
  748. topologyKey:
  749. podAntiAffinity:
  750. preferredDuringSchedulingIgnoredDuringExecution:
  751. - podAffinityTerm:
  752. - labelSelector:
  753. - matchExpressions:
  754. - - key:
  755. operator:
  756. values:
  757. - [string]:
  758. matchLabels:
  759. [string]:
  760. namespaces:
  761. - [string]:
  762. topologyKey:
  763. weight:
  764. requiredDuringSchedulingIgnoredDuringExecution:
  765. - labelSelector:
  766. - matchExpressions:
  767. - - key:
  768. operator:
  769. values:
  770. - [string]:
  771. matchLabels:
  772. [string]:
  773. namespaces:
  774. - [string]:
  775. topologyKey:
  776. automountServiceAccountToken:
  777. containers:
  778. - args:
  779. - - [string]:
  780. command:
  781. - [string]:
  782. env:
  783. - name:
  784. value:
  785. valueFrom:
  786. configMapKeyRef:
  787. key:
  788. name:
  789. optional:
  790. fieldRef:
  791. apiVersion:
  792. fieldPath:
  793. resourceFieldRef:
  794. containerName:
  795. divisor:
  796. resource:
  797. secretKeyRef:
  798. key:
  799. name:
  800. optional:
  801. envFrom:
  802. - configMapRef:
  803. - name:
  804. optional:
  805. prefix:
  806. secretRef:
  807. name:
  808. optional:
  809. image:
  810. imagePullPolicy:
  811. lifecycle:
  812. postStart:
  813. exec:
  814. command:
  815. - [string]:
  816. httpGet:
  817. host:
  818. httpHeaders:
  819. - name:
  820. value:
  821. path:
  822. port:
  823. scheme:
  824. tcpSocket:
  825. host:
  826. port:
  827. preStop:
  828. exec:
  829. command:
  830. - [string]:
  831. httpGet:
  832. host:
  833. httpHeaders:
  834. - name:
  835. value:
  836. path:
  837. port:
  838. scheme:
  839. tcpSocket:
  840. host:
  841. port:
  842. livenessProbe:
  843. exec:
  844. command:
  845. - [string]:
  846. failureThreshold:
  847. httpGet:
  848. host:
  849. httpHeaders:
  850. - name:
  851. value:
  852. path:
  853. port:
  854. scheme:
  855. initialDelaySeconds:
  856. periodSeconds:
  857. successThreshold:
  858. tcpSocket:
  859. host:
  860. port:
  861. timeoutSeconds:
  862. name:
  863. ports:
  864. - containerPort:
  865. hostIP:
  866. hostPort:
  867. name:
  868. protocol:
  869. readinessProbe:
  870. exec:
  871. command:
  872. - [string]:
  873. failureThreshold:
  874. httpGet:
  875. host:
  876. httpHeaders:
  877. - name:
  878. value:
  879. path:
  880. port:
  881. scheme:
  882. initialDelaySeconds:
  883. periodSeconds:
  884. successThreshold:
  885. tcpSocket:
  886. host:
  887. port:
  888. timeoutSeconds:
  889. resources:
  890. limits:
  891. [string]:
  892. requests:
  893. [string]:
  894. securityContext:
  895. capabilities:
  896. add:
  897. - [string]:
  898. drop:
  899. - [string]:
  900. privileged:
  901. readOnlyRootFilesystem:
  902. runAsNonRoot:
  903. runAsUser:
  904. seLinuxOptions:
  905. level:
  906. role:
  907. type:
  908. user:
  909. stdin:
  910. stdinOnce:
  911. terminationMessagePath:
  912. terminationMessagePolicy:
  913. tty:
  914. volumeMounts:
  915. - mountPath:
  916. name:
  917. readOnly:
  918. subPath:
  919. workingDir:
  920. dnsPolicy:
  921. hostAliases:
  922. - hostnames:
  923. - - [string]:
  924. ip:
  925. hostIPC:
  926. hostNetwork:
  927. hostPID:
  928. hostname:
  929. imagePullSecrets:
  930. - name:
  931. initContainers:
  932. - args:
  933. - - [string]:
  934. command:
  935. - [string]:
  936. env:
  937. - name:
  938. value:
  939. valueFrom:
  940. configMapKeyRef:
  941. key:
  942. name:
  943. optional:
  944. fieldRef:
  945. apiVersion:
  946. fieldPath:
  947. resourceFieldRef:
  948. containerName:
  949. divisor:
  950. resource:
  951. secretKeyRef:
  952. key:
  953. name:
  954. optional:
  955. envFrom:
  956. - configMapRef:
  957. - name:
  958. optional:
  959. prefix:
  960. secretRef:
  961. name:
  962. optional:
  963. image:
  964. imagePullPolicy:
  965. lifecycle:
  966. postStart:
  967. exec:
  968. command:
  969. - [string]:
  970. httpGet:
  971. host:
  972. httpHeaders:
  973. - name:
  974. value:
  975. path:
  976. port:
  977. scheme:
  978. tcpSocket:
  979. host:
  980. port:
  981. preStop:
  982. exec:
  983. command:
  984. - [string]:
  985. httpGet:
  986. host:
  987. httpHeaders:
  988. - name:
  989. value:
  990. path:
  991. port:
  992. scheme:
  993. tcpSocket:
  994. host:
  995. port:
  996. livenessProbe:
  997. exec:
  998. command:
  999. - [string]:
  1000. failureThreshold:
  1001. httpGet:
  1002. host:
  1003. httpHeaders:
  1004. - name:
  1005. value:
  1006. path:
  1007. port:
  1008. scheme:
  1009. initialDelaySeconds:
  1010. periodSeconds:
  1011. successThreshold:
  1012. tcpSocket:
  1013. host:
  1014. port:
  1015. timeoutSeconds:
  1016. name:
  1017. ports:
  1018. - containerPort:
  1019. hostIP:
  1020. hostPort:
  1021. name:
  1022. protocol:
  1023. readinessProbe:
  1024. exec:
  1025. command:
  1026. - [string]:
  1027. failureThreshold:
  1028. httpGet:
  1029. host:
  1030. httpHeaders:
  1031. - name:
  1032. value:
  1033. path:
  1034. port:
  1035. scheme:
  1036. initialDelaySeconds:
  1037. periodSeconds:
  1038. successThreshold:
  1039. tcpSocket:
  1040. host:
  1041. port:
  1042. timeoutSeconds:
  1043. resources:
  1044. limits:
  1045. [string]:
  1046. requests:
  1047. [string]:
  1048. securityContext:
  1049. capabilities:
  1050. add:
  1051. - [string]:
  1052. drop:
  1053. - [string]:
  1054. privileged:
  1055. readOnlyRootFilesystem:
  1056. runAsNonRoot:
  1057. runAsUser:
  1058. seLinuxOptions:
  1059. level:
  1060. role:
  1061. type:
  1062. user:
  1063. stdin:
  1064. stdinOnce:
  1065. terminationMessagePath:
  1066. terminationMessagePolicy:
  1067. tty:
  1068. volumeMounts:
  1069. - mountPath:
  1070. name:
  1071. readOnly:
  1072. subPath:
  1073. workingDir:
  1074. nodeName:
  1075. nodeSelector:
  1076. [string]:
  1077. restartPolicy:
  1078. schedulerName:
  1079. securityContext:
  1080. fsGroup:
  1081. runAsNonRoot:
  1082. runAsUser:
  1083. seLinuxOptions:
  1084. level:
  1085. role:
  1086. type:
  1087. user:
  1088. supplementalGroups:
  1089. - [integer]:
  1090. serviceAccount:
  1091. serviceAccountName:
  1092. subdomain:
  1093. terminationGracePeriodSeconds:
  1094. tolerations:
  1095. - effect:
  1096. key:
  1097. operator:
  1098. tolerationSeconds:
  1099. value:
  1100. volumes:
  1101. - awsElasticBlockStore:
  1102. - fsType:
  1103. partition:
  1104. readOnly:
  1105. volumeID:
  1106. azureDisk:
  1107. cachingMode:
  1108. diskName:
  1109. diskURI:
  1110. fsType:
  1111. kind:
  1112. readOnly:
  1113. azureFile:
  1114. readOnly:
  1115. secretName:
  1116. shareName:
  1117. cephfs:
  1118. monitors:
  1119. - [string]:
  1120. path:
  1121. readOnly:
  1122. secretFile:
  1123. secretRef:
  1124. name:
  1125. user:
  1126. cinder:
  1127. fsType:
  1128. readOnly:
  1129. volumeID:
  1130. configMap:
  1131. defaultMode:
  1132. items:
  1133. - key:
  1134. mode:
  1135. path:
  1136. name:
  1137. optional:
  1138. downwardAPI:
  1139. defaultMode:
  1140. items:
  1141. - fieldRef:
  1142. - apiVersion:
  1143. fieldPath:
  1144. mode:
  1145. path:
  1146. resourceFieldRef:
  1147. containerName:
  1148. divisor:
  1149. resource:
  1150. emptyDir:
  1151. medium:
  1152. sizeLimit:
  1153. fc:
  1154. fsType:
  1155. lun:
  1156. readOnly:
  1157. targetWWNs:
  1158. - [string]:
  1159. flexVolume:
  1160. driver:
  1161. fsType:
  1162. options:
  1163. [string]:
  1164. readOnly:
  1165. secretRef:
  1166. name:
  1167. flocker:
  1168. datasetName:
  1169. datasetUUID:
  1170. gcePersistentDisk:
  1171. fsType:
  1172. partition:
  1173. pdName:
  1174. readOnly:
  1175. gitRepo:
  1176. directory:
  1177. repository:
  1178. revision:
  1179. glusterfs:
  1180. endpoints:
  1181. path:
  1182. readOnly:
  1183. hostPath:
  1184. path:
  1185. iscsi:
  1186. chapAuthDiscovery:
  1187. chapAuthSession:
  1188. fsType:
  1189. iqn:
  1190. iscsiInterface:
  1191. lun:
  1192. portals:
  1193. - [string]:
  1194. readOnly:
  1195. secretRef:
  1196. name:
  1197. targetPortal:
  1198. name:
  1199. nfs:
  1200. path:
  1201. readOnly:
  1202. server:
  1203. persistentVolumeClaim:
  1204. claimName:
  1205. readOnly:
  1206. photonPersistentDisk:
  1207. fsType:
  1208. pdID:
  1209. portworxVolume:
  1210. fsType:
  1211. readOnly:
  1212. volumeID:
  1213. projected:
  1214. defaultMode:
  1215. sources:
  1216. - configMap:
  1217. - items:
  1218. - - key:
  1219. mode:
  1220. path:
  1221. name:
  1222. optional:
  1223. downwardAPI:
  1224. items:
  1225. - fieldRef:
  1226. - apiVersion:
  1227. fieldPath:
  1228. mode:
  1229. path:
  1230. resourceFieldRef:
  1231. containerName:
  1232. divisor:
  1233. resource:
  1234. secret:
  1235. items:
  1236. - key:
  1237. mode:
  1238. path:
  1239. name:
  1240. optional:
  1241. quobyte:
  1242. group:
  1243. readOnly:
  1244. registry:
  1245. user:
  1246. volume:
  1247. rbd:
  1248. fsType:
  1249. image:
  1250. keyring:
  1251. monitors:
  1252. - [string]:
  1253. pool:
  1254. readOnly:
  1255. secretRef:
  1256. name:
  1257. user:
  1258. scaleIO:
  1259. fsType:
  1260. gateway:
  1261. protectionDomain:
  1262. readOnly:
  1263. secretRef:
  1264. name:
  1265. sslEnabled:
  1266. storageMode:
  1267. storagePool:
  1268. system:
  1269. volumeName:
  1270. secret:
  1271. defaultMode:
  1272. items:
  1273. - key:
  1274. mode:
  1275. path:
  1276. optional:
  1277. secretName:
  1278. storageos:
  1279. fsType:
  1280. readOnly:
  1281. secretRef:
  1282. name:
  1283. volumeName:
  1284. volumeNamespace:
  1285. vsphereVolume:
  1286. fsType:
  1287. storagePolicyID:
  1288. storagePolicyName:
  1289. volumePath:

Operations

Create a PodSecurityPolicyReview

Create a PodSecurityPolicyReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.PodSecurityPolicyReview

Query parameters

ParameterDescription

pretty

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

Responses

HTTP CodeSchema

200 OK

v1.PodSecurityPolicyReview

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf

Create a PodSecurityPolicyReview in a namespace

Create a PodSecurityPolicyReview

HTTP request

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

HTTP body

ParameterSchema

body

v1.PodSecurityPolicyReview

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

401 Unauthorized

Consumes

  • */*

Produces

  • application/json

  • application/yaml

  • application/vnd.kubernetes.protobuf