pelias-deprecated / kubernetes

Tools for running Pelias services on kubernetes
MIT License
54 stars 47 forks source link

Interpolation service not coming up for me #121

Open srflaxu40 opened 4 years ago

srflaxu40 commented 4 years ago

Interpolation service not coming up for me...

I just get crashloopbackoff not long after it tries to attach the persistent volume claim:

  Type     Reason                  Age   From                                               Message
  ----     ------                  ----  ----                                               -------
  Normal   Scheduled               24s   default-scheduler                                  Successfully assigned pelias/pelias-interpolation-74f4d87f79-58ztw to ip-10-1-12-71.us-east-2.compute.internal
  Warning  FailedAttachVolume      24s   attachdetach-controller                            Multi-Attach error for volume "pvc-4b24c95a-30ae-11ea-bfa5-02a93554a16a" Volume is already exclusively attached to one node and can't be attached to another
  Normal   SuccessfulAttachVolume  9s    attachdetach-controller                            AttachVolume.Attach succeeded for volume "pvc-4b24c95a-30ae-11ea-bfa5-02a93554a16a"
  Normal   Pulling                 4s    kubelet, ip-10-1-12-71.us-east-2.compute.internal  pulling image "pelias/interpolation:latest"
jknepper@Johns-MacBook-Pro [~/ops-tools/build-files/pelias]kubectl logs -f pelias-interpolation-74f4d87f79-58ztw  -n pelias

Error from server (BadRequest): container "pelias-interpolation" in pod "pelias-interpolation-74f4d87f79-58ztw" is waiting to start: PodInitializing
jknepper@Johns-MacBook-Pro [~/ops-tools/build-files/pelias]
srflaxu40 commented 4 years ago

I'm getting the same issue. Do I have to import all data at the same time? It seems no polyline features are being returned for us:

  1 {
  2   "esclient": {
  3     "apiVersion": "5.6",
  4     "keepAlive": false,
  5     "requestTimeout": "120000",
  6     "hosts": [{
  7       "host": "127.0.0.1",
  8       "port": 9200
  9     }]
 10   },
 11   "schema": {
 12     "indexName": "pelias"
 13   },
 14   "imports": {
 15     "polyline": {
 16       "datapath": "/Users/jknepper/polylines/",
 17       "files": [ "new-york-latest.osm.polylines" ]
 18     }
 19   }
 20 }
 21 
 22 

Data gets imported but then nothing is returned from openstreetmap or interpolation. It seems interpolation service isn't hit?