Skip to content

Commit 67f7a38

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 a84cb99 commit 67f7a38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fargate/eks_cdk/lib/eks_cdk-stack.ts

Lines changed: 3 additions & 0 deletions
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)