zoukankan      html  css  js  c++  java
  • k8s-yaml格式的pod定义文件完整内容

    apiVersion: v1
    kind: Pod
    metadata:
      name: string
      namespase: string
      labels:
        - name: string
      annotations:
        - name: string
    spec:
      containers:
      - name: string
        image: string
        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
        livenessProde:
          exec:
            command: [string]
          httpGet:
            path: string
            port: number
            host: string
            scheme: string
            httpHeaders:
            - name: string
              value: string
          tcpSocket:
            port: number
          initialDelaySeconds: 0
          timeoutSeconds: 0
          periodSeconds: 0
          successThreshold: 0
          failureThreshold: 0
          securityContext:
            privileged: false
          restartPolicy: [Always | Never | OnFaulure]
          nodeSelector: object
          imagePullSecrets:
          - name: string
          hostNetwork: false
          volumes:
          - name: string
            emptyDir: {}
            hostPath:
              path: string
            secret:
              secretName: string
              items:
              - key: string
                path: string
            configMap:
              name: string
              items:
              - key: string
                path: string
  • 相关阅读:
    使用Doxygen生成net帮助文档
    Mac OSX 下配置 LNMP开发环境
    vue相关网站资源收集
    AJAX 相关笔记
    toLocaleDateString()
    前端关于图片的优化
    css 水平垂直居中的方法总结
    Mac下安装Twig模版引擎的方法
    gulp基础使用总结
    js中元素操作的有关内容与对比
  • 原文地址:https://www.cnblogs.com/sqbk/p/14977356.html
Copyright © 2011-2022 走看看