首页 > 社交 > 科普中国

云原生(十四)

常驻编辑 科普中国 2022-08-16 容器   钩子   字段   函数   仓库   状态   策略   事件   程序   资源
securityContext Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/676拜客生活常识网

startupProbe StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes676拜客生活常识网

stdin Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.676拜客生活常识网

stdinOnce Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false676拜客生活常识网

terminationMessagePath Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.676拜客生活常识网

terminationMessagePolicy Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.676拜客生活常识网

tty Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.676拜客生活常识网

volumeDevices <[]Object> volumeDevices is the list of block devices to be used by the container.676拜客生活常识网

volumeMounts <[]Object> Pod volumes to mount into the container's filesystem. Cannot be updated.676拜客生活常识网

workingDir 指定进容器的工作目录676拜客生活常识网


676拜客生活常识网

二、镜像

在 Kubernetes 的 Pod 中使用容器镜像之前,我们必须将其推送到一个镜像仓库(或者使用仓库中已经有的容器镜像)。在 Kubernetes 的 Pod 定义中定义容器时,必须指定容器所使用的镜像,容器中的 image 字段支持与 docker 命令一样的语法,包括私有镜像仓库和标签。676拜客生活常识网


676拜客生活常识网

676拜客生活常识网


676拜客生活常识网

如果使用

相关阅读:

  • 米如何保存(储存大米最好的容器)
  • docker网络
  • 为应用赋能!博云容器云产品族正式发布
  • 加载、读取资源的方式
  • XaaS最全介绍(按24字母合集):AaaS、BaaS、CaaS、DaaS、I
  • Linux
  • 腌糖蒜,单放糖和醋不正宗,80岁姥姥教3招,糖蒜不蔫不坏更
  • 前端开源之PDF在线浏览组件PDFObject.js
  • 安琪酵母拟启动控股子公司宏裕包材在北交所上市的前期
  • 既是“穷人食物”也受总理青睐,酸菜轻松俘获德国人的胃
    • 网站地图 |
    • 声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。文章内容仅供参考,不做权威认证,如若验证其真实性,请咨询相关权威专业人士。