Giter VIP home page Giter VIP logo

calico-nomad's Introduction

Calico-Nomad

Author: Aman Singh

Reference: https://www.hashicorp.com/blog/multi-interface-networking-and-cni-plugins-in-nomad-0-12

Overview

Nomad supports multi-interface networking and CNI plugins. This allows you to configure multiple network interfaces for a task. Calico is a CNI plugin that provides networking and network policy for containers, virtual machines, and native host-based workloads.

This write-up is written to demonstrate how to use Calico as a CNI plugin for Nomad as an answer to this problem statement.

Calico can be used as a CNI plugin for Nomad. This guide will walk you through the steps required to set up a Nomad cluster with Calico networking.

Follow the full guide here.

For Automated Setup Follow: this guide

Calico-Nomad

Calico-Nomad over Wireguard VPN

Wireguard is a fast, modern, secure VPN tunnel. Wireguard is a layer 3 tunnel that can be used to create a secure network between hosts (peer-to-peer).

Problem Statement

We want to create a secure network between two hosts using Wireguard. We want to run a Nomad job on one of the hosts and access it from the other host. We want to use Calico as a CNI plugin for Nomad.

what we have achieved?

We are able to run a Nomad job on one of the hosts and access it from the other host in the same network. We are able to use Calico as a CNI plugin for Nomad.

wat we were stuck at?

When we try to access the Nomad job from the other host via the Wireguard tunnel, we are not able to access it. although we are able to ping the host from the other host. containers within the same host are able to access each other.

For wireguard, we are using netmaker. refer to this guide

How we fixed it?

We had to enable three things inside calico-node service.

FELIX_VXLANENABLED=true IP_AUTODETECTION_METHOD=interface=nm-netmaker CALICO_MANAGE_CNI=false

This solved the issue and communcation across netmaker started working.

calico-nomad's People

Contributors

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