配置映射 覆盖一个文件

volumeMounts:

            - mountPath: /etc/nginx/conf.d/dev-server-pem.pem

              name: volume-1590038841993

              subPath: dev-server-pem.pem

            - mountPath: /etc/nginx/conf.d/dev-server-key.key

              name: volume-1590038728849

              subPath: dev-server-key.key

            - mountPath: /etc/localtime

              name: volume-localtime

      dnsPolicy: ClusterFirst

      imagePullSecrets:

        - name: pull-image

      restartPolicy: Always

      schedulerName: default-scheduler

      securityContext: {}

      terminationGracePeriodSeconds: 30

      volumes:

        - configMap:

            defaultMode: 420

            name: dev-server-key

          name: volume-1590038728849

        - configMap:

            defaultMode: 420

            name: dev-server-pem

          name: volume-1590038841993

        - hostPath:

            path: /etc/localtime

            type: ''

          name: volume-localtime

你可能感兴趣的:(配置映射 覆盖一个文件)