Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #176 from michelleN/release/v0.4.0
Browse files Browse the repository at this point in the history
prepare repo for v0.4.0 release
  • Loading branch information
Michelle Noorali authored Jul 14, 2020
2 parents 9e14bba + a5e8938 commit 9846a95
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 3 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ of providers. This allows for both standardization for end-users and innovation
by providers of Service Mesh Technology. SMI enables flexibility and
interoperability, and covers the most common service mesh capabilities.

Find the full specification [here](SPEC.md).
### Service Mesh Interface Documents

The following documents are available:

| | Latest Release | Working Draft |
| :---------------------------- | :--------------------------------: | :----------------------------------------: |
| **Core Specification:** |
| SMI Specification | [v0.4.0](/SPEC_LATEST_STABLE.md) | [v0.5.0-WD](/SPEC_WORKING_DRAFT.md) |
| |
| **Specification Components** |
| Traffic Access Control | [v1alpha1](/apis/traffic-access/v1alpha1/traffic-access.md) | [v1alpha2-WD](/apis/traffic-access/traffic-access-WD.md) |
| Traffic Metrics | [v1alpha1](/apis/traffic-metrics/v1alpha1/traffic-metrics.md) | [v1alpha2-WD](/apis/traffic-metrics/traffic-metrics-WD.md) |
| Traffic Specs | [v1alpha2](/apis/traffic-specs/v1alpha2/traffic-specs.md) | [v1alpha3-WD](/apis/traffic-specs/traffic-specs-WD.md) |
| Traffic Split | [v1alpha3](/apis/traffic-split/v1alpha3/traffic-split.md) | [v1alpha4-WD](/apis/traffic-split/traffic-split-WD.md) |

## Ecosystem

Expand Down
3 changes: 1 addition & 2 deletions SPEC.md → SPEC_LATEST_STABLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

## Version

This is SMI **spec** version **v0.4.0-WD**.
WD stands for `working draft`.
This is SMI **spec** version **v0.4.0**.
Learn more about versioning [below](#versioning).

## Table of Contents
Expand Down
138 changes: 138 additions & 0 deletions SPEC_WORKING_DRAFT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
# Service Mesh Interface

## Version

This is SMI **spec** version **v0.5.0-WD**.
Learn more about versioning [below](#versioning).

## Table of Contents

- [Abstract](#abstract)
- [Objective](#objective)
- [Technical Overview](#technical-overview)
- [APIs](#apis)
- [Traffic Access Control](#traffic-access-control)
- [Traffic Split](#traffic-split)
- [Traffic Specs](#traffic-specs)
- [Traffic Metrics](#traffic-metrics)
- [Appendix](#appendix)
- [Terminology](#terminology)
- [API Development Process](#api-development-process)
- [Versioning](#versioning)

## Abstract

The Service Mesh Interface (SMI) is a specification for service meshes that run
on Kubernetes. It defines a common standard that can be implemented by a variety
of providers. This allows for both standardization for end-users and innovation
by providers of Service Mesh Technology. SMI enables flexibility and
interoperability, and covers the most common service mesh capabilities.

## Objective

### Goals

The goal of the SMI API is to provide a common, portable set of Service Mesh
APIs which a Kubernetes user can use in a provider agnostic manner. In this way
people can define applications that use Service Mesh technology without tightly
binding to any specific implementation.

### Non-Goals

It is a non-goal for the SMI project to implement a service mesh itself. It
merely attempts to define the common specification. Likewise it is a non-goal to
define the extent of what it means to be a Service Mesh, but rather a generally
useful subset. If SMI providers want to add provider specific extensions and
APIs beyond the SMI spec, they are welcome to do so. We expect that, over time,
as more functionality becomes commonly accepted as part of what it means to be a
Service Mesh, those definitions will migrate into the SMI specification.

## Technical Overview

The SMI is specified as a collection of Kubernetes APIs via Kubernetes Custom
Resource Definitions (CRD) and Extension API Servers. These APIs can be
installed onto any Kubernetes cluster and manipulated using standard tools.
The APIs require an SMI provider to do something.

To activate these APIs an SMI provider is run in the Kubernetes cluster. For the
resources that enable configuration, the SMI provider reflects back on their
contents and configures the provider's components within a cluster to implement
the desired behavior. In the case of extension APIs, the SMI provider translates
from internal types to those the API expects to return.

This approach to pluggable interfaces is similar to other core Kubernetes APIs
like [NetworkPolicy][1], [Ingress][2] and [CustomMetrics][3].

## APIs

Find each API described at a high level below. Follow the links to see the
individual API specification documents for the details. Each document outlines:

- Specification
- Possible use cases
- Example implementations
- Tradeoffs

_Note: historical versions of the API specification as well as current working
drafts can be found under the [apis/ directory](apis/)_

### Traffic Access Control

Apply policies like identity and transport encryption across services.

The [Traffic Access Control](apis/traffic-access/traffic-access-WD.md) API
describes a resource to configure access to specific pods and routes based
on the identity of a client for locking down applications to only allowed
users and services.

### Traffic Split

Shift traffic between different services.

The [Traffic Split](apis/traffic-split/traffic-split-WD.md) API describes
a resource to incrementally direct percentages of traffic between various services
to assist in building out canary rollouts.

### Traffic Specs

Describe traffic on a per-protocol basis.

The [Traffic Specs](apis/traffic-specs/traffic-specs-WD.md) API describes
a set of resources to define how traffic looks on a per-protocol basis. These
resources work in concert with access control and other types of policy to manage
traffic at a protocol level.

### Traffic Metrics

Capture key metrics like error rate and latency between services.

The [Traffic Metrics](apis/traffic-metrics/traffic-metrics-WD.md) API
exposes common traffic metrics for use by tools such as dashboards and autoscalers.

## Appendix

### Terminology

- **SMI Provider**: An implementor of SMI. This could be a service mesh.
- **API Group**: A set of resources that are exposed together. Each group may have
one or more versions that evolve independently of other API Groups. Group names are
in domain form.

### API Development Process

Please submit an issue or a pull request to this repository to propose a change.
Changes are discussed on the [SMI community meetings](README.md/#communications).
Changes should be made to working draft documents of each API which can be found
in the corresponding directories under [apis/](apis/). Current working drafts
documents have a suffix **-WD.md**

### Versioning

The spec has its own version listed [above](#version). This version describes the
specification in its entirety. Although it is not related to the API specification
versions, the minor version of the spec will be incremented every time any of the
API Specification versions are incremented.

[1]: https://kubernetes.io/docs/concepts/services-networking/network-policies/
[2]: https://kubernetes.io/docs/concepts/services-networking/ingress/
[3]: https://github.com/kubernetes/metrics#custom-metrics-api

0 comments on commit 9846a95

Please sign in to comment.