sre-agent
An autonomous Kubernetes SRE agent. It monitors cluster health, diagnoses issues, and applies fixes — with human approval required before any write operation.
파일 탐색기
- CODEOWNERS
- architecture.md
- confirmation.png
- slack-health-report.png
- slack_health_2.png
- sre-bot-architecture-overview.png
- sre-bot-architecture-simple.mmd
- sre-bot-architecture-simple.png
- sre-bot-cost-safety.png
- sre-bot-hitl-sequence.png
- sre-bot-request-paths.png
- create_dataset.py
- evaluators.py
- sre-agent-k8s-eval.json
- sre-agent-k8s-eval.jsonl
- upload_online_evals.py
- clusterrole.yaml
- clusterrolebinding.yaml
- deployment.yaml
- kustomization.yaml
- namespace.yaml
- role-writer.yaml
- rolebinding-writer.yaml
- secret.yaml.example
- service.yaml
- serviceaccount.yaml
- __init__.py
- change_executor.py
- config_auditor.py
- job_inspector.py
- log_analyzer.py
- performance_analyzer.py
- pod_inspector.py
- reliability_auditor.py
- scaling_analyzer.py
- security_auditor.py
- test_bulk_delete_guardrails.py
- test_monitor_state.py
- test_persistence.py
- test_pod_health_classification.py
- test_pvc_resize.py
- test_pvc_usage.py
- test_scheduler_metrics.py
- test_slack_render.py
- test_tool_output_limit.py
- __init__.py
- helm.py
- k8s_client.py
- kubernetes_batch.py
- kubernetes_hygiene.py
- kubernetes_read.py
- kubernetes_reliability.py
- kubernetes_security.py
- kubernetes_write.py
- slack.py
- .dockerignore
- .env.example
- .gitignore
- agent.py
- AGENTS.md
- api.py
- CLAUDE.md
- config.py
- deploy.sh
- Dockerfile
- LICENSE
- main.py
- monitor_state.py
- persistence.py
- README.md
- requirements.txt
- scheduler.py
- schemas.py
- Screenshot 2026-03-19 at 9.48.42 AM.png
- slack_notifier.py
# CDN으로 사용하기
jsDelivrjsDelivr는 공개 GitHub 리포지토리를 별도 설정 없이 CDN으로 즉시 서빙합니다. 버전과 파일을 고르면 웹페이지에 바로 붙일 수 있는 링크와 예시 코드가 만들어집니다.
명령어 용어집
이 문서에서 사용된 명령어를 모아봤습니다. 낯선 명령어가 있다면 펼쳐서 확인해보세요.
aws ecr
설명 보기 ▼
aws ecr
Push, pull, and manage container images.
aws ecr get-login-password --region {{region}} | {{docker login}} --username AWS --password-stdin {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com
Authenticate Docker with the default registry (username is AWS):
aws ecr create-repository --repository-name {{repository}} --image-scanning-configuration scanOnPush={{true|false}} --region {{region}}
Create a repository:
docker tag {{container_name}}:{{tag}} {{aws_account_id}}.dkr.ecr.{{region}}.amazonaws.com/{{container_name}}:{{tag}}
Tag a local image for ECR:
docker run
설명 보기 ▼
docker run
This command is an alias of `docker container run`.
tldr docker container run
View documentation for the original command:
docker
설명 보기 ▼
docker
Docker 컨테이너 및 이미지를 관리.
`run`과 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://docs.docker.com/reference/cli/docker/>.
docker {{[ps|container ls]}} {{[-a|--all]}}
모든 도커 컨테이너들(실행 및 중지) 목록 보기:
docker {{[run|container run]}} --name {{container_name}} {{image}}
사용자 정의 이름으로 이미지로부터 컨테이너 실행:
docker container {{start|stop}} {{container_name}}
기존 컨테이너 시작 또는 중지:
kubectl apply
설명 보기 ▼
kubectl apply
Manage applications through files defining Kubernetes resources.
Create and update resources in a cluster.
kubectl apply {{[-f|--filename]}} {{path/to/file}}
Apply a configuration to a resource by file name:
kubectl apply {{[-k|--kustomize]}} {{path/to/directory}}
Apply a configuration to a resource from `kustomization.yaml` in a directory:
{{cat pod.json}} | kubectl apply {{[-f|--filename]}} -
Apply a configuration to a resource by `stdin`:
kubectl delete
설명 보기 ▼
kubectl delete
Delete Kubernetes resources.
kubectl delete {{[po|pods]}} {{pod_name}}
Delete a specific pod:
kubectl delete {{[deploy|deployments]}} {{deployment_name}}
Delete a specific deployment:
kubectl delete {{[no|nodes]}} {{node_name}}
Delete a specific node:
kubectl port-forward
설명 보기 ▼
kubectl port-forward
Forward one or more local ports to a pod.
kubectl port-forward {{[po|pods]}}/{{pod_name}} 5000 6000
Forward local ports 5000 and 6000 to the pod ports 5000 and 6000:
kubectl port-forward {{[po|pods]}}/{{pod_name}} :5000
Forward a random local port to the pod port 5000:
kubectl port-forward {{[deploy|deployment]}}/{{deployment_name}} 5000 6000
Forward local ports 5000 and 6000 to the deployment ports 5000 and 6000:
kubectl rollout
설명 보기 ▼
kubectl rollout
Manage the rollout of a Kubernetes resource (deployments, daemonsets, and statefulsets).
kubectl rollout restart {{resource_type}}/{{resource_name}}
Start a rolling restart of a resource:
kubectl rollout status {{resource_type}}/{{resource_name}}
Watch the rolling update status of a resource:
kubectl rollout undo {{resource_type}}/{{resource_name}}
Roll back a resource to the previous revision:
kubectl scale
설명 보기 ▼
kubectl scale
Set a new size for a deployment, replica set, replication controller, or stateful set.
kubectl scale --replicas {{replicas_count}} rs/{{replica_name}}
Scale a replica set:
kubectl scale --replicas {{replicas_count}} {{[-f|--filename]}} {{path/to/file.yml}}
Scale a resource identified by a file:
kubectl scale --replicas {{replicas_count}} --current-replicas {{current_replicas}} {{[deploy|deployment]}}/{{deployment_name}}
Scale a deployment based on current number of replicas:
kubectl
설명 보기 ▼
kubectl
Kubernetes 클러스터에서 명령을 실행하기 위한 명령줄 인터페이스.
`run`과 같은 일부 하위 명령에는 자체 사용 설명서가 있습니다.
더 많은 정보: <https://kubernetes.io/docs/reference/kubectl/>.
kubectl get {{pods|service|deployment|ingress|...}} {{[-o|--output]}} wide
리소스에 대한 정보를 자세히 나열:
kubectl label pods {{name}} unhealthy=true
지정된 포드에 'unhealthy' 레이블과 'true' 값을 추가:
kubectl get all
다양한 유형의 모든 리소스 나열:
pip install
설명 보기 ▼
pip install
Install Python packages.
pip install {{package1 package2 ...}}
Install one or more packages:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}
Upgrade all specified packages to the latest version, installing any that are not already present:
pip install {{package}}=={{version}}
Install a specific version of a package:
python
설명 보기 ▼
python
Python 언어 인터프리터.
더 많은 정보: <https://docs.python.org/using/cmdline.html>.
python
REPL(대화형 셸) 시작:
python {{path/to/file.py}}
특정 Python 파일 실행:
python -i {{path/to/file.py}}
특정 Python 파일 실행 후 REPL 시작:
