assignment's People
assignment's Issues
week 5
week 7
- MSA (mario) 어플리케이션 배포 확인
- netpod 에서 mario 파드의 IP 로 DNAT 되는지 확인
- DSR 테스트를 위한 httpd 파드, svc1 배포
- 옵션 헤더의 Hex 에서 정보 추출 (마스터 노드에서 접속)
- k8s-pc, k8s-rtr 에 웹서버 정보 확인 (mediabot 에서 접속 테스트)
k8s-pc 웹서버 로그에서 클라이언트는 pod 의 IP 임.
- Egress GW 배포 확인 (k8s-w2 에서)
- egress g/w 적용 후 webpod 에서 클라이언트 ip 확인
192.168.20.100/32 목적지와 통신 할 때는 egressSourceIP 를 192.168.10.240 를 사용
- BPG 설정 배포 확인
- k8s-rtr 에서 bgp neigh 확인
- 테스트 파드, 서비스 배포 확인
- k8s-rtr 에 테스트 파드의 svc IP 가 보인다.
- ECMP (?) 확인 된다.
- k8s-pc 에서 접속 잘 됨
- 5Mbps 로 변경 후 테스트
week 8
week 6
week 4
mario pod 배포
apiVersion: apps/v1
kind: Deployment
metadata:
name: mario
labels:
app: mario
spec:
replicas: 1
selector:
matchLabels:
app: mario
template:
metadata:
labels:
app: mario
spec:
containers:
- name: mario
image: pengbai/docker-supermario
ports:
- containerPort: 8080
name: http
---
apiVersion: v1
kind: Service
metadata:
name: mario
spec:
ports:
- name: http
port: 80
targetPort: 8080
selector:
app: mario
type: NodePort
파드 및 서비스 객체 확인
curl 확인
svc.externalTrafficPolicy=Cluster
이기 때문에 master 노드 IP 를 사용해도 접속 가능
단, 클라이언트 IP 가 노드 IP 로 SNAT 된다. 외부 클라이언트 IP 를 알 수 없다.
외부 클라이언트 IP 를 보존하기 위해서 svc.externalTrafficPolicy=Local
로 변경했다. 파드가 떠있지 않는 노드인 master 노드 IP 로는 접속이 불가능하다.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.