Comments (6)
@robinbraemer What Kubernetes version are you running and are you using the CSI driver or the native driver?
from cluster-operator.
I have cluster.csi.enable
enabled
I've added k8s version output to the main post
from cluster-operator.
@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.
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.
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.
Sorry, I misunderstood something. Closing
from cluster-operator.
Related Issues (20)
- [Kubernetes][KubeSpray] Error: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"storageos\": executable file not found in $PATH": unknown HOT 6
- [Kubernetes][KubeSpray] MountVolume.SetUp failed for volume "pvc-371a14b0-8426-4ce9-86f5-abe83e59743b" : exit status 5 HOT 10
- Expand PersistentVolumes in k8s HOT 1
- storageos operator missing pods/log permission
- Missing properties from CR
- Feature Request: use a storage class for data volume instead of host dir HOT 2
- Error on creation of PVC HOT 4
- Cluster operator UI broken on OpenShift 4.2 - "Invariant Violation" HOT 6
- error retrieving resource lock on k8s 1.17.0 HOT 1
- "node has no NodeID annotation" when attaching a volume HOT 9
- StorageOS 2 and OKD 4.4 volumes created after installation not visible in dashboard and not spread across nodes HOT 1
- pod with storageos disk recreates about 5 minutes. HOT 1
- [FEATURE] UI show volumes for all namespaces HOT 1
- Problem with AKS storage HOT 3
- When trying to deploy, gcr.io/google-containers/kube-scheduler:v1.18.8 is not found and install can';t complete HOT 5
- Node metrics in v2 HOT 1
- Node containers can't connect to ETCD HOT 7
- PVC attach/mount failed - csi.storageos.com not found HOT 7
- Operator projects using the removed APIs in k8s 1.22 requires changes. HOT 10
- storageos-csi-helper pod on CrashLoopBackOff
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cluster-operator.