Closed wydwww closed 6 years ago
Thank you for reporting this issue!
This looks like the k8s cluster's dynamic provisioner isn't working? Are you able to get dynamic provisioning working with a simple deployment / pod?
@yuvipanda Thanks. I did some research about pv, pvc and storage class and solved it now.
I set the default local storage class, and let PV use it, then PVC hub-db-dir will work fine. Repeat this procedure on all worker nodes because local storage class requires VolumeScheduling feature gate to be enabled.
Hi Wydwww, are you able to show your solution? Fighting through the same issues after installing with kubeadm.
@kalaytan As I said above, there was no available PV for this PVC. I manually set the storage to enable PV.
Can you please specify the steps to solve this issue?, thank you in advance
@wydwww shouldn't the Storage Class provision the PVs for the PVC though?
gp2
On Thu, Feb 27, 2020 at 5:43 PM ndjhartman notifications@github.com wrote:
@wydwww https://github.com/wydwww shouldn't the Storage Class provision the PVs for the PVC though?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/553?email_source=notifications&email_token=ABFANMQGFKJLTVTEZ2NCQRDRFA6XJA5CNFSM4ETGBEV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENGH4DA#issuecomment-592215564, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFANMTJDJFREKQESMHWF7LRFA6XJANCNFSM4ETGBEVQ .
?
Sorry. Hit send to fast. And yea it should. But you must have a default class set to something. In the case of aws make it a gp2 class on the aws ebs driver. I’ve got this all setup in ansible if you want to see.
On Thu, Feb 27, 2020 at 6:09 PM ndjhartman notifications@github.com wrote:
?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/553?email_source=notifications&email_token=ABFANMSLJPIRLBLMJU6YL63RFBB3TA5CNFSM4ETGBEV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENGKA7I#issuecomment-592224381, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFANMRDGSZNRECXKQ54LULRFBB3TANCNFSM4ETGBEVQ .
Right, I have the aws-ebs storage class as default.
Storage Class:
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: aws-ebs
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
fsType: ext4
DaemonSet:
volumeClaimTemplates:
- metadata:
name: data
labels:
app: elasticsearch
spec:
accessModes: [ "ReadWriteOnce" ]
storageClassName: aws-ebs
resources:
requests:
storage: 1G
And yeah, if you wouldn't mind the ansible setup could be useful to compare.
PV use it,
how did u do that?? can u tell how exact u did ??
Hi all,
I tried to deployed JupyterHub on Kubernetes according to document on my own 2-node cluster.
Kubernetes version
And my config.yaml is:
Contents of
config.yaml
At first I met the problem same as https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/182#issuecomment-347024506 Because I didn't use any cloud provider, I tried to solve this by add local storage class according to the doc of zero-to-jupyterhub-k8s and doc of k8s storage class. That's how I modified my config.yaml file. I enabled feature gates by adding
to
/etc/systemd/system/kubelet.service.d/10-kubeadm.conf
and daemon-reload and restart kubelet on both of my nodes.Storage class
And now the error is:
Error of pvc
I guess there is something wrong with my local storage setup, can you take a look for me? Thanks!