From 3b18ccd49bfee11d265416ec27eb9236951d0d84 Mon Sep 17 00:00:00 2001 From: Fabio Bertinatto Date: Mon, 27 Apr 2020 13:52:49 +0200 Subject: [PATCH] Bug: 1805908: Add template for recycler pod --- .../00-master/_base/files/recycler_pod.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 templates/master/00-master/_base/files/recycler_pod.yaml diff --git a/templates/master/00-master/_base/files/recycler_pod.yaml b/templates/master/00-master/_base/files/recycler_pod.yaml new file mode 100644 index 0000000000..c56621e91a --- /dev/null +++ b/templates/master/00-master/_base/files/recycler_pod.yaml @@ -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