Retrieve App Instance Logs
Stream deployment logs for an AppInstance. Set the follow query parameter to true to continue streaming as new output is stored. Platform 4.12 doesn't apply the other fields exposed by AppInstanceLogOptions.
App instance log example​
An example App instance log:
apiVersion: management.loft.sh/v1
kind: AppInstanceLog
metadata:
name: my-argo-cd
namespace: p-my-project
App instance log reference​
App instance log (Get)​
Stream the deployment logs for an AppInstance. Append ?follow=true to continue streaming as new output is stored.
- kubectl
- curl
Run the following command:
# Exchange my-argo-cd in the url below with the name of the AppInstance
kubectl get --raw "/kubernetes/management/apis/management.loft.sh/v1/namespaces/p-my-project/appinstances/my-argo-cd/log"
Run the following curl command:
# Exchange my-argo-cd in the url below with the name of the AppInstance
curl -s -X GET --insecure \
"https://$LOFT_DOMAIN/kubernetes/management/apis/management.loft.sh/v1/namespaces/p-my-project/appinstances/my-argo-cd/log" \
-H "Authorization: Bearer $ACCESS_KEY"