同一台机器上的 Kubernetes api 服务器和另一个 http 服务器

问题描述 投票:0回答:0

我正在使用 kubernetes python 客户端,还需要在同一台机器上运行

aiohttp
服务器,以便处理带有 http 请求的高级操作。运行
aiohttp
服务器后,python API 停止工作可能是因为连接请求不再通过,即使
aoihttp
在不同的端口上运行。是否可以并行运行两个服务器? Kubernetes API 请求仅在本地主机内需要。

urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=80): Max retries exceeded with url: /api/v1/namespaces/default/configmaps (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff69713b5b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
kubernetes aiohttp httpserver microk8s
© www.soinside.com 2019 - 2024. All rights reserved.