Skip to content

Commit

Permalink
Add security context to quarkus pod
Browse files Browse the repository at this point in the history
This is to fix the file permission of the access token file, see kubernetes-sigs/external-dns#1185
  • Loading branch information
moralesl committed Sep 28, 2020
1 parent a84cb99 commit 67f7a38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fargate/eks_cdk/lib/eks_cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class EksCdkStack extends cdk.Stack {
metadata: { labels: appLabel },
spec: {
serviceAccountName: sa.serviceAccountName,
securityContext: { // To fix the file permission of the access token file, see https://github.com/kubernetes-sigs/external-dns/pull/1185
fsGroup: 65534
},
containers: [
{
name: "quarkus-demo-web",
Expand Down

0 comments on commit 67f7a38

Please sign in to comment.