2025-02-18
  • nginx
  • cheatsheet
  • nginx cheatsheet

    $remote_addr: nginx로 요청을 보낸 client의 address 정보. LB, proxy 를 경유하게되면 마지막 장비의 IP 가 기록됨. $http_x_forwarded_for: nginx로 들어왔을 때 존재 하던 X-Forwarded-For 설정을 그대로 넘겨준다. $proxy_add_x_forwarded_for: nginx로 들어왔을 때 존재 하던 X-Forwarded-For 설정에 $remote_addr 값 추가

    2025-02-18
  • nerdctl
  • cheatsheet
  • nerdctl cheatsheet

    # Run command in a new container
    nerdctl run
    # Run a command in a running container
    nerdctl exec
    # Create a new container
    nerdctl create
    # Fetch container logs
    nerdctl logs
    # Start one or more running containers.
    nerdctl start
    # Stop one or more running containers.
    nerdctl stop
    # Restart one or more running containers.
    nerdctl restart
    # Remove one or more containers/images.
    nerdctl rm/rmi
    # Remove all stopped containers.
    nerdctl container prune
    # Build an image from a Dockerfile.
    nerdctl build
    # Pull/push an image from a registry.
    nerdctl pull/push
    # Create a new image from a container’s changes
    nerdctl commit
    # List images
    nerdctl images
    # Show the history of an image.
    nerdctl image history
    # Remove unused images.
    nerdctl image purne
    # Convert an image format. eg: nerdctl image convert [OPTIONS] SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
    nerdctl image convert
    # ?
    # Encrypt image layers
    nerdctl image encrypt
    # Log in to a container registry.
    nerdctl login
    # List networks
    nerdctl network ls
    # Display detailed information on one or more networks.
    nerdctl network inspect
    

    2025-01-15
  • k8s
  • resource
  • k8s endpoints

    시크릿

    • 시크릿의 종류
      • generic : Opaque type, value 가 base64 로 인코딩된다.
      • tls : kubernetes.io/tls Type, –cert, –key 로 인증서와 키를 직접 명시한다.

    2025-01-13
  • k8s
  • k8s certification list

    • CNCF(Cloud Native Computing Foundation)와 리눅스 재단(Linux Foundation) 에서 운영
    • 모두 온라인 시험
    • 시험 목록
      • CKA (Certified Kubernetes Administrator, 기초, 실습형 395$)
      • CKAD (Certified Kubernetes Application Developer, 기초, 실습형 395$)
      • CKS (Certified Kubernetes Security Specialist, 심화, 실습형 395$)
      • KCNA (Kubernetes and Cloud Native Associate, 기초, 객관식 250$)
      • KCSA (Kubernetes and Cloud Native Security Associate, 심화, 객관식 250$)
    • 시험신청
      • 불합격시 1번 기회가 더있음
      • 합격시 2년 유효기간
    • 학습
      • 유데미, 코세라 등
      • 리눅스 재산의 모의고사 활용
        • 시험신청시 무료기회
      • 킬러쉘 활용