fix(app): use CBR and correct sa

This commit is contained in:
Aleksandr Tcitlionok
2024-12-05 06:28:31 +00:00
parent aa17c7a2dc
commit 7c7cf79ca8
5 changed files with 57 additions and 25 deletions

View File

@@ -62,8 +62,8 @@ docker push <your-ecr-repo>:latest
Apply RBAC and deployment configurations:
```bash
kubectl apply -f app/example/k8s/rbac.yaml
kubectl apply -f app/example/k8s/deployment.yaml
kubectl apply -f examples/k8s/rbac.yaml
kubectl apply -f examples/k8s/deployment.yaml
```
### Access the Service
@@ -80,6 +80,13 @@ Test the API:
curl http://<EXTERNAL-IP>/k8s/data
```
## Kubernetes Integration
The `/k8s/data` endpoint retrieves information about:
- Nodes: CPU, memory, and allocatable pods.
- Namespaces: List of all namespaces in the cluster.
## Endpoints
| Method | Endpoint | Description |