Public | Automated Build

Last pushed: 5 months ago
Short Description
Prune bulilds, deployments and images
Full Description

OpenShift Pruner

Keep your registry clean pruning builds, deployments and images.

Atention:

This is a experimental image, it intents to remove objects from the cluster!, use at your own risk!!
For more information, please see the documentation

##Instalation:
You can either use our image from dockerhub or build at your local machine:

To use our image:

 $ docker pull getupcloud/imagepruner:latest

To build the image:

  $ git clone https://github.com/getupcloud/imagepruner.git
  $ cd imagepruner
  $ docker build -t imagepruner:latest .

##Requirements:
This image expects you have a service account with cluster-admin privileges. Please for more information see the official documentation

Create Supporting ServiceAccounts

The image must run under a service account defined as follows:

  $ oc create -f - -n default <<EOF
  apiVersion: v1
  kind: ServiceAccount
  metadata:
    name: image-pruner
  secrets:
  - name: image-pruner
  EOF

  $ oc policy add-role-to-user cluster-admin \
      system:serviceaccount:default:image-pruner

Note: change :default: above to match the project name.

##Schedule the pod:

  $ oc create -f image-pruner.yaml
Docker Pull Command
Owner
getupcloud
Source Repository

Comments (0)