GithubHelp home page GithubHelp logo

assignment's People

Watchers

 avatar

assignment's Issues

week 5

실습 과제 1

  • 샘플 어플리케이션 배포
    image

  • resolv.conf 확인

image

  • 서비스 도메인 쿼리 확인
    image

  • curl 동작 확인
    image

  • env 에 저장된 도메인 정보 확인
    image

실습 과제 2

layer 2

  • metallb 설정
    image

  • 단말 (k8s-pc) 에서 lb 서비스로 접속 테스트
    image

부하 분산 테스트

image

bgp

  • metallb 설정

image

  • BGP 정보 확인
    image

  • 서버 접속 테스트

image

  • externalTrafficPolicy: Local 적용 후 테스트
    image

image

week 7

image

  • MSA (mario) 어플리케이션 배포 확인

image

  • netpod 에서 mario 파드의 IP 로 DNAT 되는지 확인

image


  • DSR 테스트를 위한 httpd 파드, svc1 배포

image

  • 옵션 헤더의 Hex 에서 정보 추출 (마스터 노드에서 접속)

image


  • k8s-pc, k8s-rtr 에 웹서버 정보 확인 (mediabot 에서 접속 테스트)

k8s-pc 웹서버 로그에서 클라이언트는 pod 의 IP 임.

image

image

  • Egress GW 배포 확인 (k8s-w2 에서)

image

  • egress g/w 적용 후 webpod 에서 클라이언트 ip 확인
    192.168.20.100/32 목적지와 통신 할 때는 egressSourceIP 를 192.168.10.240 를 사용

image


  • BPG 설정 배포 확인

image

  • k8s-rtr 에서 bgp neigh 확인

image

  • 테스트 파드, 서비스 배포 확인

image

  • k8s-rtr 에 테스트 파드의 svc IP 가 보인다.

image

  • ECMP (?) 확인 된다.

image

  • k8s-pc 에서 접속 잘 됨

image


  • egress bandwidth limitation 동작하는 인터페이스 확인
    image

  • 테스트 파드의 어노테이션에 BW 제한 정보가 보임
    image

  • 10Mbps 로 BW 가 제한됨

image

  • 5Mbps 로 변경 후 테스트

image

week 6

  • metallb 배포

image

  • ingress-controller svc lb 로 배포

image

  • echoserver 파드 배포
    image

  • ssl 포함 Ingress 설정
    image

  • host 에 dns 설정
    image

  • 접속 확인
    image

  • packet 캡쳐
    image

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

파드 및 서비스 객체 확인

image

curl 확인

svc.externalTrafficPolicy=Cluster 이기 때문에 master 노드 IP 를 사용해도 접속 가능
단, 클라이언트 IP 가 노드 IP 로 SNAT 된다. 외부 클라이언트 IP 를 알 수 없다.
image

외부 클라이언트 IP 를 보존하기 위해서 svc.externalTrafficPolicy=Local 로 변경했다. 파드가 떠있지 않는 노드인 master 노드 IP 로는 접속이 불가능하다.

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.