-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: 📰 [#2. eks] aews 2주차 ì •ë¦¬
- Loading branch information
1 parent
6b53319
commit e3ee87f
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
|
@@ -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": [ | ||
|
@@ -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": [ | ||
|
@@ -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: | ||
|
@@ -1775,7 +1775,7 @@ spec: | |
spec: | ||
containers: | ||
- name: netshoot-pod | ||
image: **nicolaka/netshoot** | ||
image: nicolaka/netshoot | ||
command: ["tail"] | ||
args: ["-f", "/dev/null"] | ||
terminationGracePeriodSeconds: 0 | ||
|
@@ -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" | ||
``` | ||
✅ **ì¶œë ¥** | ||
|