From 03c76fecb58a65ad4976f5ac1ac7ccaf35c47cc9 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Wed, 7 Jan 2026 22:23:20 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20Thay=20th=E1=BA=BF=20Auth=20Service=20b?= =?UTF-8?q?=E1=BA=B1ng=20IAM=20Service=20trong=20t=C3=A0i=20li=E1=BB=87u?= =?UTF-8?q?=20OpenAPI=20v=C3=A0=20c=E1=BA=ADp=20nh=E1=BA=ADt=20h=C6=B0?= =?UTF-8?q?=E1=BB=9Bng=20d=E1=BA=ABn=20tri=E1=BB=83n=20khai=20Kubernetes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{auth-service.yaml => iam-service.yaml} | 4 +- docs/en/skills/deployment-kubernetes.md | 52 +++++++++---------- .../{auth-service.yaml => iam-service.yaml} | 4 +- docs/vi/templates/README.md | 3 +- docs/vi/templates/architecture.md | 3 +- docs/vi/templates/guide.md | 3 +- docs/vi/templates/mermaid-guide.md | 2 +- docs/vi/templates/skill-pattern.md | 3 +- 8 files changed, 35 insertions(+), 39 deletions(-) rename docs/en/api/openapi/{auth-service.yaml => iam-service.yaml} (96%) rename docs/vi/api/openapi/{auth-service.yaml => iam-service.yaml} (96%) diff --git a/docs/en/api/openapi/auth-service.yaml b/docs/en/api/openapi/iam-service.yaml similarity index 96% rename from docs/en/api/openapi/auth-service.yaml rename to docs/en/api/openapi/iam-service.yaml index 9a3c1606..411997e5 100644 --- a/docs/en/api/openapi/auth-service.yaml +++ b/docs/en/api/openapi/iam-service.yaml @@ -1,8 +1,8 @@ openapi: 3.0.0 info: - title: Auth Service API + title: IAM Service API version: 1.0.0 - description: Authentication and Authorization Service API + description: Identity and Access Management Service API servers: - url: http://localhost/api/v1 diff --git a/docs/en/skills/deployment-kubernetes.md b/docs/en/skills/deployment-kubernetes.md index 36790115..b55581ba 100644 --- a/docs/en/skills/deployment-kubernetes.md +++ b/docs/en/skills/deployment-kubernetes.md @@ -38,7 +38,7 @@ graph TB end subgraph DeploymentLayer["Deployment Layer"] - Deployment[Deployment
auth-service] + Deployment[Deployment
iam-service] HPA[HorizontalPodAutoscaler
HPA] end @@ -134,10 +134,10 @@ sequenceDiagram Client->>Ingress: HTTPS Request
api.goodgo.com/auth/login Ingress->>Ingress: TLS Termination - Ingress->>Ingress: Path Routing
/auth → auth-service + Ingress->>Ingress: Path Routing
/auth → iam-service - Ingress->>Service: HTTP Request
auth-service:80 - Service->>Service: DNS Resolution
auth-service.goodgo.svc.cluster.local + Ingress->>Service: HTTP Request
iam-service:80 + Service->>Service: DNS Resolution
iam-service.goodgo.svc.cluster.local Service->>Service: Endpoint Selection
Load Balancing @@ -162,29 +162,29 @@ sequenceDiagram ## Service Deployment Manifest ```yaml -# kubernetes/auth-service.yaml +# kubernetes/iam-service.yaml apiVersion: apps/v1 kind: Deployment metadata: - name: auth-service + name: iam-service namespace: goodgo labels: - app: auth-service + app: iam-service version: v1 spec: replicas: 3 selector: matchLabels: - app: auth-service + app: iam-service template: metadata: labels: - app: auth-service + app: iam-service version: v1 spec: containers: - - name: auth-service - image: goodgo/auth-service:latest + - name: iam-service + image: goodgo/iam-service:latest imagePullPolicy: IfNotPresent ports: - containerPort: 3000 @@ -232,12 +232,12 @@ spec: apiVersion: v1 kind: Service metadata: - name: auth-service + name: iam-service namespace: goodgo spec: type: ClusterIP selector: - app: auth-service + app: iam-service ports: - port: 80 targetPort: 3000 @@ -251,13 +251,13 @@ spec: apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: - name: auth-service-hpa + name: iam-service-hpa namespace: goodgo spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment - name: auth-service + name: iam-service minReplicas: 2 maxReplicas: 10 metrics: @@ -353,7 +353,7 @@ spec: pathType: Prefix backend: service: - name: auth-service + name: iam-service port: number: 80 - path: /users @@ -434,7 +434,7 @@ echo "Applying Secrets..." kubectl apply -f kubernetes/secrets-$ENVIRONMENT.yaml echo "Deploying services..." -kubectl apply -f kubernetes/auth-service.yaml +kubectl apply -f kubernetes/iam-service.yaml kubectl apply -f kubernetes/user-service.yaml echo "Configuring autoscaling..." @@ -444,7 +444,7 @@ echo "Setting up ingress..." kubectl apply -f kubernetes/ingress.yaml # Wait for rollout -kubectl rollout status deployment/auth-service -n $NAMESPACE +kubectl rollout status deployment/iam-service -n $NAMESPACE kubectl rollout status deployment/user-service -n $NAMESPACE echo "Deployment complete!" @@ -498,12 +498,12 @@ export class HealthController { apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: - name: auth-service-monitor + name: iam-service-monitor namespace: goodgo spec: selector: matchLabels: - app: auth-service + app: iam-service endpoints: - port: http path: /metrics @@ -522,27 +522,27 @@ kubectl get pods -n goodgo kubectl get svc -n goodgo # View logs -kubectl logs -f deployment/auth-service -n goodgo +kubectl logs -f deployment/iam-service -n goodgo kubectl logs -f pod-name -n goodgo --tail=100 # Scale manually -kubectl scale deployment auth-service --replicas=5 -n goodgo +kubectl scale deployment iam-service --replicas=5 -n goodgo # Update image -kubectl set image deployment/auth-service auth-service=goodgo/auth-service:v1.2.3 -n goodgo +kubectl set image deployment/iam-service iam-service=goodgo/iam-service:v1.2.3 -n goodgo # Rollback -kubectl rollout undo deployment/auth-service -n goodgo +kubectl rollout undo deployment/iam-service -n goodgo # Port forward for debugging -kubectl port-forward service/auth-service 3000:80 -n goodgo +kubectl port-forward service/iam-service 3000:80 -n goodgo # Execute command in pod kubectl exec -it pod-name -n goodgo -- /bin/sh # View HPA status kubectl get hpa -n goodgo -kubectl describe hpa auth-service-hpa -n goodgo +kubectl describe hpa iam-service-hpa -n goodgo # View resource usage kubectl top nodes diff --git a/docs/vi/api/openapi/auth-service.yaml b/docs/vi/api/openapi/iam-service.yaml similarity index 96% rename from docs/vi/api/openapi/auth-service.yaml rename to docs/vi/api/openapi/iam-service.yaml index 9a3c1606..411997e5 100644 --- a/docs/vi/api/openapi/auth-service.yaml +++ b/docs/vi/api/openapi/iam-service.yaml @@ -1,8 +1,8 @@ openapi: 3.0.0 info: - title: Auth Service API + title: IAM Service API version: 1.0.0 - description: Authentication and Authorization Service API + description: Identity and Access Management Service API servers: - url: http://localhost/api/v1 diff --git a/docs/vi/templates/README.md b/docs/vi/templates/README.md index ac84af37..fd10c31c 100644 --- a/docs/vi/templates/README.md +++ b/docs/vi/templates/README.md @@ -200,5 +200,4 @@ markdownlint docs/vi/**/*.md --- -**Cập nhật lần cuối**: 2024-01-15 -**Tác giả**: GoodGo Documentation Team +**Tác giả**: VelikHo (hongochai10@icloud.com) diff --git a/docs/vi/templates/architecture.md b/docs/vi/templates/architecture.md index e3e8cdb0..9d06a40d 100644 --- a/docs/vi/templates/architecture.md +++ b/docs/vi/templates/architecture.md @@ -223,6 +223,5 @@ graph LR --- -**Last Updated / Cập nhật lần cuối**: YYYY-MM-DD -**Authors / Tác giả**: Your Name +**Authors / Tác giả**: VelikHo (hongochai10@icloud.com) **Reviewers / Người review**: Reviewer Names diff --git a/docs/vi/templates/guide.md b/docs/vi/templates/guide.md index 4dda588d..7ceaf5a1 100644 --- a/docs/vi/templates/guide.md +++ b/docs/vi/templates/guide.md @@ -251,7 +251,6 @@ Câu trả lời 2 bằng tiếng Việt. --- -**Last Updated / Cập nhật lần cuối**: YYYY-MM-DD **Difficulty / Độ khó**: Beginner/Intermediate/Advanced **Estimated Time / Thời gian ước tính**: X minutes -**Authors / Tác giả**: Your Name +**Authors / Tác giả**: VelikHo (hongochai10@icloud.com) diff --git a/docs/vi/templates/mermaid-guide.md b/docs/vi/templates/mermaid-guide.md index 87db8d96..d8911332 100644 --- a/docs/vi/templates/mermaid-guide.md +++ b/docs/vi/templates/mermaid-guide.md @@ -536,4 +536,4 @@ echo $? # Should be 0 if successful --- -**Last Updated**: 2026-01-05 +**Tác giả**: VelikHo (hongochai10@icloud.com) diff --git a/docs/vi/templates/skill-pattern.md b/docs/vi/templates/skill-pattern.md index 3a916df8..900ae200 100644 --- a/docs/vi/templates/skill-pattern.md +++ b/docs/vi/templates/skill-pattern.md @@ -469,7 +469,6 @@ export class RBACService implements ExamplePattern { --- -**Last Updated / Cập nhật lần cuối**: YYYY-MM-DD **Complexity / Độ phức tạp**: Beginner/Intermediate/Advanced **Category / Danh mục**: [Category Name] -**Authors / Tác giả**: Your Name +**Authors / Tác giả**: VelikHo (hongochai10@icloud.com)