Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Kubernetes deployment pipeline using AWS CodePipeline #65

Closed
arun-gupta opened this issue Mar 9, 2018 · 2 comments
Closed

Kubernetes deployment pipeline using AWS CodePipeline #65

arun-gupta opened this issue Mar 9, 2018 · 2 comments
Labels
kubernetes pipeline Deployment pipeline
Milestone

Comments

@arun-gupta
Copy link
Contributor

arun-gupta commented Mar 9, 2018

Create a Kubernetes deployment pipeline using AWS CodePipeline

https://aws.amazon.com/blogs/devops/continuous-deployment-to-kubernetes-using-aws-codepipeline-aws-codecommit-aws-codebuild-amazon-ecr-and-aws-lambda/

@arun-gupta arun-gupta changed the title Kubernetes deployment pipeline using Codepipeline Kubernetes deployment pipeline using CodePipeline Mar 9, 2018
@arun-gupta arun-gupta added kubernetes pipeline Deployment pipeline labels Mar 10, 2018
@arun-gupta arun-gupta changed the title Kubernetes deployment pipeline using CodePipeline Kubernetes deployment pipeline using AWS CodePipeline Mar 31, 2018
@arun-gupta
Copy link
Contributor Author

Specific instructions are at https://github.com/aws-samples/aws-kube-codesuite

@arun-gupta
Copy link
Contributor Author

Followed the steps as listed at https://github.com/aws-samples/aws-kube-codesuite. Deploy stage is giving the following error:

HTTPSConnectionPool(host='api.api-cluster-k8s-local-ohpk1a-982509592.us-west-2.elb.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb86304d2e8>: Failed to establish a new connection: [Errno -2] Name or service not known',)): MaxRetryError
Traceback (most recent call last):
File "/var/task/kube-lambda.py", line 55, in lambda_handler
raise e
File "/var/task/kube-lambda.py", line 47, in lambda_handler
body=dep, namespace="default")
File "/var/task/kubernetes/client/apis/extensions_v1beta1_api.py", line 4727, in patch_namespaced_deployment
(data) = self.patch_namespaced_deployment_with_http_info(name, namespace, body, **kwargs)
File "/var/task/kubernetes/client/apis/extensions_v1beta1_api.py", line 4823, in patch_namespaced_deployment_with_http_info
collection_formats=collection_formats)
File "/var/task/kubernetes/client/api_client.py", line 335, in call_api
_preload_content, _request_timeout)
File "/var/task/kubernetes/client/api_client.py", line 148, in __call_api
_request_timeout=_request_timeout)
File "/var/task/kubernetes/client/api_client.py", line 409, in request
body=body)
File "/var/task/kubernetes/client/rest.py", line 307, in PATCH
body=body)
File "/var/task/kubernetes/client/rest.py", line 177, in request
timeout=timeout, headers=headers)
File "/var/task/urllib3/request.py", line 70, in request
**urlopen_kw)
File "/var/task/urllib3/request.py", line 148, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/var/task/urllib3/poolmanager.py", line 321, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 668, in urlopen
**response_kw)
File "/var/task/urllib3/connectionpool.py", line 639, in urlopen
_stacktrace=sys.exc_info()[2])
File "/var/task/urllib3/util/retry.py", line 388, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.api-cluster-k8s-local-ohpk1a-982509592.us-west-2.elb.amazonaws.com', port=443): Max retries exceeded with url: /apis/extensions/v1beta1/namespaces/default/deployments/codesuite-demo (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb86304d2e8>: Failed to establish a new connection: [Errno -2] Name or service not known',))

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kubernetes pipeline Deployment pipeline
Projects
None yet
Development

No branches or pull requests

1 participant