Exactly the same here ... tried with PersistentVolume and 
PersistentVolumeClaims and had the same result

quinta-feira, 21 de Abril de 2016 às 23:36:47 UTC+1, Kevin Lingerfelt 
escreveu:
>
> Hey there,
>
> I'm trying to get a single Cassandra pod running in my GKE cluster with 
> data stored to a GCE persistent disk, and am running into some issues.
>
> I'm following the instruction here:
>
>
> https://github.com/kubernetes/kubernetes/blob/release-1.2/examples/cassandra/README.md
>
> And also referencing this previous thread on the topic:
>
> https://groups.google.com/d/topic/google-containers/fW44zEbtMXs/discussion
>
> I've created a persistent disk with:
>
> $ gcloud compute disks create --size=20GB --zone=us-central1-b 
> cassandra-data
>
> And I'm using the following RC config file:
>
> kind: ReplicationController
> apiVersion: v1
> metadata:
>   namespace: demo
>   name: cassandra
> spec:
>   replicas: 1
>   selector:
>     app: cassandra
>   template:
>     metadata:
>       labels:
>         app: cassandra
>     spec:
>       dnsPolicy: ClusterFirst
>       containers:
>       - name: cassandra
>         image: gcr.io/google-samples/cassandra:v8
>         env:
>         - name: MAX_HEAP_SIZE
>           value: 512M
>         - name: HEAP_NEWSIZE
>           value: 100M
>         - name: POD_NAMESPACE
>           valueFrom:
>             fieldRef:
>               fieldPath: metadata.namespace
>         ports:
>         - name: cql
>           containerPort: 9042
>         - name: thrift
>           containerPort: 9160
>         args:
>          - /run.sh
>         volumeMounts:
>         - name: cassandra-data
>           mountPath: /cassandra_data
>       volumes:
>       - name: cassandra-data
>         gcePersistentDisk:
>           pdName: cassandra-data
>           fsType: ext4
>
> That spawns a single pod, but the pod fails to start with the following 
> error:
>
> ERROR 22:17:48 Directory /cassandra_data/commitlog doesn't exist
> ERROR 22:17:48 Has no permission to create /cassandra_data/commitlog 
> directory
>
> It looks like the volume mounted /cassandra_data dir isn't available to 
> the cassandra container in which it is mounted.  Is there something about 
> my setup that seems incorrect?
>
> FWIW, I also tried to get this working using persistent volumes and 
> persistent volume claims, but ran into the same issue with that setup.  Any 
> pointers folks have would be appreciated.
>
> Thanks,
> Kevin
>

-- 
You received this message because you are subscribed to the Google Groups 
"Containers at Google" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-containers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to