Docker Management Artifact-kubernetes-pod Chapter

Source: Internet
Author: User
Tags docker ps

The pod is a container group, so let's create a pod now, just like Dockerfile.

VI Nginx-pod.yaml (to pay great attention to the space, usually two spaces)

Add to:










Start pod

Kubectl create-f Nginx-pod.yaml

Use get Pods to view

650) this.width=650; "src=" Http:// "title=" 817cc777-d671-4aee-b74b-ca8300524af7.png "alt=" Wkiol1f7tn_rjaouaaaqwjcnxua018.png "/>

Kubectl describe pods Nginx

650) this.width=650; "src=" Http:// "title=" C4a5a133-d8be-415a-8814-ba65dd8ae4ce.png "alt=" Wkiom1f7ttxtygtcaabsvhdnr4y286.png "/>

View at minion end:

Docker PS (it will start a pod-infrastructure container first, and then in this machine to find whether there is an nginx image, not to download)

650) this.width=650; "src=" Http:// "title=" 2162c3c2-4073-43cb-b26a-66050973b254.png "alt=" Wkiol1f7t5ib_nfqaabcz7uewhg554.png "/>

More specific details about pod and YAML authoring and creating suggestions go to Google for information.

This article is from the "Linux" blog, so be sure to keep this source

Docker Management Artifact-kubernetes-pod Chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.