antonputra/tutorials

Is it possible to implement this in EKS-Fargate

Venkat6506 opened this issue · 5 comments

KIndly clarify if anyone knows...

@Venkat6506 what exactly?

I'm trying to implement thi setup on EKS-fargate profile.
getting the error during deplyment of runner-deployment.yaml or single-runner.yaml.(will be in pending state.)
This is the error messae got on describe pod:
fargate-scheduler Pod not supported on Fargate: invalid SecurityContext fields: Privileged

Can you try to remove SecurityContext: Privileged

Where exactly can i see that "SecurityContext: Privileged".
I checked everything.
Thanks.

Resolved With this YAML Template.

apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: your-label
namespace: actions
spec:
template:
metadata:
labels:
fargate: "true"
# eks.amazonaws.com/fargate-profile: "github"
spec:
repository: <Repo_Owner>/
labels:
- your-label
resources:
requests:
cpu: "4.0"
memory: "10Gi"
ephemeral-storage: "5Gi"
dockerEnabled: false
image: summerwind/actions-runner

apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: your-label
namespace: actions
spec:
scaleTargetRef:
name: your-label
scaleDownDelaySecondsAfterScaleOut: 120
minReplicas: 0
maxReplicas: 10
metrics:

  • type: TotalNumberOfQueuedAndInProgressWorkflowRuns
    repositoryNames:
    • <Repo_Owner>/