1.题目概述

  • 创建名为kucc1的pod
  • pod中运行nginx和redis两个实例

    2.解析

  • 拷贝官文yaml,多追加一个镜像即可

    3.参考答案

    1. apiVersion: v1
    2. kind: Pod
    3. metadata:
    4. name: kucc1
    5. spec:
    6. containers:
    7. - name: nginx
    8. image: nginx
    9. - name: redis
    10. image: redis