Skip to content

Commit 8e8c9cb

Browse files
committed
Add security context to quarkus pod
This is to fix the file permission of the access token file, see kubernetes-sigs/external-dns#1185
1 parent 6fc6cdd commit 8e8c9cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fargate/eks_cdk/lib/eks_cdk-stack.ts

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class EksCdkStack extends cdk.Stack {
4141
metadata: { labels: appLabel },
4242
spec: {
4343
serviceAccountName: sa.serviceAccountName,
44+
securityContext: { // To fix the file permission of the access token file, see https://github.com/kubernetes-sigs/external-dns/pull/1185
45+
fsGroup: 65534
46+
},
4447
containers: [
4548
{
4649
name: "quarkus-demo-web",

0 commit comments

Comments
 (0)