Skip to content

Instantly share code, notes, and snippets.

@neilkuan
Created April 24, 2020 02:59
Show Gist options
  • Save neilkuan/578e32936f889f7ea5e906b722ece3d1 to your computer and use it in GitHub Desktop.
Save neilkuan/578e32936f889f7ea5e906b722ece3d1 to your computer and use it in GitHub Desktop.
$ curl -LO https://eksworkshop.com/beginner/110_irsa/deploy.files/iam-pod.yaml
--- inside
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-iam-test
spec:
replicas: 1
selector:
matchLabels:
app: eks-iam-test
template:
metadata:
labels:
app: eks-iam-test
spec:
serviceAccountName: iam-test <-- this is we need to change in the future
containers:
- name: eks-iam-test
image: sdscello/awscli:latest
ports:
- containerPort: 80
$ kubectl apply -f iam-pod.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment