您当前的位置: 首页 >  kubernetes

wespten

暂无认证

  • 1浏览

    0关注

    899博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Kubernetes Pod 资源调度详解

wespten 发布时间:2022-10-01 06:24:47 ,浏览量:1

一、Pod定义 1、Pod定义详解

YAML格式:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: string
  namespace: string
  labels:
    app: string
  annotations:
    - name: string
spec:
  containers:
    - name: string
    - image: nginx:1.15.2
      imagePullPolicy: [Always | Never | IfNotPresent]
      command: [string]
      args: [string]
      workingDir: string
      volumeMounts:
      - name: string
        mountPath: string
        readOnly: boolean
      ports:
      - name: string
        containerPort: int
        hostPort: int
        protocol: string
      env:
      - name: string
        value: string
      resources:
        limits:
          cpu: string
          memory: string
        requests:
          cpu: string
          memory: string
      livenessProbe:
        exec:
          command: [string]
        httpGet:
          path: string
          port: number
          host: string
          scheme: string
          httpHeaders:
关注
打赏
1665965058
查看更多评论
立即登录/注册

微信扫码登录

0.0390s