Git Product home page Git Product logo

xrootd-k8s-operator's Introduction

Xrootd Operator Xrootd operator CI Xrootd operator OLM

Go Report Card

A Kubernetes operator to deploy Xrootd at scale, in order to ease and fully automate deployment and management of XRootD clusters.

Installation

Prerequisites

  • Docker
  • kubectl
  • Access to a Kubernetes cluster:
    • For production, use bare-metal clusters or public cloud platforms.
    • For development, use local K8S Cluster
  • Configure kubectl to use relevant K8S Cluster

Using OLM

  • TODO

Development

Prerequisites

Build operator

  • Run make manager to locally build operator binary and make run to run it against the configured Kubernetes cluster.
  • Run make build to build operator image from scratch and loads it in the k8s cluster.
  • The build command can be configured with the cluster's name and provider to target where the built operator image will be loaded. Set the following environment variables:
    • CLUSTER_PROVIDER=(kind/k3s/minishift)
    • CLUSTER_NAME=<cluster name>

Install operator

  • Run make deploy to deploy the operator image in the cluster, along with applying the required roles, service accounts etc.
  • To uninstall the CRDs, run make uninstall. To cleanup everything, including the operator deployment, run make undeploy.

Bundle

Xrootd Operator is integrated with OLM and configured to use Bundle format.

  • To generate OLM CSV manifests and bundle metadata, run make bundle.
  • To build the operator bundle image, run make bundle-build.

Testing

  • Unit Tests: Run the unit tests with make test.
  • Integration Tests: Run the suite of e2e tests with make test-e2e.

OpenShift Cluster

  • For local development, it's recommended to use CodeReady Containers since it supports Openshift v4+. Minishift is a suitable alternative, however it only supports till OpenShift v3.
  • To test operator via scripted approach, make deploy works.
  • To test operator using OLM, follow testing guide for deployment using custom images.

    TODO: Testing bundles is still not officially supported.

NOTE: Minishift uses Kubernetes v1.11.x, so it only supports till OLM v0.14.x (because later OLM versions uses apiextensions.k8s.io/v1 for CRD manifests)


Usage

  • Make sure the xrootd-operator is up and runnning in your K8S cluster (otherwise follow Installation/Development steps):
    • To check the status, run kubectl describe pod -l name=xrootd-operator
  • Example manifests to deploy Xrootd instance are at manifests folder.
  • To apply any manifest, simply use kubectl apply:
    • For example, to apply base sample manifest, run kubectl apply -k manifests/base

Troubleshooting

  • Check operator logs: kubectl logs -l name=xrootd-operator
  • Create issue and if needed, provide operator logs too.

Useful Links

xrootd-k8s-operator's People

Contributors

shivanshs9 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.