first intro

This commit is contained in:
Karl Cardenas 2022-01-14 10:09:05 -07:00
parent 5d7a727e1c
commit d87a8f2016
No known key found for this signature in database
GPG Key ID: 0AC61D76B41F1EDC
1 changed files with 9 additions and 75 deletions

View File

@ -2,17 +2,19 @@
layout: docs
page_title: What is service mesh??
description: >-
Welcome to the intro guide to Consul! This guide is the best place to start
with Consul. We cover what Consul is, what problems it can solve, how it
compares to existing software, and how you can get started using it. If you
are familiar with the basics of Consul, the documentation provides a more
detailed reference of available features.
Learn what a serive mesh is, it's benefits, and how it works.
---
<!--
# What is a Service Mesh?
Blah Blah Blah Blah ..Go Consul
A service mesh is a dedicated layer that provides secure service-to-service communication for on-prem, cloud, or multi-cloud infrastructure.
Service meshes are often used with a microservice architectural pattern, but can provide value in any scenario where complex networking is involved.
Service meshes typically consist of a control plane, and a data plane. The control plane maintains a central registry that keeps track of all services and their respective IP addresses, this is called _service discovery_.
As long as the application is registered with the control plane, the control plane will be able to share with other members of the mesh how to communicate with the application and enforce rules for who can communicate with each other.
The control plane is responsible for securing the mesh, facilitating service discovery, health checking, policy enforcement, and other similar operational concerns. The data plane handles communication between services.
Many _service mesh_ solutions employ a sidecar proxy to handle data plane communications, and thus limit the level of awareness the services need to have about the network environment.
## How does Service Mesh work?
@ -43,71 +45,3 @@ When Consul and Terraform get together.
AWS + GCP + Azure + Consul = Easy Peasy
## Next
Go learn [learn.hashicorp.com](https://learn.hashicorp.com/consul) -->
# https://react-components-hashicorp.vercel.app
```shell-session hideClipboard
$ echo 'Hello world'
```
<CodeBlockConfig hideClipboard lineNumbers highlight="1-3,5" filename="hello-world.js">
```javascript
const foo = 'bar'
function hello() {
return Math.random() > 0.5 ? 'Hello' : 'Bonjour'
}
console.log('hello world')
```
</CodeBlockConfig>
<CodeTabs heading="Set your primary datacenter">
<CodeBlockConfig filename="consul-acl.hcl" lineNumbers highlight="3,6-8">
```hcl
primary_datacenter = "dc1"
acl {
enabled = true
default_policy = "deny"
down_policy = "extend-cache"
tokens {
"agent" = "da666809-98ca-0e94-a99c-893c4bf5f9eb"
}
}
```
</CodeBlockConfig>
<CodeBlockConfig filename="consul-acl.json" lineNumbers highlight="4,7-9">
```json
{
"primary_datacenter": "dc1",
"acl": {
"enabled": true,
"default_policy": "deny",
"down_policy": "extend-cache",
"tokens": {
"agent": "da666809-98ca-0e94-a99c-893c4bf5f9eb"
}
}
}
```
</CodeBlockConfig>
</CodeTabs>
-> **Note**: Did you know
~> **Warning**: Be aware of
!> **Danger**: DO NOT EXPOSE YOUR BOOTSTRAP ACL TOKEN
<EnterpriseAlert product="consul" inline />
!["A swimlane for auth methods"](/img/auth-methods.svg)