Giter VIP home page Giter VIP logo

flotta-operator's Introduction

Installation

To install the operator CRDs in the cluster pointed to by kubectl configuration execute (it may take some time):

make install

When the CRDs are present in the cluster, the operator can either be run outside or inside the cluster.

Prerequisites/Dependencies

Go

The operator requires Go 1.16, Go 1.18 is not supported yet.

podman

This project relies strongly on Podman. It is used in the edge devices and also in the operator. Supported Podman version is 3.4.4

cert-manager

We use admission webhooks for managing the CRDs. Therefore, there's a need for TLS certificates and keys management. When deploying in a cluster, webhooks are enabled and require cert-manager. Refer to its installation instructions for installing it.

Disabling webhooks is done by setting environment variable ENABLE_WEBHOOKS=false for the manager's container.

Getting started

Outside the cluster

Run make run to start the operator.

Inside the cluster

Deployment

  • Build and push operator images:

    IMG=<image repository and tag> make docker-build docker-push

    for example: IMG=quay.io/jdzon/flotta-operator:latest make docker-build docker-push

On OpenShift cluster

  • Deploy the operator: IMG=<image registry and tag> TARGET=ocp make deploy.
  • Get HTTP server address by running: HTTP_SERVER=$(oc get routes flotta-operator-controller-manager -n flotta --no-headers -o=custom-columns=HOST:.spec.host).
  • Start yggdrasil with from the yggdrasil repository directory:
     sudo ./yggd \
     --log-level info \
     --protocol http \
     --path-prefix api/flotta-management/v1 \
     --client-id $(cat /etc/machine-id) \
     --cert-file /etc/pki/consumer/cert.pem \
     --key-file /etc/pki/consumer/key.pem \
     --server $HTTP_SERVER
    

On minikube

  • Deploy the operator: IMG=<image registry and tag> HOST=<host name> TARGET=k8s make deploy.
  • Add to /etc/hosts: <minikube ip> <host name>.
  • Start yggdrasil with from the yggdrasil repository directory:
     sudo ./yggd \
     --log-level info \
     --protocol http \
     --path-prefix api/flotta-management/v1 \
     --client-id $(cat /etc/machine-id) \
     --cert-file /etc/pki/consumer/cert.pem \
     --key-file /etc/pki/consumer/key.pem \
     --server $HOST
    

In order to change the verbosity of the logger check out here.

For additional resources check out: metrics, grafana dashboard, device metrics, image registries.

flotta-operator's People

Contributors

masayag avatar eloycoto avatar pkliczewski avatar machacekondra avatar gciavarrini avatar ydayagi avatar bardielle avatar rgolangh avatar jakub-dzon avatar jordigilh avatar ahmadateya 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.