Created
April 24, 2020 02:59
-
-
Save neilkuan/578e32936f889f7ea5e906b722ece3d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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