Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

EmartApp DevOps Project - Kiểm tra thành công

1. Kiểm tra CI/CD Pipeline

Jenkins Pipeline

  • Pipeline CI chạy thành công

    • Build thành công
    • Unit tests pass
    • SonarQube analysis pass
    • Security scan không có critical vulnerabilities
    • Docker images được build và push thành công
  • Pipeline CD chạy thành công

    • Kustomize manifests được cập nhật
    • Changes được push lên GitOps repo
    • ArgoCD sync thành công

ArgoCD

  • Application status là "Healthy"
  • Sync status là "Synced"
  • Không có lỗi trong ArgoCD logs

2. Kiểm tra Kubernetes Resources

Namespace

kubectl get namespace emartapp

Deployments

kubectl get deployments -n emartapp
  • Tất cả deployments đều "Available"
  • Số replicas đúng với cấu hình
  • Không có lỗi trong pod logs

Services

kubectl get services -n emartapp
  • Tất cả services đều có ClusterIP
  • Port mappings đúng

Ingress

kubectl get ingress -n emartapp
  • Ingress có địa chỉ IP
  • TLS certificate được cấu hình

3. Kiểm tra Bảo mật

Network Policies

kubectl get networkpolicy -n emartapp
  • Tất cả network policies được áp dụng
  • Traffic giữa các services được kiểm soát

Pod Security

kubectl get psp emartapp-psp
  • Pod Security Policy được áp dụng
  • Pods chạy với non-root user

Security Contexts

kubectl get pods -n emartapp -o json | jq '.items[].spec.securityContext'
  • Security contexts được cấu hình đúng
  • Read-only root filesystem
  • No privilege escalation

4. Kiểm tra Ứng dụng

Frontend

  • Truy cập được frontend qua domain
  • UI hiển thị đúng
  • Không có lỗi JavaScript trong console

Backend

  • API endpoints hoạt động
  • Health check endpoint trả về 200
  • Kết nối database thành công

Database

  • PostgreSQL pod chạy
  • Persistent volume được mount
  • Có thể kết nối và truy vấn database

5. Kiểm tra Monitoring

Prometheus

  • Metrics được thu thập
  • Targets đều "UP"

Grafana

  • Dashboards hiển thị đúng
  • Alerts được cấu hình

6. Kiểm tra High Availability

Pod Distribution

kubectl get pods -n emartapp -o wide
  • Pods được phân bố trên nhiều nodes
  • Không có single point of failure

Rolling Updates

kubectl rollout history deployment -n emartapp
  • Rolling updates hoạt động
  • Không có downtime khi update

7. Kiểm tra Disaster Recovery

Backups

  • Database backups được tạo
  • Có thể restore từ backup

Failover

  • Pods tự động restart khi fail
  • Services tự động chuyển hướng traffic

8. Kiểm tra Performance

Resource Usage

kubectl top pods -n emartapp
  • Resource usage trong giới hạn
  • Không có memory leaks

Response Time

  • API response time < 200ms
  • Frontend load time < 2s

9. Kiểm tra Logging

Application Logs

kubectl logs -n emartapp -l app=frontend
kubectl logs -n emartapp -l app=backend
  • Logs được ghi đúng
  • Không có lỗi trong logs

System Logs

  • Node logs không có lỗi
  • Container runtime logs bình thường

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors