-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
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
(aws-eks): integration tests can't be deployed #24266
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Comments
PR underway. |
mergify bot
pushed a commit
that referenced
this issue
Feb 22, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes #24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Naumel
pushed a commit
that referenced
this issue
Feb 22, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes #24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Naumel
pushed a commit
that referenced
this issue
Feb 24, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes #24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
beck3905
pushed a commit
to beck3905/aws-cdk
that referenced
this issue
Feb 28, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes aws#24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
homakk
pushed a commit
to homakk/aws-cdk
that referenced
this issue
Mar 13, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes aws#24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
homakk
pushed a commit
to homakk/aws-cdk
that referenced
this issue
Mar 28, 2023
This PR fixes the integ tests errors in aws-eks and addresses the following issues: `integ.alb-controller.ts` has `runAsNonRoot` error and should define a non-root user in securityContext of the pod definition to ensure successful k8s deployment. `integ.eks-service-account-sdk-call.ts` should define a non-root user as well and increase the timeout of `BucketPinger` from the default 1 min to 3 min as the deployment could take up to 2 minutes or more. The base docker image from docker hub for this test has been replaced with the same image in ECR public to avoid potential throttling. I have manually run the two integ tests in my account and both successfully deploy with no error now. Closes aws#24266 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
@aws-cdk/aws-eks
Related to Amazon Elastic Kubernetes Service
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
Integ tests in aws-eks using
hashicorp/http-echo
as the k8s deployment container image can't be deployed and is having the error:Error: container has runAsNonRoot and image will run as root
This is because hashicorp/http-echo#11 and the deployment should run as
1005
described here:https://github.com/hashicorp/http-echo/blob/672da300fbd66957bb6037e8d0369632752d1456/docker/alpine/Dockerfile#L15
Similarly,
integ.eks-service-account-sdk-call
can't be deployed because it's run as non-root and should be defined in the security-context of the pod as well.Expected Behavior
integ tests
integ.alb-controller.ts
andinteg.eks-service-account-sdk-call
should be deployedCurrent Behavior
integ.alb-controller.ts
andinteg.eks-service-account-sdk-call.ts
can't be deployedReproduction Steps
just deploy the
integ.alb-controller.ts
andinteg.eks-service-account-sdk-call.ts
as described in the doc.Possible Solution
define the non-user in the securityContext. i.e.
Additional Information/Context
No response
CDK CLI Version
2.66.0
Framework Version
No response
Node.js Version
v16.17.0
OS
Linux
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: