Skip to content

Commit 773407f

Browse files
committed
Set subscirptions
1 parent ce6d509 commit 773407f

File tree

13 files changed

+672
-257
lines changed

13 files changed

+672
-257
lines changed

SETUP.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -86,27 +86,27 @@ Complete guide to set up and run the Apollo Supergraph locally and in Kubernetes
8686
|--------|---------|-------|-------------|
8787
| `./test-k8s.sh` | **Deployment validation** | Full deployment (subgraphs + router) | After `./run-k8s.sh` |
8888
| `./test-router.sh` | **Router testing** | Router only | When router is running |
89-
| `./k8s-status.sh` | **Kubernetes status** | K8s resources in minikube | Check deployment status |
89+
| `./status-k8s.sh` | **Kubernetes status** | K8s resources in minikube | Check deployment status |
9090

9191
### Kubernetes Status Monitoring
9292

93-
The `k8s-status.sh` script provides comprehensive status information about your Kubernetes deployment:
93+
The `status-k8s.sh` script provides comprehensive status information about your Kubernetes deployment:
9494

9595
```bash
9696
# Show basic status
97-
./k8s-status.sh
97+
./status-k8s.sh
9898

9999
# Show detailed information
100-
./k8s-status.sh --detailed
100+
./status-k8s.sh --detailed
101101

102102
# Show only pod status
103-
./k8s-status.sh --pods
103+
./status-k8s.sh --pods
104104

105105
# Show only service status
106-
./k8s-status.sh --services
106+
./status-k8s.sh --services
107107

108108
# Show only ingress status
109-
./k8s-status.sh --ingress
109+
./status-k8s.sh --ingress
110110
```
111111

112112
**What it shows:**
@@ -200,16 +200,13 @@ After deployment, the Apollo Router is accessible at:
200200
- **GraphQL Endpoint**: http://localhost:4000/graphql
201201
- **Health Check**: http://localhost:4000/health
202202

203-
For Ingress access:
203+
For direct access to subgraphs:
204204
```bash
205-
# Get minikube IP
206-
minikube ip
207-
208-
# Add to /etc/hosts (replace <minikube-ip> with actual IP)
209-
echo "$(minikube ip) apollo-router.local" | sudo tee -a /etc/hosts
205+
# Port forward subgraphs service
206+
kubectl port-forward svc/subgraphs-service 4001:4001 -n apollo-supergraph
210207
```
211208

212-
Then access: http://apollo-router.local
209+
Then access: http://localhost:4001
213210

214211
</details>
215212

cleanup-k8s.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
# Source shared utilities
66
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
77
source "$SCRIPT_DIR/scripts/utils.sh"
8+
source "$SCRIPT_DIR/scripts/config.sh"
89

910
show_script_header "Cleanup" "Cleaning up Apollo Supergraph from minikube"
1011

@@ -23,12 +24,12 @@ cleanup_namespace() {
2324
}
2425

2526
# Clean up the main namespace
26-
cleanup_namespace "apollo-supergraph" "Apollo Supergraph"
27+
cleanup_namespace "$(get_k8s_namespace)" "Apollo Supergraph"
2728

2829
print_success "Cleanup completed successfully!"
2930
echo ""
3031
echo "📋 Cleanup Summary:"
31-
echo " - Cleaned namespace: apollo-supergraph"
32+
echo " - Cleaned namespace: $(get_k8s_namespace)"
3233
echo ""
3334
echo "🔍 Verify cleanup:"
3435
echo " - View all namespaces: kubectl get namespaces"

0 commit comments

Comments
 (0)