Giter Club home page Giter Club logo

netris-operator's Introduction

Netris Operator

Slack GitHub release Artifact HUB Go Report Card License

Netris Operator is a Kubernetes Operator for managing and automating tasks related to managing Netris VPC.

Netris automatically operates the physical switching network in your data center, bare metal cloud, or at the edge. Netris automatically enables routing, elastic load balancer, firewall, DHCP, NAT, and other essential network services utilizing ordinary servers and SmartNICs. Netris makes your network automatic, resilient, and uncomplicated - just like the cloud but very cost-efficient.

Deploying the Operator

The current version of netris-operator requires Kubernetes >= 1.16.

GitOps

Kubernetes manifests are located in the deploy/ folder. To deploy the operator manually using Kubernetes manifests or to integrate it into your GitOps flow please follow these instructions.

Helm Charts

You can also use Helm charts to deploy Netris Operator.

Documentation

Netris Operator managing resources samples are available in the samples/ folder.

Compatibility with Netris-Controller

Operator version Controller version
v0.X v2.9
v1.X v3.0
v2.X v3.1+
v3.X v4.1+

Features

  • Managing Netris Controller via CRD
  • Automatically creating L4LB resource for type: load-balancer services
  • All CNIs are welcome

netris-operator's People

Contributors

artashesbalabekyan avatar pogossian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

netris-operator's Issues

Services status remain provisioning

I installed Netris Operator in Kubernetes cluster and Istio ingress. Services show up in Netris controller UI in services ->L4 load balancer but all remain in "provisioning" status.

stale state in operator after UI delete

Hi, I've create a vnet via k8s CR, and deleted it in web UI. According to the docs, I was expecting for it to be re-created in the controller DB (and visible in web UI). Instead I see it in k8s as:

air-1   active              Default   Admin   Failure        8m7s

and the following is in the logs

{"level":"info","ts":1643119788.7306645,"logger":"VNet","msg":"Go to delete","name":"netris/air-1"}
{"level":"error","ts":1643119788.738838,"logger":"VNet","msg":"","name":"netris/air-1","error":"{deleteVNet} {deleteVNet} Please provide a valid v-net."}
{"level":"error","ts":1643119788.768768,"logger":"VNetMeta","msg":"","name":"netris/air-1","error":"{GetVNetsByID} {GetByID} {http.Get} {\"data\":null,\"errors\":{\"error\":\"Please provide a valid v-net.\"},\"message\":\"Please provide a valid v-net.\",\"isSuccess\":false,\"meta\":{\"apiVersion\":\"v2\",\"statusCode\":500}}"}
{"level":"info","ts":1643119788.7732,"logger":"VNet","msg":"Go to delete","name":"netris/air-1"}
{"level":"error","ts":1643119788.7800682,"logger":"VNet","msg":"","name":"netris/air-1","error":"{deleteVNet} {deleteVNet} Please provide a valid v-net."}
{"level":"info","ts":1643119788.783426,"logger":"VNet","msg":"Go to delete","name":"netris/air-1"}
{"level":"error","ts":1643119788.7898724,"logger":"VNet","msg":"","name":"netris/air-1","error":"{deleteVNet} {deleteVNet} Please provide a valid v-net."}

panic: runtime error: index out of range [0] with length 0

I'm installing netris-operator on a new cluster (without any calico resources) and seeing operator in CrashLoopBackOff with the following log:

{"level":"error","ts":1643045695.4067953,"logger":"LBWatcher","msg":"","error":"CRD Not found"}
I0124 17:34:55.406862       1 leaderelection.go:242] attempting to acquire leader lease  netris/abac3abe.netris.ai...
{"level":"info","ts":1643045695.4070582,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
panic: runtime error: index out of range [0] with length 0

goroutine 196 [running]:
github.com/netrisai/netris-operator/calicowatcher.(*Watcher).deleteProcess(0xc00029eb40, 0x16823fb, 0x15)
        /workspace/calicowatcher/main.go:319 +0xb29
github.com/netrisai/netris-operator/calicowatcher.(*Watcher).mainProcessing(0xc00029eb40, 0xc00004007b, 0x15)
        /workspace/calicowatcher/main.go:384 +0x1fd
github.com/netrisai/netris-operator/calicowatcher.(*Watcher).start(0xc00029eb40)
        /workspace/calicowatcher/main.go:137 +0x128
github.com/netrisai/netris-operator/calicowatcher.(*Watcher).Start(0xc00029eb40)
        /workspace/calicowatcher/main.go:159 +0x1e8
created by main.main
        /workspace/main.go:187 +0x1205

Steps to reproduce (assuming netris is already installed):

kubectl -n netris create secret generic netris-creds \
  --from-literal=host="http://10.110.50.235" \
  --from-literal=login="netris" --from-literal=password="newNet0ps"

helm install netris-operator netrisai/netris-operator \
--namespace netris

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.