Here is my StorageClass:
kind: StorageClass
apiVersion: storage.k8s.io/v1beta1
metadata:
name: standard
namespace: default
annotations:
storageclass.beta.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
zone: us-west-2a
Here is my PersistentVolumeClaim:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: hadoop-data-01
namespace: default
annotations:
volume.beta.kubernetes.io/storage-class: "standard"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
And here is the Pod I attempt to deploy to use the PVC:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hadoop-datanode-01
spec:
replicas: 1
template:
metadata:
labels:
app: hadoop-datanode-01
spec:
hostname: hadoop-datanode-01
volumes:
- name: hadoop-data-01
persistentVolumeClaim:
claimName: hadoop-data-01
containers:
- name: hadoop-datanode-01
image: uhopper/hadoop-datanode:2.7.2
env:
- name: CORE_CONF_fs_defaultFS
value: hdfs://hadoop-namenode:8020
ports:
- containerPort: 50075
name: fs
volumeMounts:
- mountPath: /hadoop/dfs/data
name: hadoop-data-01
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
Really appreciate your help!
Thanks! I completely spaced on checking that. Found the reason in the output and fixed issue. Works now.
Really appreciate your help!
--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Sure. Turns out the node was trying to tag the provisioned EBS volume but was lacking the corresponding AWS role permissions to do that. Once I updated the role with the right permissions, everything worked.