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

StatefullSet error in GCP Kubernetes manifest #401

Open
krol3 opened this issue Jun 26, 2022 · 4 comments
Open

StatefullSet error in GCP Kubernetes manifest #401

krol3 opened this issue Jun 26, 2022 · 4 comments

Comments

@krol3
Copy link
Contributor

krol3 commented Jun 26, 2022

Description

on GKE im getting " Multi-Attach error for volume"
Solution: use node affinity so that statefulset and deployment land on same node.

we need to review the manifest to avoid these errors.

@grglzrv
Copy link
Contributor

grglzrv commented Sep 25, 2022

the same here but not with GCP, fixed by changing https://github.com/aquasecurity/postee/blob/main/deploy/helm/postee/values.yaml#L254 to ReadWriteMany. @simar7 why postee is needed to be sts, not deployment, is there any reason?

@AnaisUrlichs
Copy link

I am also getting multi-attach error on Digital Ocean
here are the events from the UI pod:

Events:
  Type     Reason              Age                    From                     Message
  ----     ------              ----                   ----                     -------
  Warning  FailedScheduling    6m48s                  default-scheduler        0/3 nodes are available: 3 persistentvolumeclaim "app-postee-db-app-postee-0" not found. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.
  Warning  FailedScheduling    6m46s                  default-scheduler        0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.
  Warning  FailedScheduling    6m44s                  default-scheduler        0/3 nodes are available: 3 pod has unbound immediate PersistentVolumeClaims. preemption: 0/3 nodes are available: 3 Preemption is not helpful for scheduling.
  Normal   Scheduled           6m40s                  default-scheduler        Successfully assigned postee/app-posteeui-57594694cb-7zv88 to pool-e49pvo8ea-75ssj
  Warning  FailedAttachVolume  6m30s                  attachdetach-controller  Multi-Attach error for volume "pvc-d6b1ea49-f949-4f86-8fc1-25f7e7bed317" Volume is already used by pod(s) app-postee-0
  Warning  FailedAttachVolume  6m25s                  attachdetach-controller  Multi-Attach error for volume "pvc-c4a9e5c5-199f-4cc1-b7f0-5dc62cef1f2c" Volume is already used by pod(s) app-postee-0
  Warning  FailedMount         2m23s (x2 over 4m37s)  kubelet                  Unable to attach or mount volumes: unmounted volumes=[postee-config postee-db], unattached volumes=[postee-config kube-api-access-f9zj6 postee-db]: timed out waiting for the condition
  Warning  FailedMount         8s                     kubelet                  Unable to attach or mount volumes: unmounted volumes=[postee-db postee-config], unattached volumes=[kube-api-access-f9zj6 postee-db postee-config]: timed out waiting for the condition

@AnaisUrlichs
Copy link

@grglzrv the workaround/change does not seem to work for me, the posttee-ui pod is now starting but the postee pod cannot start and has these errors in the logs

│ stream logs failed container "setting-db" in pod "app-postee-0" is waiting to start: PodInitializing for postee/ap │
│ stream logs failed container "setting-cfg" in pod "app-postee-0" is waiting to start: PodInitializing for postee/a │
│ stream logs failed container "postee" in pod "app-postee-0" is waiting to start: PodInitializing for postee/app-po │

kairi003 pushed a commit to kairi003/postee that referenced this issue Oct 18, 2022
@kmganna
Copy link

kmganna commented Mar 20, 2023

Facing a similar issue in AWS EKS.
Unable to start any pod.

Defaulted container "postee" out of: postee, setting-db (init), setting-cfg (init)
Error from server (BadRequest): container "postee" in pod "postee-0" is waiting to start: PodInitializing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants