Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Failed with IAM Roles chapter (kube2iam section) #317

Open
@vietwow

Description

@vietwow

Hi,

I follow the chapter https://github.com/aws-samples/aws-workshop-for-kubernetes/tree/master/roles on Kubernetes v1.8.5 (which created by kops 1.8) using Calico network

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kube2iam
labels:
app: kube2iam
spec:
template:
metadata:
labels:
name: kube2iam
spec:
hostNetwork: true
containers:
- image: jtblin/kube2iam:latest
name: kube2iam
args:
- "--iptables=true"
- "--host-ip=$(HOST_IP)"
- "--host-interface=cali+"
env:
- name: HOST_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- containerPort: 8181
hostPort: 8181
name: http
securityContext:
privileged: true

Everything is OK until the final step, I got the below error when test the result :

$ kubectl exec -it aws-cli aws s3 ls
Unable to locate credentials. You can configure credentials by running "aws configure".
command terminated with exit code 255

It seems that pod "aws-cli" don't recognize the aws role, still looking aws credentials. But why ? Anyone can help me ? Thank you so much

Best Regards,
VietNC

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions