Files
irsa-webhook/example.yaml

40 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2025-12-11 04:52:08 -05:00
apiVersion: v1
kind: ServiceAccount
metadata:
name: example-app
namespace: default
annotations:
2026-01-10 15:42:21 -05:00
api.vultr.com/role: "775a6be6-45cd-4f19-94f5-6e4f96f093ec"
2025-12-11 04:52:08 -05:00
---
apiVersion: v1
kind: Pod
metadata:
name: example-app
namespace: default
spec:
serviceAccountName: example-app
containers:
- name: aws-cli
image: amazon/aws-cli:latest
command:
- /bin/bash
- -c
- |
echo "Testing IRSA configuration..."
echo ""
echo "Environment variables:"
env | grep AWS
echo ""
echo "Token file contents:"
ls -la /var/run/secrets/vultr.com/serviceaccount/
echo ""
echo "Token (first 50 chars):"
head -c 50 /var/run/secrets/vultr.com/serviceaccount/token
echo ""
echo ""
echo "Attempting to assume role..."
aws sts get-caller-identity || echo "Failed to get caller identity (expected if IAM role trust is not configured)"
echo ""
echo "Sleeping for 1 hour..."
sleep 3600
restartPolicy: Never