Skip to content

Instantly share code, notes, and snippets.

View cqbqdd11519's full-sized avatar

Sunghyun Kim cqbqdd11519

View GitHub Profile

이미지 스캐닝

  • 정적 이미지 취약점 분석

    • 통상적으로는 이미지 내의 CVE (Common Vulnerabilities Exposure) 탐색
      (- 동적 분석은 Sandbox 환경에서 컨테이너 이미지 실행 & indicators of compromise (IOC) 확인)
  • Clair vs Anchroe vs Trivy

    • 큰 틀에서는 모두 같음. CVE 데이터베이스 긁어와서 쌓아놓고 레이어 .tar 까서 파일시스템 비교.
    • Ubuntu/Debian/Centos/Alpine 등등에 대한 CVE 검사는 동일
      (- Trivy의 경우 npm, pip, maven 패키지에 대한 CVE 검색도 가능)
  • Clair 선택 이유? - Quay, OpenShift에서 씀, 가장 많이 쓰임 (깃헙 스타 가장 많음ㅋㅋ)

#!/bin/bash
/sbin/modprobe nvidia
if [ "$?" -eq 0 ]; then
# Count the number of NVIDIA controllers found.
NVDEVS=`lspci | grep -i NVIDIA`
N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l`
NVGA=`echo "$NVDEVS" | grep "VGA compatible controller" | wc -l`
accelerators:[{
type: "nvidia.com/gpu",
devices:[{
name: "nvidia-gpu",
pci: "0000:02:00.0",
device_file:[
"/dev/nvidia0",
"/dev/nvidiactl",
"/dev/nvidia-modeset",
"/dev/nvidia-uvm",
@cqbqdd11519
cqbqdd11519 / k8s_installation_guide.md
Last active November 6, 2023 20:54
Installation and setting guide of kubernetes using kubeadm

Kubernetes Installation & Setup Guide

https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/

Before Begin

Following document is about installing and setting up a cluster using kubernetes. Basic structure it supports is a cluster with one MASTER and multiple NODES(slave nodes).

  • COMMON : You should perform for both MASTER and NODE.
  • MASTER : You should perform for MASTER only.
  • NODE : You should perform for NODE only.