Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm, eksctl install instructions #84

Merged
merged 1 commit into from
Oct 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 73 additions & 3 deletions docs/install.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
## Install

*Minimum supported Kubernetes version: v1.11*
### Kubernetes Requirements

Although the controller can be used independently from the aws-app-mesh-inject webhook, it is recommended that they be used together. To Install the webhook, execute the following commands:
* *Minimum supported Kubernetes version: v1.11*
* IAM permissions for the controller. See the policy under "Using the install scripts" below, or create a cluster using eksctl with the following flags set:

```bash
eksctl create cluster --appmesh-access
```

Alternatively, you can use set up a role for the controller using [IAM for Service Accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html). This approach follows the principle of least privilege by keeping the permissions required by the controller off the worker node instance profile.

### With Helm (Recommended)

To start, add the eks-charts helm repository:

```bash
helm repo add eks https://aws.github.io/eks-charts
```

Create the `appmesh-system` namespace:

```bash
kubectl create ns appmesh-system
```

Apply the CRDs:

```bash
kubectl apply -f https://raw.githubusercontent.com/aws/eks-charts/master/stable/appmesh-controller/crds/crds.yaml
```

Install the appmesh-controller:

```bash
helm upgrade -i appmesh-controller eks/appmesh-controller --namespace appmesh-system
```

Install the mutating admission webhook (aws-app-mesh-inject):

```bash
helm upgrade -i appmesh-inject eks/appmesh-inject \
--namespace appmesh-system \
--set mesh.create=true \
--set mesh.name=global
```

If you've installed the App Mesh controllers with scripts, you can switch to Helm by removing the controllers with:

```bash
# remove injector objects
kubectl delete ns appmesh-inject
kubectl delete ClusterRoleBinding aws-app-mesh-inject-binding
kubectl delete ClusterRole aws-app-mesh-inject-cr
kubectl delete MutatingWebhookConfiguration aws-app-mesh-inject

# remove controller objects
kubectl delete ns appmesh-system
kubectl delete ClusterRoleBinding app-mesh-controller-binding
kubectl delete ClusterRole app-mesh-controller
Note that you shouldn't delete the App Mesh CRDs or the App Mesh custom resources (virtual nodes or services) in your cluster. Once you've removed the App Mesh controller and injector objects, you can proceed with the Helm installation as described above.
```

### Using the install scripts

```bash
# use `export MESH_NAME=color-mesh` to work with the example in this repository.
Expand Down Expand Up @@ -43,7 +103,17 @@ This will launch the webhook into the appmesh-inject namespace. Now add the corr
"appmesh:DeleteVirtualNode",
"appmesh:DeleteVirtualService",
"appmesh:DeleteVirtualRouter",
"appmesh:DeleteRoute"
"appmesh:DeleteRoute",
"servicediscovery:CreateService",
"servicediscovery:GetService",
"servicediscovery:RegisterInstance",
"servicediscovery:DeregisterInstance",
"servicediscovery:ListInstances",
"route53:GetHealthCheck",
"route53:CreateHealthCheck",
"route53:UpdateHealthCheck",
"route53:ChangeResourceRecordSets",
"route53:DeleteHealthCheck"
],
"Resource": "*"
}
Expand Down