mintel / dex-k8s-authenticator

A Kubernetes Dex Client Authenticator
MIT License
371 stars 146 forks source link

creating migration table: unable to open database file #105

Closed devopsdymyr closed 5 years ago

devopsdymyr commented 5 years ago

I have tried to create Dex in my aws kops kubernetes cluster with reference documentation k8s-auth-a81f59d4dff6 Issue from the step helm install -n dex --namespace kube-system --values values-dex.yml charts/dex Screenshot from 2019-09-15 15-52-50 Screenshot from 2019-09-15 15-53-51

nabadger commented 5 years ago

@devopsdymyr see https://github.com/dexidp/dex/blob/master/Documentation/storage.md#configuration

This particular issue looks like a mis-configuration - it's actually an error from dex (not dex-k8s-auth).

I would not recommend using sqlite for storage - it's fine for devel but not for production (since you can't load-balance at that point).

If you are running dex inside a kubernetes cluster, I would recommend using

storage:
  type: kubernetes
  config:
    inCluster: true

If you want to continue with the sqlite solution, you would need to modify the dex helm chart and mount a volume to allow for /var/dex.db to be created.

devopsdymyr commented 5 years ago

Thanks @nabadger can you provide me any documentation for setup dex in kops aws kubernetes with github integration my email: devopsdymyr@gmail.com

nabadger commented 5 years ago

@devopsdymyr it's not something I've done sorry (I don't deploy on AWS or use kops).

I would suggest that blog you linked is pretty good - but would just try using the inCluster solution (that will at least fix your current issue).

devopsdymyr commented 5 years ago

@nabadger Thanks let me try that

devopsdymyr commented 5 years ago

@nabadger this issue is solved i have another issue please have look ticket 106

Shoaib0023 commented 4 years ago

hey @nabadger if I want to continue with sqlite solution how will I proceed , can you please guide