Skip to content

Commit af1b3b2

Browse files
author
Sandip Das
committed
configuration updated
1 parent 30b313b commit af1b3b2

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

buildspec_eks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ phases:
2020
commands:
2121
- echo Logging in to Amazon EKS...
2222
- aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name $AWS_CLUSTER_NAME --role-arn arn:aws:iam::120717539064:role/service-role/codebuild-samplecicddemo-service-role
23+
- echo check config
24+
- kubectl config view --minify
25+
- echo check kubectl access
26+
- kubectl get svc
2327
- echo Logging in to Amazon ECR...
2428
- aws ecr get-login-password --region $AWS_DEFAULT_REGION | docker login --username AWS --password-stdin $AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com
2529
- REPOSITORY_URI=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_DEFAULT_REGION.amazonaws.com/$IMAGE_REPO_NAME

k8s/rbac/aws-auth.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,44 @@
11
apiVersion: v1
22
data:
33
mapRoles: |
4-
- rolearn: arn:aws:iam::120717539064:role/NodeInstanceRole
5-
username: system:node:{{EC2PrivateDNSName}}
6-
groups:
7-
- system:bootstrappers
8-
- system:nodes
94
- rolearn: arn:aws:iam::120717539064:role/service-role/codebuild-samplecicddemo-service-role
10-
username: codebuild-samplecicddemo-service-role
5+
username: system:node:{{EC2PrivateDNSName}}
116
groups:
12-
- system:masters
7+
- system:bootstrappers
8+
- system:nodes
9+
- system:masters
10+
mapUsers: |
11+
[]
1312
kind: ConfigMap
1413
metadata:
14+
annotations:
15+
kubectl.kubernetes.io/last-applied-configuration: |
16+
{"apiVersion":"v1","data":{"mapRoles":"- rolearn: arn:aws:iam::120717539064:role/service-role/codebuild-samplecicddemo-service-role\n username: system:node:{{EC2PrivateDNSName}}\n groups:\n - system:bootstrappers\n - system:nodes\n"},"kind":"ConfigMap","metadata":{"annotations":{},"name":"aws-auth","namespace":"kube-system"}}
17+
creationTimestamp: "2021-04-25T21:17:41Z"
18+
managedFields:
19+
- apiVersion: v1
20+
fieldsType: FieldsV1
21+
fieldsV1:
22+
f:data:
23+
.: {}
24+
f:mapUsers: {}
25+
manager: eksctl
26+
operation: Update
27+
time: "2021-04-25T21:17:41Z"
28+
- apiVersion: v1
29+
fieldsType: FieldsV1
30+
fieldsV1:
31+
f:data:
32+
f:mapRoles: {}
33+
f:metadata:
34+
f:annotations:
35+
.: {}
36+
f:kubectl.kubernetes.io/last-applied-configuration: {}
37+
manager: kubectl
38+
operation: Update
39+
time: "2021-04-27T04:26:27Z"
1540
name: aws-auth
16-
namespace: kube-system
41+
namespace: kube-system
42+
resourceVersion: "327185"
43+
selfLink: /api/v1/namespaces/kube-system/configmaps/aws-auth
44+
uid: a67fcc4b-f7f8-4796-9c1a-1e5f72ca1657

0 commit comments

Comments
 (0)