본문 바로가기

분류 전체보기

(67)
kubernetes labels 기본적인 kubernetes resource, option 등을 설명한 블로그입니다. 추가적인 기능을 보고싶으시면 docs를 참고바랍니다. https://kubernetes.io/docs/home/ Kubernetes Documentation Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation. kubernetes.io label은 Node를 포함하여 pod, deploym..
kubernetes services 기본적인 kubernetes resource, option 등을 설명한 블로그입니다. 추가적인 기능을 보고싶으시면 docs를 참고바랍니다. https://kubernetes.io/docs/home/ Kubernetes Documentation Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation. kubernetes.io Kubernetes Service -> pod들은 각각..
kubernetes HA(Highly Available), multi master node 기본적인 kubernetes resource, option 등을 설명한 블로그입니다. 추가적인 기능을 보고싶으시면 docs를 참고바랍니다. https://kubernetes.io/docs/home/ Kubernetes Documentation Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation. kubernetes.io control plane(master node)를 최소..
내맘대로 Fastapi Document summary[9] # app/router/item.py # We know all the path operations in this module have the same # Path prefix: /items. # tags: (just one tag: items). # Extra responses. # dependencies: they all need that X-Token dependency we created. # instead of adding all that to each path operation, we can add it to the APIRouter. from fastapi import APIRouter, Depends, HTTPException from ..dependencies import get_token..
kubernetes Statefulset, Job, Cronjob 기본적인 kubernetes resource, option 등을 설명한 블로그입니다. 추가적인 기능을 보고싶으시면 docs를 참고바랍니다. https://kubernetes.io/docs/home/ Kubernetes Documentation Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation. kubernetes.io StatefulSet - pod의 상태(pod 이름, ..
kubernetes ReplicaSet, Deployment, Daemon set 기본적인 kubernetes resource, option 등을 설명한 블로그입니다. 추가적인 기능을 보고싶으시면 docs를 참고바랍니다. https://kubernetes.io/docs/home/ Kubernetes Documentation Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications. The open source project is hosted by the Cloud Native Computing Foundation. kubernetes.io ReplicationController은 old한 기술..
내맘대로 Fastapi Document summary[8] # sql_app/database.py from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db" # SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) SessionLocal = sessionma..
내맘대로 Fastapi Document summary[7] A "middleware" is a function that works with every request before it is processed by any specific path operation. And also with every response before returning it. If you have dependencies with yield, the exit code will run after the middleware. If there were any background tasks (documented later), they will run after all the middleware. from fastapi import FastAPI, Request app = FastAPI() @app..