Giter Site home page Giter Site logo

k8s-cups's Introduction

k8s-cups

Example of a CUPS print server from within OpenShift or Kubernetes.

MAINTENANCE

This repository is no longer maintained and is now archived. For your cups-in-a-container needs, I highly recommend if you have an active Red Hat subscription the registry.redhat.io/rhel9-cups container image which this project helped spur on.

About

This is a series of sample YAML files that stand up a CUPS print server running from within OpenShift or Kubernetes. It uses the quay.io/robbmanes/cups:latest image for the CUPS server, which is built from registry.fedoraproject.org/fedora-minimal. The Dockerfile for this image can be found within this repository.

Deployment

To deploy this example directly to your OpenShift or Kubernetes cluster do:

$ kubectl create -f namespace.yaml -f cups-conf.yaml -f cups-files.yaml -f pod.yaml -f service.yaml

Teardown

To remove this example from your cluster, do:

$ kubectl delete pods,jobs,svc,cm,namespace -l=app=cups

Testing

A simple test job has been provided to check your service connectivity to the CUPS server.

To deploy the job, do:

$ kubectl create -f cups-test.yaml

Inspect it like so:

$ kubectl get jobs
NAME        COMPLETIONS   DURATION   AGE
cups-test   0/1           6s         6s

$ kubectl get pods
NAME              READY     STATUS      RESTARTS   AGE
cups              1/1       Running     0          29s
cups-test-2m8sw   0/1       Completed   0          19s

Inspect the pod it creates; success has a code of "200":

$ kubectl logs cups-test-2m8sw
200

Delete the job like so:

$ kubectl delete job cups-test

k8s-cups's People

Contributors

robbmanes avatar

Watchers

 avatar  avatar  avatar

Forkers

bmasonrh

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.