RunnerSet generates random names #1520
Unanswered
MichalJasiorowski
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I'm trying to deploy RunnerSet with fix or autoscaled replica count.
It works ok but ARC is creating random statefullset/pod names every time so after scale up/down/restart I'm loosing my storage.
This is my replicaset config:
`apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerSet
metadata:
name: {{ .Values.runners.name }}
spec:
organization: {{ .Values.runners.organization }}
dockerdWithinRunnerContainer: true
ephemeral: false
replicas: 5
selector:
matchLabels:
app: {{ .Values.runners.name }}
serviceName: {{ .Values.runners.name }}
template:
metadata:
labels:
app: {{ .Values.runners.name }}
spec:
serviceAccount: {{ .Values.runners.serviceAccount.name }}
securityContext:
fsGroup: 2000
containers:
- name: runner
image: xxx
imagePullPolicy: Always
securityContext:
runAsUser: 1000
runAsNonRoot: true
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
resources:
limits:
cpu: "4.0"
memory: "8Gi"
requests:
cpu: "1.0"
memory: "2Gi"
volumeMounts:
- name: {{ .Values.runners.name }}
mountPath: /var/lib/docker
subPathExpr: ${POD_NAME}-docker
- name: {{ .Values.runners.name }}
mountPath: "/home/runner/.cache"
subPathExpr: cache
volumeClaimTemplates:
name: {{ .Values.runners.name }}
spec:
accessModes:
resources:
requests:
storage: {{ .Values.runners.storage.size }}
storageClassName: premium-rwo`
Any help much will be welcome :) Thanks!
Beta Was this translation helpful? Give feedback.
All reactions