Sign inSign up

getupcloud/imagepruner

By getupcloud

Updated almost 6 years ago

Prune bulilds, deployments and images

Image
0

50K+

getupcloud/imagepruner repository overview

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 adm policy add-cluster-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

Tag summary

Content type

Image

Digest

Size

277.9 MB

Last updated

almost 6 years ago

docker pull getupcloud/imagepruner