Skip to content

Commit

Permalink
docs: 📰 [#2. eks] aews 2주차 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinminjin authored Feb 20, 2025
1 parent 6b53319 commit e3ee87f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions _posts/aews/2025-02-16-aews02.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ ssh [email protected]

```bash
[root@operator-host ~]# aws configure
AWS Access Key ID [None]: **XXXXXXXXXXXXXXXXXX**
AWS Secret Access Key [None]: **XXXXXXXXXXXXXXXXXX**
AWS Access Key ID [None]: XXXXXXXXXXXXXXXXXX
AWS Secret Access Key [None]: XXXXXXXXXXXXXXXXXX
Default region name [None]: ap-northeast-2
Default output format [None]: json
```
Expand Down Expand Up @@ -902,9 +902,9 @@ export MNSGID=sg-08385fad7996593f1

```bash

aws ec2 authorize-security-group-ingress --group-id $MNSGID --protocol '-1' --cidr **$(curl -s ipinfo.io/ip)/32
aws ec2 authorize-security-group-ingress --group-id $MNSGID --protocol '-1' --cidr $(curl -s ipinfo.io/ip)/32

# ê²°ê³¼**
# ê²°ê³¼
{
"Return": true,
"SecurityGroupRules": [
Expand All @@ -928,7 +928,7 @@ aws ec2 authorize-security-group-ingress --group-id $MNSGID --protocol '-1' --ci
```bash
aws ec2 authorize-security-group-ingress --group-id $MNSGID --protocol '-1' --cidr 172.20.1.100/32

# ê²°ê³¼**
# ê²°ê³¼
{
"Return": true,
"SecurityGroupRules": [
Expand Down Expand Up @@ -1760,7 +1760,7 @@ watch -d "ip link | egrep 'ens|eni' ;echo;echo "[ROUTE TABLE]"; route -n | grep
```bash
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: **Deployment**
kind: Deployment
metadata:
name: netshoot-pod
spec:
Expand All @@ -1775,7 +1775,7 @@ spec:
spec:
containers:
- name: netshoot-pod
image: **nicolaka/netshoot**
image: nicolaka/netshoot
command: ["tail"]
args: ["-f", "/dev/null"]
terminationGracePeriodSeconds: 0
Expand Down Expand Up @@ -4367,7 +4367,7 @@ netshoot-pod 1/1 Running 0 41m 192.168.1.98
**(3) 100번 반복 테스트**
```bash
kubectl exec -it netshoot-pod -- zsh -c "for i in {**1..100**}; do curl -s **svc-clusterip** | grep Hostname; done | sort | uniq -c | sort -nr"
kubectl exec -it netshoot-pod -- zsh -c "for i in {1..100}; do curl -s svc-clusterip | grep Hostname; done | sort | uniq -c | sort -nr"
```
✅ **출력**
Expand Down

0 comments on commit e3ee87f

Please sign in to comment.