We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For kubernetes v1.16 server, can deploy fabric node successfully.
Can not deploy fabric node on kubernetes 1.16 later version.
HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Thu, 24 Oct 2019 08:27:21 GMT', 'Content-Length': '222'}) HTTP response body: { "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message": "the server could not find the requested resource", "reason": "NotFound", "details": { }, "code": 404 } Traceback (most recent call last): File "main.py", line 9, in <module> create_node() File "/app/operations/create_node.py", line 161, in create_node _create_fabric_node() File "/app/operations/create_node.py", line 119, in _create_fabric_node k8s_client.create_deployment(AGENT_ID, **deployment) File "/app/utils/client.py", line 183, in create_deployment raise e File "/app/utils/client.py", line 179, in create_deployment namespace=namespace, body=body, pretty="true" File "/usr/local/lib/python3.6/site-packages/kubernetes/client/apis/extensions_v1beta1_api.py", line 175, in create_namespaced_deployment (data) = self.create_namespaced_deployment_with_http_info(namespace, body, **kwargs) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/apis/extensions_v1beta1_api.py", line 266, in create_namespaced_deployment_with_http_info collection_formats=collection_formats) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 334, in call_api _return_http_data_only, collection_formats, _preload_content, _request_timeout) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 168, in __call_api _request_timeout=_request_timeout) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/api_client.py", line 377, in request body=body) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/rest.py", line 266, in POST body=body) File "/usr/local/lib/python3.6/site-packages/kubernetes/client/rest.py", line 222, in request raise ApiException(http_resp=r) kubernetes.client.rest.ApiException: (404) Reason: Not Found HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Thu, 24 Oct 2019 08:27:21 GMT', 'Content-Length': '222'}) HTTP response body: { "kind": "Status", "apiVersion": "v1", "metadata": { }, "status": "Failure", "message": "the server could not find the requested resource", "reason": "NotFound", "details": { }, "code": 404 }
try get k8s server version before use it. and use different function and api version to create deployment.
The text was updated successfully, but these errors were encountered:
36ccbd9
Merge pull request #57 from hightall/issue52
7b9d5fd
[Fix #52] Fix k8s 1.16 later version not support.
No branches or pull requests
Expected Behavior
For kubernetes v1.16 server, can deploy fabric node successfully.
Current Behavior
Can not deploy fabric node on kubernetes 1.16 later version.
Possible Solution
try get k8s server version before use it. and use different function and api version to create deployment.
Steps to Reproduce
Context (Environment)
Detailed Description
Possible Implementation
The text was updated successfully, but these errors were encountered: