GithubHelp home page GithubHelp logo

dubangarcia / consul-k8s Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hashicorp/consul-k8s

0.0 0.0 0.0 17.3 MB

First-class support for Consul Service Mesh on Kubernetes

Home Page: https://www.consul.io/docs/k8s

License: Mozilla Public License 2.0

Shell 27.58% Go 71.06% Makefile 0.21% Smarty 0.39% HCL 0.57% Dockerfile 0.20%

consul-k8s's Introduction

Consul logo Consul on Kubernetes

We're looking for feedback on how folks are using Consul on Kubernetes. Please fill out our brief survey!

Overview

The consul-k8s-control-plane binary includes first-class integrations between Consul and Kubernetes. The project encapsulates multiple use cases such as syncing services, injecting Consul sidecars, and more. The Kubernetes integrations with Consul are documented directly on the Consul website.

This README will present a basic overview of use cases and installing the Helm charts, but for full documentation please reference the Consul website.

This project is versioned separately from Consul. Supported Consul versions for each feature will be noted below. By versioning this project separately, we can iterate on Kubernetes integrations more quickly and release new versions without forcing Consul users to do a full Consul upgrade.

Note
We take Consul's security and our users' trust very seriously. If you believe you have found a security issue in Consul K8s, please responsibly disclose by contacting us at [email protected].

Features

  • Consul Service Mesh: Run Consul Service Mesh on Kubernetes. This feature injects Envoy sidecars and registers your Pods with Consul.

  • Catalog Sync: Sync Consul services into first-class Kubernetes services and vice versa. This enables Kubernetes to easily access external services and for non-Kubernetes nodes to easily discover and access Kubernetes services.

Installation

consul-k8s is distributed in multiple forms:

  • The recommended installation method is the official Consul Helm chart. This will automatically configure the Consul and Kubernetes integration to run within an existing Kubernetes cluster.

  • A Docker image hashicorp/consul-k8s-control-plane is available. This can be used to manually run consul-k8s-control-plane within a scheduled environment.

  • Consul K8s CLI, distributed as consul-k8s, can be used to install and uninstall Consul Kubernetes. See the Consul K8s CLI Reference for more details on usage.

Prerequisites

The following pre-requisites must be met before installing Consul on Kubernetes.

  • Kubernetes 1.22.x - 1.25.x - This represents the earliest versions of Kubernetes tested. It is possible that this chart works with earlier versions, but it is untested.
  • Helm install
    • Helm 3.6+ for Helm based installs.
  • Consul K8s CLI based install
    • kubectl configured to authenticate to a Kubernetes cluster with a valid kubeconfig file.
    • brew, yum, or apt package manager on your local machine

CLI

The Consul K8s CLI is the easiest way to get up and running with Consul on Kubernetes. See Install Consul on K8s CLI for more details on installation, and refer to Consul on Kubernetes CLI Reference for more details on subcommands and a list of all available flags for each subcommand.

  1. Install the HashiCorp tap, which is a repository of all Homebrew packages for HashiCorp:

    brew tap hashicorp/tap
  2. Install the Consul K8s CLI with hashicorp/tap/consul formula.

    brew install hashicorp/tap/consul-k8s
  3. Issue the install subcommand to install Consul on Kubernetes:

    consul-k8s install 

Helm

The Helm chart is ideal for those who prefer to use Helm for automation for either the installation or upgrade of Consul on Kubernetes. The chart supports multiple use cases of Consul on Kubernetes, depending on the values provided. Detailed installation instructions for Consul on Kubernetes are found here.

  1. Add the HashiCorp Helm repository:

    helm repo add hashicorp https://helm.releases.hashicorp.com
  2. Ensure you have access to the Consul Helm chart and you see the latest chart version listed. If you have previously added the HashiCorp Helm repository, run helm repo update.

    helm search repo hashicorp/consul
  3. Now you're ready to install Consul! To install Consul with the default configuration using Helm 3.2 run the following command below. This will create a consul Kubernetes namespace if not already present, and install Consul on the dedicated namespace.

    helm install consul hashicorp/consul --set global.name=consul --create-namespace -n consul
    

Please see the many options supported in the values.yaml file. These are also fully documented directly on the Consul website.

Tutorials

You can find examples and complete tutorials on how to deploy Consul on Kubernetes using Helm on the HashiCorp Learn website.

consul-k8s's People

Contributors

lkysow avatar ishustava avatar thisisnotashwin avatar mitchellh avatar adilyse avatar kschoche avatar ndhanushkodi avatar curtbushko avatar david-yu avatar jmurret avatar hc-github-team-consul-ecosystem avatar hashicorp-ci avatar alvin-huang avatar andrewstucki avatar wilkermichael avatar nathancoleman avatar sarahalsmiller avatar nickethier avatar lawliet89 avatar anubhavmishra avatar s3than avatar kyhavlov avatar nicholasjackson avatar sadjamz avatar nicoletapopoviciu avatar danstough avatar kevinjqiu avatar schristoff avatar erichaberkorn avatar tomwganem 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.