We'll start by installing Emissary-ingress into your cluster.
We recommend using Helm but there are other options below to choose from.
Now is a great moment to connect your new installation to Ambassador Cloud in order to fully leverage the power of Emissary-ingress and the Developer Control Plane (DCP).
Log in to Ambassador Cloud with GitHub, GitLab or Google and select your team account.
Provide a name to identify your Kubernetes cluster and then press Generate Key
Copy the token and follow along here.
Once your cluster is connected to Ambassador Cloud, a community license is automatically applied.
We recommend using Helm to install but there are other options below to choose from.
Emissary-ingress uses Kubernetes Custom Resource Definitions (CRDs) to declaratively define its desired state. The workflow you are going to build uses a simple demo app, a
Listener CRD, and a
Mapping CRD. The
Listener CRD tells Emissary-ingress what port to listen on, and the
Mapping CRD tells Emissary-ingress how to route incoming requests by host and URL path from the edge of your cluster to Kubernetes services.
Start by creating a
Listenerresource for HTTP on port 8080:
Apply the YAML for the "Quote" service.
Generate the YAML for a
Mappingto tell Emissary-ingress to route all traffic inbound to the
/backend/path to the
In this step, we'll be using the Mapping Editor, which you can find in the service details view of your Ambassador Cloud connected installation. Open your browser to https://app.getambassador.io/cloud/services/quote/details and click on New Mapping.
Default options are automatically populated. Enable and configure the following settings, then click Generate Mapping:
Whether you decide to automatically push the change to Git for this newly create Mapping resource or not, the resulting Mapping should be similar to the example below.
Apply this YAML to your target cluster now.
Store the Emissary-ingress load balancer IP address to a local environment variable. You will use this variable to test access to your service.
Test the configuration by accessing the service through the Emissary-ingress load balancer:
Explore some of the popular tutorials on Emissary-ingress:
- Configuring Emissary-ingress communications: configure how Emissary-ingress handles communication with clients
- Intro to
Mappings: declaratively routes traffic from the edge of your cluster to a Kubernetes service
Listenerresource: configure ports, protocols, and security options for your ingress.
Hostresource: configure a hostname and TLS options for your ingress.
Emissary-ingress has a comprehensive range of features to support the requirements of any edge microservice.
To learn more about how Emissary-ingress works, read the Emissary-ingress Story.