Code Monkey home page Code Monkey logo

cloudeos-k8s's Introduction

CloudEOS for Kubernetes

Files

Design Goals

There are a few design goals with CloudEOS:

  • Provide a Kubernetes native deployment model
  • Allow for easy deployment of cluster nodes
  • Provide an operationally consistent networking model for administrators
  • Provide the benefits of EOS from a management, observability, feature, and supportability in a Kubernetes networking environment.

CloudEOS achieves these goals by the following:

  • Using a daemonset to deploy CloudEOS containers on each node in the cluster
  • Providing configuration options directly in the deployment YAML file
  • Allowing standard EOS configuration
  • Using the same binary as any other EOS based device
  • Support for streaming telemetry and management through Arista CloudVision

Configuration Options

Supported Annotations for CloudEOS

Annotations have a higher precendence than environment variables

Parameter Description Example Optional
arista/bgp-peer-ip-1 IP address of BGP Peer arista/bgp-peer-ip-1="172.20.3.1" no
arista/bgp-peer-ip-2 IP address of second BGP Peer for redundant links arista/bgp-peer-ip-2="172.20.4.1" yes
arista/bgp-local-as ASN for the Kubernetes nodes. If using iBGP this should match the ToR arista/bgp-local-as="65003" no
arista/bgp-remote-as-1 ASN for the BGP Peer if not using iBGP arista/bgp-remote-as-1="65001" yes
arista/bgp-remote-as-2 ASN for the second BGP Peer if not using iBGP arista/bgp-remote-as-2="65002" yes
NODE_NAME Hostname of CloudEOS NODE_NAME="kube153" yes

Supported Environment Variables for CloudEOS

Environment Variables will be used if Annotations are not present

Parameter Description Example
BGP_AS Local or remote BGP AS number. - name: "BGP_AS" value: "65130"
INTERFACE_MTU Integer value used to configure app container interface MTUs -name: "INTERFACE_MTU" value: 9000

ConfigMap support for clusterwide configuration

(optional) If you need to apply a chunk of static config to every pod you can also create a configmap in Kubernetes that will store and configure all CloudEOS pods with generic configuration. NOTE: These commands must be fully expanded (i.e. interface Ethernet 1, not int eth 1), and no syntax checking will occur. If there are syntax errors with the commands it may prevent the pod from starting. In this example I'm adding a few lines of static config for SSH to be remapped to port 8022 and adding an NTP server. This config will be placed on every CloudEOS pod.

apiVersion: v1
kind: ConfigMap
metadata:
  name: cloudeos-configmap
  namespace: default
data:
  cloudeos-config-data: |
    ntp-server 172.22.22.50
    management ssh
    server-port 8022

You will then need to add this configmap to your YAML specification for CloudEOS, namely as a volumeMount under cloudeos-init and a volume under the pod. These are noted in the following snippets with a comment:

Entry for the cloudeos-init container:

  initContainers:
  - image: aristanetworks/cloudeos-init:0.9
    name: cloudeos-init
    command: ["/ceos-init", "-cni=false"]
    env:
      - name: "CLOUDVISION_IP"
        value: "10.90.224.175"
    volumeMounts:
    - name: kickstart-config
      mountPath: /config/
    # Add the following:
    - name: configmap-config
      mountPath: /config/cloudeos-configmap

Entry for the volumes section:

volumes:
- name: kickstart-config
  hostPath:
    path: /opt/cni/cloudeos
# Add the following:
- name: configmap-config
  configMap:
    name: cloudeos-configmap

Deployment Guides

Deployment with Calico

Example Configuration

Example Config

cloudeos-k8s's People

Contributors

fredhsu avatar

Watchers

 avatar

Forkers

burnyd mkieweg

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.