<p>I am binding persistentvolumeclaim into my Job's pod, it shows:</p>
<pre><code>persistentvolumeclaim &quot;flink-pv-claim-11&quot; is being deleted
</code></pre>
<p>but the persistent volume claim is exists and binded success.</p>
<p><a href="https://i.stack.imgur.com/afhEJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/afhEJ.png" alt="s " /></a></p>
<p>and the pod has no log output. what should I do to fix this? this is the job yaml:</p>
<pre><code>apiVersion: batch/v1
kind: Job
metadata:
  name: flink-jobmanager-1.11
spec:
  template:
    metadata:
      labels:
        app: flink
        component: jobmanager
    spec:
      restartPolicy: OnFailure
      containers:
        - name: jobmanager
          image: flink:1.11.0-scala_2.11
          env:
          args: [&quot;standalone-job&quot;, &quot;--job-classname&quot;, &quot;com.job.ClassName&quot;, &lt;optional arguments&gt;, &lt;job arguments&gt;] # optional arguments: [&quot;--job-id&quot;, &quot;&lt;job id&gt;&quot;, &quot;--fromSavepoint&quot;, &quot;/path/to/savepoint&quot;, &quot;--allowNonRestoredState&quot;]
          ports:
            - containerPort: 6123
              name: rpc
            - containerPort: 6124
              name: blob-server
            - containerPort: 8081
              name: webui
          livenessProbe:
            tcpSocket:
              port: 6123
            initialDelaySeconds: 30
            periodSeconds: 60
          volumeMounts:
            - name: flink-config-volume
              mountPath: /opt/flink/conf
            - name: job-artifacts-volume
              mountPath: /opt/flink/usrlib
            - name: job-artifacts-volume
              mountPath: /opt/flink/data/job-artifacts
          securityContext:
            runAsUser: 9999  # refers to user _flink_ from official flink image, change if necessary
      volumes:
        - name: flink-config-volume
          configMap:
            name: flink-1.11-config
            items:
              - key: flink-conf.yaml
                path: flink-conf.yaml
              - key: log4j-console.properties
                path: log4j-console.properties
        - name: job-artifacts-volume
          persistentVolumeClaim:
            claimName: flink-pv-claim-11
</code></pre>

Dolphin
<p>Make sure the job tied to this PVC is deleted. If any other job/pods are running and using this pvc then you can not delete the PVC until you delete job/pod.</p>
<p>To see which resources are in use at the moment from the PVC try to run:</p>
<p>kubectl get pods --all-namespaces -o=json | jq -c \ '.items[] | {name: .metadata.name, namespace: .metadata.namespace, claimName:.spec.volumes[] | select( has (&quot;persistentVolumeClaim&quot;) ).persistentVolumeClaim.claimName }'</p>
