Skip to content

Commit

Permalink
Switch to Alpine and add PSQL client
Browse files Browse the repository at this point in the history
  • Loading branch information
avnes committed Sep 17, 2024
1 parent 657cb77 commit f96e5c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nginx:1.27
FROM nginx:1.27-alpine

RUN apt update && \
apt install awscli less -y
RUN apk update && \
apk add aws-cli less postgresql14-client
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Replace <AWS_ACCOUNT_ID>, <AWS_REGION>, <GUID> and test-irsa-ns (Namespace) and
- Apply test-irsa.yaml to your EKS cluster:

```bash
kubectl config set-context --current --namespace=<namespace>
kubectl apply -f test-irsa.yaml
```

Expand All @@ -49,8 +50,9 @@ This will create a namespace called *test-irsa-ns* with a pod inside.
### Get inside the pod

```bash
POD_NAME=$(kubectl get pod -n test-irsa-ns --no-headers -o custom-columns='NAME:.metadata.name')
kubectl --namespace test-irsa-ns exec --stdin --tty $POD_NAME -- /bin/bash
kubectl config set-context --current --namespace=<namespace>
POD_NAME=$(kubectl get pod --no-headers -o custom-columns='NAME:.metadata.name')
kubectl exec --stdin --tty $POD_NAME -- /bin/bash
```

### Find your IAM identity
Expand Down

0 comments on commit f96e5c0

Please sign in to comment.