# Conexoes - Nexus

Conexoes e credenciais do projeto Nexus.

## Cluster OCI OKE

### Acesso kubectl

```bash
# Verificar contexto
kubectl config get-contexts

# Info do cluster
kubectl cluster-info
# API Server: https://136.248.124.22:6443
```

### Nodes

| Node | IP | Status |
|------|----|----|
| 10.110.10.16 | 10.110.10.16 | Ready |
| 10.110.15.40 | 10.110.15.40 | Ready |
| 10.110.2.160 | 10.110.2.160 | Ready |

## Registry OCI

| Propriedade | Valor |
|-------------|-------|
| Registry | gru.ocir.io/grbb7qzeuoag |
| Auth | Secret `ocir-regcred` |

### Secrets no Kubernetes

| Secret | Namespace | Tipo |
|--------|-----------|------|
| ocir-regcred | nexus-services | dockerconfigjson |
| oci-credentials | nexus-services | Opaque |

## Namespaces

| Namespace | Descricao |
|-----------|-----------|
| nexus-services | Microservicos principais |
| integration-hub | Integracoes |
| stream | NATS messaging |
| argocd | GitOps |
| ingress-nginx | Ingress controller |

## Comandos Uteis

```bash
# Listar pods
kubectl get pods -n nexus-services

# Logs de um pod
kubectl logs <pod-name> -n nexus-services --tail=100

# Rollback deployment
kubectl rollout undo deployment/<name> -n nexus-services

# Scale down replicaset quebrado
kubectl scale replicaset <name> -n nexus-services --replicas=0
```
