summaryrefslogtreecommitdiff
path: root/f3s/example-apache-volume-claim
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-07 22:54:35 +0200
committerPaul Buetow <paul@buetow.org>2026-01-07 22:54:35 +0200
commit9d9976ec7d325aefc3386bb1298cea8052732703 (patch)
tree3625cc557202ff86106683e3523cac8d71caf369 /f3s/example-apache-volume-claim
parentf7624de03b894d31347ec15c9571e8cfe83903ff (diff)
Migrate remaining 4 apps: example-apache-volume-claim, registry, pushgateway, immich
Apps migrated in this commit: - example-apache-volume-claim (test namespace, 2 replicas, 1 PVC) - registry (infra namespace, Docker registry, 1 PVC) - pushgateway (monitoring namespace, Prometheus metrics) - immich (multi-component: server, postgres, valkey, ML) Also: - Deleted unused example-apache directory - Updated all Justfiles with ArgoCD commands - All apps synced and healthy Progress: 16/22 active apps (73%) Remaining apps (all in monitoring namespace): - prometheus (kube-prometheus-stack) - loki (umbrella chart) - tempo - grafana-ingress 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'f3s/example-apache-volume-claim')
-rw-r--r--f3s/example-apache-volume-claim/Justfile42
1 files changed, 34 insertions, 8 deletions
diff --git a/f3s/example-apache-volume-claim/Justfile b/f3s/example-apache-volume-claim/Justfile
index e8003e8..2cbadf1 100644
--- a/f3s/example-apache-volume-claim/Justfile
+++ b/f3s/example-apache-volume-claim/Justfile
@@ -1,12 +1,38 @@
NAMESPACE := "test"
-RELEASE_NAME := "example-apache-volume-claim"
-CHART_PATH := "./helm-chart"
+APP_NAME := "example-apache-volume-claim"
-install:
- helm install {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}} --create-namespace
+status:
+ @echo "=== Pods ==="
+ @kubectl get pods -n {{NAMESPACE}} -l app=apache
+ @echo ""
+ @echo "=== Service ==="
+ @kubectl get svc -n {{NAMESPACE}} apache-service
+ @echo ""
+ @echo "=== Ingress ==="
+ @kubectl get ingress -n {{NAMESPACE}} apache-ingress
+ @echo ""
+ @echo "=== PVC ==="
+ @kubectl get pvc -n {{NAMESPACE}} example-apache-pvc
+ @echo ""
+ @echo "=== ArgoCD Status ==="
+ @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' 2>/dev/null && echo ""
-upgrade:
- helm upgrade {{RELEASE_NAME}} {{CHART_PATH}} --namespace {{NAMESPACE}}
+logs lines="100":
+ kubectl logs -n {{NAMESPACE}} -l app=apache --tail={{lines}} -f
-delete:
- helm uninstall {{RELEASE_NAME}} --namespace {{NAMESPACE}}
+port-forward port="8080":
+ @echo "Forwarding apache to localhost:{{port}}"
+ kubectl port-forward -n {{NAMESPACE}} svc/apache-service {{port}}:80
+
+sync:
+ @echo "Triggering ArgoCD sync..."
+ @kubectl annotate application {{APP_NAME}} -n cicd argocd.argoproj.io/refresh=normal --overwrite
+ @sleep 2
+ @kubectl get application {{APP_NAME}} -n cicd -o jsonpath='Sync: {.status.sync.status}, Health: {.status.health.status}' && echo ""
+
+argocd-status:
+ argocd app get {{APP_NAME}} --core
+
+restart:
+ @echo "Restarting apache..."
+ kubectl rollout restart -n {{NAMESPACE}} deployment/apache-deployment