您当前的位置: 首页 >  kubernetes
  • 0浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Kubernetes 小白学习笔记(15)--k8s集群路线-kubectl命令详解

软件工程小施同学 发布时间:2020-10-18 16:16:56 ,浏览量:0

 

 

 

apiVersion: apps/v1
kind: Deployment
metadata:
  # Unique key of the Deployment instance
  name: deployment-example
spec:
  # 3 Pods should exist at all times.
  replicas: 2
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        # Apply this label to pods and default
        # the Deployment label selector to this value
        app: nginx
    spec:
      containers:
      - name: nginx
        # Run this image
        image: nginx:1.10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

内容来自:

https://coding.imooc.com/class/284.html

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.5613s