Giter Site home page Giter Site logo

Comments (6)

avestuk avatar avestuk commented on May 28, 2024

@robinbraemer What Kubernetes version are you running and are you using the CSI driver or the native driver?

from cluster-operator.

robinbraemer avatar robinbraemer commented on May 28, 2024

I have cluster.csi.enable enabled

I've added k8s version output to the main post

from cluster-operator.

avestuk avatar avestuk commented on May 28, 2024

@robinbraemer Thanks. Could you share your volume definition as well please? I'm a little thrown by the way the volume is being referenced in your pod definition. Typically volumes would be created as a persistentVolumeClaim and referenced that way.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-1
  annotations:
    volume.beta.kubernetes.io/storage-class: fast
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 5Gi
---
apiVersion: v1
kind: Pod
metadata:
  name: d1
spec:
  terminationGracePeriodSeconds: 0
  containers:
    - name: debian
      image: debian:9-slim
      command: ["/bin/sleep"]
      args: [ "3600" ]
      volumeMounts:
        - mountPath: /mnt
          name: v1
  volumes:
    - name: v1
      persistentVolumeClaim:
        claimName: pvc-1

The storageos secret doesn't need to be referenced when using CSI as Kubernetes-StorageOS communication takes place using a socket rather than the StorageOS API.

from cluster-operator.

robinbraemer avatar robinbraemer commented on May 28, 2024
storageos volume inspect myserver/storageos-volume-test
[
    {
        "id": "e9b35e50-c4ed-437f-0788-bafb00db5c34",
        "inode": 166852,
        "name": "storageos-volume-test",
        "size": 10,
        "pool": "default",
        "fsType": "ext4",
        "description": "",
        "labels": {},
        "namespace": "myserver",
        "nodeSelector": "",
        "master": {
            "id": "3f031683-07eb-4685-aaeb-c1d36cc882ba",
            "inode": 215525,
            "node": "f0421320-47d7-a151-ebcc-772d3b32338a",
            "nodeName": "node-2",
            "health": "healthy",
            "status": "active",
            "createdAt": "2019-06-11T12:11:29.792952171Z"
        },
        "mounted": true,
        "mountDevice": "/var/lib/kubelet/plugins/kubernetes.io~storageos/devices/e9b35e50-c4ed-437f-0788-bafb00db5c34",
        "mountpoint": "/var/lib/kubelet/plugins/kubernetes.io~storageos/mounts/vol.myserver.storageos-volume-test",
        "mountedAt": "2019-06-11T12:11:40.280076862Z",
        "mountedBy": "node-2",
        "replicas": [],
        "health": "healthy",
        "status": "active",
        "statusMessage": "",
        "mkfsDone": true,
        "mkfsDoneAt": "2019-06-11T12:11:40.280077636Z",
        "createdAt": "2019-06-11T12:11:29.773546695Z",
        "createdBy": "storageos"
    }
]

When I'm not referencing the secret in the pod the pod cannot start

FailedMount |
MountVolume.SetUp failed for volume "vol" : API error (Unauthenticated access of secure endpoint, please retry after authentication): Invalid username/password

from cluster-operator.

avestuk avatar avestuk commented on May 28, 2024

Hi @robinbraemer sorry could you share the Kubernetes volume definition?

Also could you show me what StorageOS pods you've got running? The API is only used when the native driver is used. CSI uses a socket for Kubernetes-StorageOS communication so the secret is only required to create a username/password for the StorageOS GUI/CLI.

from cluster-operator.

robinbraemer avatar robinbraemer commented on May 28, 2024

Sorry, I misunderstood something. Closing

from cluster-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.