ansible/roles/openshift-apps/fedora-ostree-pruner/templates/deploymentconfig.yml

51 lines
1.5 KiB
YAML

---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: fedora-ostree-pruner
name: fedora-ostree-pruner
spec:
replicas: 1
selector:
app: fedora-ostree-pruner
strategy:
resources: {}
template:
metadata:
labels:
app: fedora-ostree-pruner
name: fedora-ostree-pruner
spec:
containers:
- name: fedora-ostree-pruner
# sleep infinity is useful for debugging environment issues
# comment out when not debugging
# args: ['/usr/bin/sleep', 'infinity']
# command: ['/usr/bin/dumb-init']
volumeMounts:
- name: fedora-ostree-content-volume
mountPath: /mnt/koji
image: ""
imagePullPolicy: IfNotPresent
resources: {}
# The files in the ostree volumes are created with group ownership of 263.
# We need to have 263 in our supplemental groups. See https://pagure.io/releng/issue/8811#comment-629051
securityContext:
supplementalGroups: [263]
volumes:
- name: fedora-ostree-content-volume
persistentVolumeClaim:
claimName: fedora-ostree-content-volume
restartPolicy: Always
test: false
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- fedora-ostree-pruner
from:
kind: ImageStreamTag
name: fedora-ostree-pruner-img:latest