Skip to content

mounting from Vault fails with "invalid role name" #217

@christian-2

Description

@christian-2

I am trying to get started with Secrets Store CSI Driver, Vault provider, and Vault. In my Vault, I have auth/approle/role/my-role defined; and in my Kubernetes, there is a SecretProviderClass with roleName: my-role.

Yet, the pod that references this SecretProviderClass currently cannot start (status: ContainerCreating); kubectl describe pod indicates the following error:

invalid role name "my-role" Warning FailedMount ... kubelet Unable to attach or mount volumes: 
unmounted volumes=[...], unattached volumes=[], failed to process volumes=[]: timed out waiting for the condition

What could cause the error invalid role name and how can I learn further details? I have found one reference, but it is probably unrelated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions