Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod creation stuck when used more than one mounted volumes #56

Open
maximzhemerenko opened this issue Jul 10, 2020 · 3 comments
Open

Pod creation stuck when used more than one mounted volumes #56

maximzhemerenko opened this issue Jul 10, 2020 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@maximzhemerenko
Copy link

Hi, thank you for this amazing repo! I use this driver in my projects and it very helps me.

But I noticed the one problem: if I use more than one gcs volumes my pod is never started, stucks in the creating state and I see the status message say that there are unmourned volume (one of two). When I use one of any volume - everything is good. When I use one volume in different pods - it working too. But only not two at the same time.

Could you help me please with this problem?

@ofek
Copy link
Owner

ofek commented Jul 11, 2020

Hello! Can you show yaml?

@maximzhemerenko
Copy link
Author

maximzhemerenko commented Jul 11, 2020

apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ include "sync1to1.fullname" . }}-backend
  labels:
    {{- include "sync1to1.labels" . | nindent 4 }}
spec:
  replicas: {{ .Values.replicas.backend }}
  selector:
    matchLabels:
      {{- include "sync1to1.selectorLabels" . | nindent 6 }}
      app.sync1to1.com/app: backend
  template:
    metadata:
      labels:
        {{- include "sync1to1.labels" . | nindent 8 }}
        app.sync1to1.com/app: backend
    spec:
      containers:
        - name: {{ .Chart.Name }}
          image: {{ include "sync1to1.images.backend" . }}
          ports:
            - containerPort: 80
         
          volumeMounts:
          - name: gcs
            mountPath: /data/files
      imagePullSecrets:
        - name: {{ include "sync1to1.fullname" . }}-dockerconfigjson
      volumes:
        - name: gcs
          persistentVolumeClaim:
            claimName: {{ include "sync1to1.fullname" . }}-files

@maximzhemerenko
Copy link
Author

I use the easiest configuration, and if I mound one volume it works) but not two. I tested, if I use not gcs volumes (Kubernetes default storage class) 2 volume mount works too

@maennchen maennchen added bug Something isn't working help wanted Extra attention is needed labels Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants