Skip to content

getupcloud/imagepruner

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published