DocsEdge Stack
1.3
Installation Demo
Installation Demo
Create a Mapping
In a typical configuration workflow, Custom Resource Definitions (CRDs) are used to define the intended behavior of Ambassador Edge Stack. In this demo, we'll deploy a sample service and create a Mapping resource. Mappings allow you to associate parts of your domain with different URLs, IP addresses, or prefixes.
We'll start by deploying the
quoteservice. Save the below configuration into a file namedquote.yaml. This is a basic configuration that tells Kubernetes to deploy thequotecontainer and create a Kubernetesservicethat points to thequotecontainer.Deploy the
quoteservice to the cluster by typing the commandkubectl apply -f quote.yamlNow, create a
Mappingconfiguration that tells Ambassador to route all traffic from/backend/to thequoteservice. Copy the following YAML and save it to a file calledquote-backend.yamlApply the configuration to the cluster by typing the command
kubectl apply -f quote-backend.yamlTest the configuration by typing
curl -Lk https://<hostname>/backend/orcurl -Lk https://<IP address>/backend/
You should see something similar to the following:
A Single Source of Configuration
In the Ambassador Edge Stack, Kubernetes serves as the single source of configuration. Changes made on the command line (via kubectl) are reflected in the Edge Policy Console, and vice versa.
To see this in action, navigate to the Mappings tab. You'll see an entry for the
quote-backendMapping that was just created on the command line.Type
kubectl get hoststo see theHostresource that was created:
Developer Onboarding
The Quote service we just deployed publishes its API as a Swagger document. This API is automatically detected by the Ambassador Edge Stack and published.
In the Edge Policy Console, navigate to the APIs tab. You'll see the documentation there for internal use.
Navigate to
https://<hostname>/docs/orhttps://<IP address>/docs/to see the externally visible Developer Portal (make sure you include the trailing/). This is a fully customizable portal that you can share with third parties who need information about your APIs.
What’s Next?
The Ambassador Edge Stack has a comprehensive range of features to support the requirements of any edge microservice.
To learn more about how the Ambassador Edge Stack works, along with use cases, best practices, and more, check out the Welcome page or read the Ambassador Story.
For a custom configuration, you can install the Ambassador Edge Stack manually.