private static getQuarkusStsDeploymentK8sDefinition()

in fargate/eks_cdk/lib/eks_cdk-stack.ts [125:151]


  private static getQuarkusStsDeploymentK8sDefinition(appLabel: { app: string }, sa: eks.ServiceAccount) {
    return {
      apiVersion: "apps/v1",
      kind: "Deployment",
      metadata: { name: "quarkus-demo-deploy" },
      spec: {
        replicas: 3,
        selector: { matchLabels: appLabel },
        template: {
          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",
                image: "275396840892.dkr.ecr.us-east-1.amazonaws.com/quarkus_ecs_demo:1.0",
                ports: [{ containerPort: 8080 }]
              }
            ]
          }
        }
      }
    };
  }