您好,欢迎来到12图资源库!分享精神,快乐你我!我们只是素材的搬运工!!
  • 首 页
  • 当前位置:首页 > 开发 > WEB开发 >
    Kubernetes资源清单篇:如何创立资源?(3)
    时间:2020-11-23 08:59 来源:网络整理 作者:网络 浏览:收藏 挑错 推荐 打印

         requests to. Cannot be updated. In CamelCase. More info: 

         https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds 

     

       metadata  <Object> 

         Standard object's metadata. More info: 

         https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata 

     

       spec  <Object> 

         Specification of the desired behavior of the pod. More info: 

         https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status 

     

       status  <Object> 

         Most recently observed status of the pod. This data may not be up to date

         Populated by the system. Read-only. More info: 

         https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status 

    查看属性阐明,运用如下命令,如:查看pod.spec.containers

    [xcbeyond@bogon ~]$ kubectl explain pod.spec.containers 

    KIND:     Pod 

    VERSION:  v1 

     

    RESOURCE: containers <[]Object> 

     

    DESCRIPTION: 

         List of containers belonging to the pod. Containers cannot currently be 

         added or removed. There must be at least one container in a Pod. Cannot be 

         updated. 

     

         A single application container that you want to run within a pod. 

     

    FIELDS: 

       args  <[]string> 

         Arguments to the entrypoint. The docker image's CMD is used if this is not 

         provided. Variable references $(VAR_NAME) are expanded using the 

         container's environment. If a variable cannot be resolved, the reference in 

         the input string will be unchanged. The $(VAR_NAME) syntax can be escaped 

         with a double $$, ie: $$(VAR_NAME). Escaped references will never be 

    (责任编辑:admin)