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

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Kubernetes 小白学习笔记(23)--kubernetes的运维-管理Pod

软件工程小施同学 发布时间:2020-10-22 20:24:27 ,浏览量:0

 

 

得到某个pod的yaml文件信息

 

通过更新yaml文件更新pod

nginx-deployment-limit.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  # Unique key of the Deployment instance
  name: deployment-example
spec:
  # 3 Pods should exist at all times.
  replicas: 1
  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

 

通过edit编辑pod信息

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

内容来自:

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

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

微信扫码登录

0.1384s