最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kubernetes - spark driver pod gets stuck at ContainerCreating state after be configured to use persisted volume for scratch spac

programmeradmin5浏览0评论

It was working well before adding the following change in the spark driver pod yaml specification to make driver pod use a PVC backed by externally provisioned storage for spilling files to a custom path:

spec:
  containers:
    env:
      - name: SPARK_LOCAL_DIRS
        value: /ephemeral
    volumeMounts:
      - name: spark-local-dir-1
        mountPath: /ephemeral
  volumes:
    - name: spark-local-dir-1
      persistentVolumeClaim:
        claimName: shared-persistence

Then the pod gets stuck at ContainerCreating state and there aren't any events or errors in kubectl describe pod. PVC shared-persistence is bound. One potential reason I can think of is that we also have ephemeral-storage definitions in the resources section:

containers:
    - resources:
        limits:
          cpu: '1'
          ephemeral-storage: 4Gi
          memory: 2457Mi
        requests:
          cpu: '1'
          ephemeral-storage: 500Mi
          memory: 2457Mi

Are they conflicting? It is difficult to remove the ephemeral-storage definitions due to some issues in our codebase so I would like to confirm first. Thanks.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论