본문 바로가기
3. Object 그려보며 이해하기 출처: https://cafe.naver.com/kubeops/36▶ Object ▶ Label / Selector / Naming (1)​▶ Label / Selector / Naming (2) 2025. 4. 21.
2. 모니터링 설치 ※ 해당 설치는 Storage 연동을 따로 할당하지 않았기 때문에 VM이 재기동 될때, 기존 저장된 로그 데이터는 사라집니다.​[1] Github(k8s-1pro)에서 Prometheus(with Grafana), Loki-Stack yaml 다운로드▶ [k8s-master] Console 접속 후 아래 명령 실행 [root@k8s-master ~]# yum -y install git# 로컬 저장소 생성git init monitoringgit config --global init.defaultBranch maincd monitoring# remote 추가 ([root@k8s-master monitoring]#)git remote add -f origin https://github.com/k8s-1pro/.. 2025. 4. 18.
1. 쿠버네티스 쉽고 빠르게 설치하는 방법 - Mac 버전용 (m시리즈) 쿠버네티스 모든 노드 [1] rocky linux 기본 설정 : 패키지 업데이트, 타임존 설정 [2] kubeadm 설치 전 사전작업 : 방화벽 해제, 스왑 비활성화 [3] 컨테이너 런타임 설치 [3-1] 컨테이너 런타임 설치 전 사전작업 : iptables 세팅 [3-2] 컨테이너 런타임 (containerd 설치) [3-2-1] containerd 패키지 설치 (option2) [3-2-1-1] docker engine 설치 : repo 설정, containerd 설치 [3-3] 컨테이너 런타임 : cri 활성화 [4] kubeadm 설치 : repo 설정, SELinux 설정 .. 2025. 4. 18.
0. install for mac 보호되어 있는 글 입니다. 2025. 4. 18.
SQLAlchemy 관계 종류 1:1 (일대일)예: 유저(User)는 하나의 프로필(Profile)만 가짐# user.pyclass User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) username = Column(String) profile = relationship("Profile", back_populates="user", uselist=False)# profile.pyclass Profile(Base): __tablename__ = "profiles" id = Column(Integer, primary_key=True) bio = Column(String) user_id = Column(Integer,.. 2025. 4. 17.
SQLAlchemy DB 처리 방식 1. SQLAlchemy + Pydantic 방식Pydantic과 함께 쓰면 API/DB 역할 분리가 명확함DB 데이터를 "객체"로 다룰 수 있음 (User, Post 등)relationship, ForeignKey로 테이블 간 관계 표현 가능# 1. Pydantic 모델 (입출력용)class UserCreate(BaseModel): username: str email: str# 2. SQLAlchemy ORM 모델 (DB 테이블 대응)class User(Base): __tablename__ = "users" id = Column(Integer, primary_key=True) username = Column(String) email = Column(String)# 3. .. 2025. 4. 17.