Giter Club home page Giter Club logo

podpreset-crd's Introduction

PodPresets CRD

The source in the repository contains a PodPreset resource that's implemented via a CRD that is paired with a mutating webhook in order to modify pod specs on the fly.

Getting started

In order to deploy the PodPreset resource into your cluster, do the following:

  1. Deploy Kubernetes.

  2. Install kustomize.

  3. Run CRD, choose to execute inside or outside the cluster.

    Inside cluster:

    make docker-build
    make deploy

    Outside cluster (for debugging/development):

    make install
    make run
  4. Build the webhook container image.

    make build-webhook
    make build-image-webhook
  5. Install the webhook.

    make deploy-webhook
  6. Apply desired pod presets as needed, example given below.

Build process

Docker images for controller and webhook server are automatically created on every commit and PR:

  • eu.gcr.io/kyma-project/incubator/pr/podpreset-controller:PR-X
  • eu.gcr.io/kyma-project/incubator/pr/podpreset-webhook:PR-X

Example usage

kubectl create -f config/samples/apod-preset.yaml
kubectl create -f config/samples/apod.yaml

History

PodPresets has had a long history in various forms throughout its alpha life (it's still alpha). As of August 2018, the PodPreset resource still exists in the Kubernetes core, but is planned to be superceded by the code here.

Additional information

Certificates

The Makefile utilizes pre-generated certificates for use with the mutating webhook. An example script that generates new certificates is located in webhook/pki/gen-certs.sh. The cabundle patch file needs to be adjusted accordingly afterwards, unless the deployment file is used directly.

Service Catalog integration

This repository is only one piece required for full integration with Service Catalog. Also review the podpresetbinding-crd repository for functionality that auto-generates pod presets upon service bindings being ready.

podpreset-crd's People

Contributors

jpeeler avatar mszostok avatar kjaksik avatar

Watchers

James Cloos avatar

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.