Giter VIP home page Giter VIP logo

eks-appmesh-profile's Introduction

eks-appmesh-profile

This repository is an eksctl profile for deploying the App Mesh Kubernetes components along with monitoring and progressive delivery tooling on an EKS cluster.

Install

Create an EKS cluster named appmesh:

eksctl create cluster --name=appmesh \
--region=us-west-2 \
--nodes 2 \
--node-volume-size=120 \
--appmesh-access

The above command will create a two nodes cluster with App Mesh IAM policy attached to the EKS node instance role.

Create a repository on GitHub and run the enable repo and enable profile commands (replace GHUSER and GHREPO values with your own):

export GHUSER=username
export GHREPO=repo
export EKSCTL_EXPERIMENTAL=true

eksctl enable repo \
--cluster=appmesh \
--region=us-west-2 \
[email protected]:${GHUSER}/${GHREPO} \
--git-user=${GHUSER} \
--git-email=${GHUSER}@users.noreply.github.com

The command eksctl enable repo takes an existing EKS cluster and an empty repository and sets up a GitOps pipeline.

After the command finishes installing Flux and Helm Operator, you will be asked to add Flux's deploy key to your GitHub repository. Once that is done, Flux will be able to pick up changes in the repository and deploy them to the cluster.

eksctl enable profile appmesh \
--cluster=appmesh \
--region=us-west-2 \
[email protected]:${GHUSER}/${GHREPO} \
--git-user=fluxcd \
--git-email=${GHUSER}@users.noreply.github.com

The command eksctl enable profile appmesh installs the App Mesh control plane on this cluster, and adds its manifests to the configured repository.

List the installed components:

$ kubectl get helmreleases --all-namespaces

NAMESPACE        NAME                 RELEASE              STATUS     MESSAGE                  AGE
appmesh-system   appmesh-controller   appmesh-controller   DEPLOYED   helm install succeeded   1m
appmesh-system   appmesh-inject       appmesh-inject       DEPLOYED   helm install succeeded   1m
appmesh-system   appmesh-prometheus   appmesh-prometheus   DEPLOYED   helm install succeeded   1m
appmesh-system   appmesh-grafana      appmesh-grafana      DEPLOYED   helm install succeeded   1m
appmesh-system   flagger              flagger              DEPLOYED   helm install succeeded   1m
kube-system      metrics-server       metrics-server       DEPLOYED   helm install succeeded   1m

Verify that the mesh has been created and it's active:

$ kubectl describe mesh

Name:         appmesh
API Version:  appmesh.k8s.aws/v1beta1
Kind:         Mesh
Spec:
  Service Discovery Type:  dns
Status:
  Mesh Condition:
    Status: True
    Type:   MeshActive

Access the Grafana dashboards with:

kubectl -n appmesh-system port-forward svc/appmesh-grafana 3000:3000

Open your browser and navigate to localhost:3000.

AWS App Mesh: Control Plane AWS App Mesh: Data Plane

Get in touch

Create an issue, or login to Weave Community Slack (#eksctl) (signup).

Weaveworks follows the CNCF Code of Conduct. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a Weaveworks project maintainer, or Alexis Richardson ([email protected]).

eks-appmesh-profile's People

Contributors

javatestcase avatar marccarre avatar squaremo avatar stefanprodan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eks-appmesh-profile's Issues

Create hands-on workshop

Create a hands-on workshop to showcase:

  • App Mesh installation on EKS
  • GitOps workflow for a demo app running on App Mesh
  • Progressive delivery with Flagger and Prometheus
  • Conformance testing for canary releases

Add Flagger

Create a HelmRelease for Flagger configured with App Mesh.

Add a progressive delivery demo profile

Create a demo profile with:

  • demo app (podinfo)
  • expose the app outside the mesh (Envoy ingress + ELB)
  • load testing service for canary releases (Flagger tester)

What permissions are needed for the demo?

It's unclear what permissions are needed to complete the hands-on demo :(
After spending an inordinate amount of time in the AWS IAM console... I surrendered...

Screen Shot 2019-11-20 at 2 08 52 AM

I added full administrative access to the IAM role and yet, still nothing! What's missing?

[ℹ]  eksctl version 0.10.1
[ℹ]  using region us-west-2
[✖]  getting availability zones: getting availability zones for us-west-2: OptInRequired: You are not subscribed to this service. Please go to http://aws.amazon.com to subscribe.
	status code: 401, request id: a3824087-ca85-4acc-a326-6413e2c2fa54

Update appmesh-gateway in demo

Currently the demo for Progressive Delivery from:

https://eks.handson.flagger.dev/profile/#install-app-mesh

and

https://weaveworks-gitops.awsworkshop.io/50_workshop_5_accelerating_sdlc/30_install_appmesh/01_install_app_mesh.html

point to the demo branch of this repo.

the demo/ingress/appmesh-gateway.yaml however needs to be modified to stop using a deprecated Chart that is no longer supported and use the official eks-chart.

The chart change however creates some additional work because the old chart required mesh.name parameter and the new one does not have anything equivalent.

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.