Skip to content

Commit

Permalink
Update and rename openshift-podman-deployment.yaml to openshift-podma…
Browse files Browse the repository at this point in the history
…n-runnerdeployment.yaml
  • Loading branch information
shakerg authored Jan 12, 2024
1 parent 9c64e5e commit 275e42d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 54 deletions.
54 changes: 0 additions & 54 deletions openshift/manifests/openshift-podman-deployment.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions openshift/manifests/openshift-podman-runnerdeployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
name: openshift-podman-runner
spec:
# Using "HorizontalRunnerAutoscaler"
# replicas: 0
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
# Assign runner group
dockerdWithinRunnerContainer: false #disable the docker container
group: ${RUNNER_GROUP_NAME}
labels:
- podman
organization: ${ORG}
imagePullPolicy: Always
resources:
limits:
cpu: "1"
memory: "1Gi"
requests:
cpu: "250m"
memory: "250Mi"
image: ${PATH_TO_IMAGE}
---
apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
name: openshift-podman-autoscaler
spec:
scaleDownDelaySecondsAfterScaleOut: 300
scaleTargetRef:
name: openshift-podman-runner
minReplicas: 1
maxReplicas: 3
metrics:
- type: PercentageRunnersBusy
scaleUpThreshold: '0.75'
scaleDownThreshold: '0.25'
scaleUpFactor: '2'
scaleDownFactor: '0.5'

0 comments on commit 275e42d

Please sign in to comment.