리셋 되지 말자

awscli irsa 테스트 본문

Kubernetes

awscli irsa 테스트

kyeongjun-dev 2023. 12. 27. 13:59

참고링크

https://repost.aws/knowledge-center/eks-pods-iam-role-service-accounts

예시

apiVersion: v1
kind: Pod
metadata:
  name: awscli
  labels:
    app: awscli
spec:
  serviceAccountName: YOUR_SERVICE_ACCOUNT
  containers:
  - image: amazon/aws-cli
    command:
      - "sleep"
      - "604800"
    imagePullPolicy: IfNotPresent
    name: awscli
  restartPolicy: Always

명령어

awscli env | grep AWS
aws sts get-caller-identity

'Kubernetes' 카테고리의 다른 글

Weaviate  (0) 2024.04.06
Grafana, Tempo 모니터링 간단 예시 - springboot, mongodb  (1) 2024.01.02
[Trino] 설치 및 맛보기  (0) 2023.08.10
Python Pod 예시...  (0) 2023.07.07
[Mongodb] mongodb scaling on kubernetes  (2) 2023.06.09
Comments