GithubHelp home page GithubHelp logo

arocki7 / clair-openshift Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 4 KB

Openshift template for Clair (Docker vulnerability Scanner)

License: MIT License

clair clair-scanner clair-db openshift kubernetes helm docker openshift-templates vulnerability-scanners vulnerability-detection

clair-openshift's Introduction

Openshift Template for Clair

This template is to implement clair inside Openshift.

What's inside

Clair : quay.io/coreos/clair:latest
Postgres: Postgres 9.5 (Persistent Storage)

How to Deploy

  • Login into Openshift Console.
  • Click 'Import from YAML/JSON'
  • Paste the contents of template.yml file.
  • Create > Change the parameters if needed.

If you want to customise the config.yml of clair, you can edit it in configMap inside the template or in Openshift.

To crate the app for the first time, oc new-app -f template.yml.

Wait for few minutes for the application to update and populate the Database. Please ensure that Clair pod can communicate with the addresses mentioned in egress-policy.yml.

If you are using klar, you will need to specify the port manually '80'.

How to update changes

Use the below command to update the existing installation after updating the template. Below command can be used in pipeline as this command will also create app if not exists.

oc process -f template.yml | oc apply -f -

Egress network policies & Firewall

If your Openshift cluster is secured with network policies and firewall. Please ensure that egress network policies are applied to the namespace and the firewall. You might also want to open your firewall from the policy.

oc process -f egress-policy.yml | oc apply -f -

Please ensure to add your Docker repository URL to the list.

ovs-networkpolicy SDN plugins allow to have only one Egress policy. In that case, please update the existing egress policy with this rules.

How to destroy

Use the below command to destroy the clair installation completely.

Below command will also destroy the database volume. You can remove pvc from the command, if you want to keep the database files.

oc delete all,cm,pvc -l app=clair

clair-openshift's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kostacipo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.