mirror of https://github.com/dapr/docs.git
Merge pull request #4279 from rochabr/eks-tutorial
EKS hosting - setup doc
This commit is contained in:
commit
cabf147bbc
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
type: docs
|
||||
title: "Set up an Elastic Kubernetes Service (EKS) cluster"
|
||||
linkTitle: "Elastic Kubernetes Service (EKS)"
|
||||
weight: 4000
|
||||
description: >
|
||||
Learn how to set up an EKS Cluster
|
||||
---
|
||||
|
||||
This guide walks you through installing an Elastic Kubernetes Service (EKS) cluster. If you need more information, refer to [Create an Amazon EKS cluster](https://docs.aws.amazon.com/eks/latest/userguide/create-cluster.html)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- Install:
|
||||
- [kubectl](https://kubernetes.io/docs/tasks/tools/)
|
||||
- [AWS CLI](https://aws.amazon.com/cli/)
|
||||
- [eksctl](https://eksctl.io/)
|
||||
- [An existing VPC and subnets](https://docs.aws.amazon.com/eks/latest/userguide/network_reqs.html)
|
||||
|
||||
## Deploy an EKS cluster
|
||||
|
||||
1. In the terminal, log into AWS.
|
||||
|
||||
```bash
|
||||
aws configure
|
||||
```
|
||||
|
||||
1. Create an EKS cluster. To use a specific version of Kubernetes, use `--version` (1.13.x or newer version required).
|
||||
|
||||
```bash
|
||||
eksctl create cluster --name [your_eks_cluster_name] --region [your_aws_region] --version [kubernetes_version] --vpc-private-subnets [subnet_list_seprated_by_comma] --without-nodegroup
|
||||
```
|
||||
|
||||
Change the values for `vpc-private-subnets` to meet your requirements. You can also add additional IDs. You must specify at least two subnet IDs. If you'd rather specify public subnets, you can change `--vpc-private-subnets` to `--vpc-public-subnets`.
|
||||
|
||||
1. Verify kubectl context:
|
||||
|
||||
```bash
|
||||
kubectl config current-context
|
||||
```
|
||||
|
||||
1. Update the security group rule to allow the EKS cluster to communicate with the Dapr Sidecar by creating an inbound rule for port 4000.
|
||||
|
||||
```bash
|
||||
aws ec2 authorize-security-group-ingress --region [your_aws_region] \
|
||||
--group-id [your_security_group] \
|
||||
--protocol tcp \
|
||||
--port 4000 \
|
||||
--source-group [your_security_group]
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Access permissions
|
||||
|
||||
If you face any access permissions, make sure you are using the same AWS profile that was used to create the cluster. If needed, update the kubectl configuration with the correct profile:
|
||||
|
||||
```bash
|
||||
aws eks --region [your_aws_region] update-kubeconfig --name [your_eks_cluster_name] --profile [your_profile_name]
|
||||
```
|
||||
|
||||
## Related links
|
||||
|
||||
- [Learn more about EKS clusters](https://docs.aws.amazon.com/eks/latest/userguide/clusters.html)
|
||||
- [Learn more about eksctl](https://eksctl.io/getting-started/)
|
||||
- [Try out a Dapr quickstart]({{< ref quickstarts.md >}})
|
||||
- Learn how to [deploy Dapr on your cluster]({{< ref kubernetes-deploy.md >}})
|
||||
- [Kubernetes production guidelines]({{< ref kubernetes-production.md >}})
|
Loading…
Reference in New Issue