Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions templates/master/00-master/_base/files/recycler_pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
filesystem: "root"
mode: 0644
path: "/etc/kubernetes/manifests/recycler-pod.yaml"
contents:
inline: |
apiVersion: v1
kind: Pod
metadata:
name: recyler-pod
namespace: openshift-infra
spec:
activeDeadlineSeconds: 60
restartPolicy: Never
serviceAccountName: pv-recycler-controller
containers:
-
name: recyler-container
image: "{{.Images.infraImageKey}}"
command:
- "/bin/bash"
args:
- "-c"
- "test -e /scrub && rm -rf /scrub/..?* /scrub/.[!.]* /scrub/* && test -z \"$(ls -A /scrub)\" || exit 1"
volumeMounts:
-
mountPath: /scrub
name: vol
securityContext:
runAsUser: 0
volumes:
-
name: vol