From 4f89925bee5989225b6323c484108f371f52b48c Mon Sep 17 00:00:00 2001 From: Kaveh Vahedipour Date: Tue, 6 Nov 2018 11:10:31 +0100 Subject: [PATCH] add ebs volumes to eks doc --- docs/Manual/Tutorials/Kubernetes/EKS.md | 27 +++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/Manual/Tutorials/Kubernetes/EKS.md b/docs/Manual/Tutorials/Kubernetes/EKS.md index 73fabc0cd..3c8576dc9 100644 --- a/docs/Manual/Tutorials/Kubernetes/EKS.md +++ b/docs/Manual/Tutorials/Kubernetes/EKS.md @@ -134,8 +134,12 @@ Once stack is ready, navigate at the bottom to the Outputs pane and note down th ``` $ curl -O https://amazon-eks.s3-us-west-2.amazonaws.com/cloudformation/2018-08-30/aws-auth-cm.yaml ``` -* Modify `data|mapRoles|rolearn` to match - equal to the `NoteInstanceRole`, you acquired after your node stack was finished +* Modify `data|mapRoles|rolearn` to match the `NoteInstanceRole`, you acquired after your node stack was finished + +* Deploy node integration +``` +$ kubectl apply -f aws-auth-cm.yaml +``` ### Wait for nodes to join the cluster and get ready Monitor `kubectl get nodes` and watch your nodes to be ready @@ -147,6 +151,25 @@ $ kubectl get nodes ip-172-31-45-199.us-west-2.compute.internal Ready 1d v1.10.3 ``` +### Create a storage class for persistent data + +* Edit a new file `gp2-storage-class.yaml` +``` +kind: StorageClass +apiVersion: storage.k8s.io/v1 +metadata: + name: gp2 +provisioner: kubernetes.io/aws-ebs +parameters: + type: gp2 +reclaimPolicy: Retain +mountOptions: + - debug +``` +* Apply the storage class +``` +$ kubectl apply -f gp2-storage-class.yaml +``` ### Setup `helm` * Create service account for `tiller`