Failed to get data in Kubernetes #81
-
Hi OPAL team, I have succeed Get started with OPAL playground (docker compose) tutorial for docker-compose file, now I am trying to make it work on Kubernetes. Here is my pull request. The server and client all can succeed running. docker-composer log (succeed) opal_server_1 | 2021-06-23T17:23:29.132068+0000 |opal_common.git.repo_watcher | INFO | Found new commits: old HEAD was '328e476fbbe46714a788f8176018415ca9944265', new HEAD is '2c6758f57cea55bd04617b28ecd63f464358dfec'
opal_server_1 | 2021-06-23T17:23:29.144560+0000 |opal_server.policy.watcher.callbacks | INFO | Publishing policy update, directories: ['.']
opal_client_1 | 2021-06-23T17:23:29.192895+0000 |opal_client.policy.updater | INFO | Received policy update: affected directories=['.'], new commit hash='2c6758f57cea55bd04617b28ecd63f464358dfec'
opal_client_1 | 2021-06-23T17:23:29.193100+0000 |opal_client.policy.updater | INFO | Refetching policy code (delta bundle), base hash: '328e476fbbe46714a788f8176018415ca9944265'
opal_server_1 | 2021-06-23T17:23:29.219159+0000 |uvicorn.protocols.http.httptools_impl | INFO | 172.20.0.4:38970 - "GET /policy?path=.&base_hash=328e476fbbe46714a788f8176018415ca9944265 HTTP/1.1" 200
opal_client_1 | 2021-06-23T17:23:29.220729+0000 |opal_client.policy.updater | INFO | got policy bundle (delta): '328e476fbbe46714a788f8176018415ca9944265' -> '2c6758f57cea55bd04617b28ecd63f464358dfec'
opal_server_1 | 2021-06-23T17:23:59.162523+0000 |opal_common.git.repo_watcher | INFO | Pulling changes from remote: 'origin'
opal_server_1 | 2021-06-23T17:24:00.253751+0000 |opal_common.git.repo_watcher | INFO | No new commits: HEAD is at '2c6758f57cea55bd04617b28ecd63f464358dfec' Kubernetes log (not sure if it really succeed) 2021-06-23T17:23:36.405133+0000 |opal_common.git.repo_watcher | INFO | Found new commits: old HEAD was '328e476fbbe46714a788f8176018415ca9944265', new HEAD is '2c6758f57cea55bd04617b28ecd63f464358dfec'
2021-06-23T17:23:36.418702+0000 |opal_server.policy.watcher.callbacks | INFO | Publishing policy update, directories: ['.']
2021-06-23T17:24:06.433024+0000 |opal_common.git.repo_watcher | INFO | Pulling changes from remote: 'origin'
2021-06-23T17:24:07.308950+0000 |opal_common.git.repo_watcher | INFO | No new commits: HEAD is at '2c6758f57cea55bd04617b28ecd63f464358dfec' When I hit the endpoint Would be appreciate for any help. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
Hi @hongbo-miao, from the log it looks like OPAL server and client on your kubernetes did not successfully connect. Also - we do have a helm chart, maybe you can try to see if it works for you. I see now that it uses a bit older version - 0.1.5 - i am updating the chart to latest OPAL version now, but between 0.1.5 and 0.1.8 there were no major changes, and current helm chart should work regardless, so maybe you should try it. |
Beta Was this translation helpful? Give feedback.
Hi @hongbo-miao, from the log it looks like OPAL server and client on your kubernetes did not successfully connect.
Can you please provide the full log for both server and client?
Also - we do have a helm chart, maybe you can try to see if it works for you.
I see now that it uses a bit older version - 0.1.5 - i am updating the chart to latest OPAL version now, but between 0.1.5 and 0.1.8 there were no major changes, and current helm chart should work regardless, so maybe you should try it.