From ed63d96aa5a6fb03bb700c0f59990d4226c4cab0 Mon Sep 17 00:00:00 2001 From: cristov Date: Mon, 13 Aug 2018 09:12:35 +0900 Subject: [PATCH] ppt update --- Phase1/aws-auth-cm.sh | 14 -------------- Phase1/aws-auth-cm.yaml | 12 ------------ Phase1/aws-auth-cm.yaml-e | 12 ------------ 3 files changed, 38 deletions(-) delete mode 100755 Phase1/aws-auth-cm.sh delete mode 100644 Phase1/aws-auth-cm.yaml delete mode 100644 Phase1/aws-auth-cm.yaml-e diff --git a/Phase1/aws-auth-cm.sh b/Phase1/aws-auth-cm.sh deleted file mode 100755 index 1a47128..0000000 --- a/Phase1/aws-auth-cm.sh +++ /dev/null @@ -1,14 +0,0 @@ -# aws-auth ConfigMap script -#title aws-auth-cm.sh -#description This script will add a ConfigMap aws-auth to the EKS cluster k8s-workshop, allowing the worker nodes to join the cluster. -#author @buzzsurfr -#contributors @buzzsurfr @dalbhanj @cloudymind -#date 2018-06-05 -#version 0.1 -#usage curl -sSL https://s3.amazonaws.com/aws-kubernetes-artifacts/v0.5/aws-auth-cm.sh | bash -s stable -#============================================================================== - -curl -O https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-06-05/aws-auth-cm.yaml -export EKS_WORKER_ROLE=$(aws cloudformation describe-stacks --stack-name k8s-workshop-worker-nodes | jq -r '.Stacks[0].Outputs[]|select(.OutputKey=="NodeInstanceRole")|.OutputValue') -sed -i -e "s##${EKS_WORKER_ROLE}#g" aws-auth-cm.yaml -kubectl apply -f aws-auth-cm.yaml diff --git a/Phase1/aws-auth-cm.yaml b/Phase1/aws-auth-cm.yaml deleted file mode 100644 index 03c9d8f..0000000 --- a/Phase1/aws-auth-cm.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: aws-auth - namespace: kube-system -data: - mapRoles: | - - rolearn: arn:aws:iam::219737062836:role/k8s-workshop-worker-nodes-NodeInstanceRole-FSWFXG84GZ1Y - username: system:node:{{EC2PrivateDNSName}} - groups: - - system:bootstrappers - - system:nodes diff --git a/Phase1/aws-auth-cm.yaml-e b/Phase1/aws-auth-cm.yaml-e deleted file mode 100644 index 4634f4e..0000000 --- a/Phase1/aws-auth-cm.yaml-e +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: aws-auth - namespace: kube-system -data: - mapRoles: | - - rolearn: - username: system:node:{{EC2PrivateDNSName}} - groups: - - system:bootstrappers - - system:nodes