Git Product home page Git Product logo

csye7125-fall2023-group05 / k8s-operator Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 21.81 MB

Custom operator to create a controller that monitors a custom resource (CronJob) that runs a health check Kafka Producer and publishes the data to the Kafka brokers.

Dockerfile 3.47% Makefile 21.16% Go 75.36%
cronjob golang kubebuilder kubernetes kubernetes-controller kubernetes-crd kubernetes-crd-operator kubernetes-operator

k8s-operator's People

Contributors

karanwadhwa avatar rishabneu avatar sydrawat01 avatar

Forkers

sydrawat01

k8s-operator's Issues

โŒ Delete CronJob pods when status is complete

After the cronjob completes, the pod it creates to run the producer is still present on the cluster, with a status of Complete.
This pod needs to be removed using JobHistoryLimits.

The .spec.successfulJobsHistoryLimit and .spec.failedJobsHistoryLimit fields are optional. These fields specify how many completed and failed jobs should be kept. By default, they are set to 3 and 1 respectively. Setting a limit to 0 corresponds to keeping none of the corresponding kind of jobs after they finish.

  • Set successfulJobHistoryLimit to 0
  • Set failedJobHistoryLimit to 0

ref: k8s docs on cronjobs

๐Ÿš€ Dockerize operator to private container repository hub

Currently, we are storing the operator docker image in a public dockerhub repository.

  • Use quay.io to store the k8s-operator docker image.
  • We need pull secrets so that the kubebuilder manager can pull this private image when using make deploy.

Build and push works after we login using quay secrets:

make docker-build docker-push IMG=quay.io/pwncorp/k8s_operator NS=webapp

But when using make deploy, the pod create by kubebuilder fails to pull the secret container image from quay:

make deploy IMG=quay.io/pwncorp/k8s_operator NS=webapp

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.