Skip to main content

Object

  • apiVersion
  • kind
  • metadata
  • spec
  • RFC 1123 Label Names
    • 63
    • [a-z0-9]([-a-z0-9]*[a-z0-9])?
  • RFC 1035
    • 63
    • [a-z]([-a-z0-9]*[a-z0-9])?

metav1.Conditions

type:
status: True # True,Flase,Unknown
# .metadata.generation
observedGeneration:
lastTransitionTime:
# programmatic identifier
reason:
# human readable message
message:

spec+status

  • spec 期望状态
  • status 当前状态
    • 由 controller 维护
      • reconsiliation 调和
  • kind+apiVersion 定位 Schema
kubectl api-resources