diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-27 21:00:12 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-27 21:00:12 +0200 |
| commit | 94c0db2c8badc141ed9f35ade9f5f47bad8b3fc7 (patch) | |
| tree | 1562dbceb91a2eb92090389c0d04e33e42966eda /f3s/apache/Justfile | |
| parent | 55a69e2dd06523cf7f466fd21e4e14c04ac3a3e8 (diff) | |
add apache
Diffstat (limited to 'f3s/apache/Justfile')
| -rw-r--r-- | f3s/apache/Justfile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/f3s/apache/Justfile b/f3s/apache/Justfile new file mode 100644 index 0000000..1a825b7 --- /dev/null +++ b/f3s/apache/Justfile @@ -0,0 +1,38 @@ +NAMESPACE := "test" +APP_NAME := "apache" + +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}} 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 "" + +logs lines="100": + kubectl logs -n {{NAMESPACE}} -l app=apache --tail={{lines}} -f + +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 |
