File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ collect_yaml_configs() {
5555 kubectl -n " $NAMESPACE " get configmaps -o yaml > " $OUTPUT_DIR /yaml/configmaps.yaml"
5656 # Cronjob YAMLs
5757 kubectl -n " $NAMESPACE " get cronjob -o yaml > " $OUTPUT_DIR /yaml/cronjob.yaml"
58-
58+ # PV,PVC YAML
59+ kubectl -n " $NAMESPACE " get pv,pvc -o yaml > " $OUTPUT_DIR /yaml/pv-pvc.yaml"
5960}
6061
6162# Function to collect pod logs
@@ -100,6 +101,9 @@ kubectl -n "$NAMESPACE" get secrets -o wide > "$OUTPUT_DIR/secrets"
100101techo " Collecting cronjob information..."
101102kubectl -n " $NAMESPACE " get cronjob -o wide > " $OUTPUT_DIR /cronjob"
102103
104+ techo " Collecting PV and PVC information"
105+ kubectl -n " $NAMESPACE " get pv,pvc -o wide > " $OUTPUT_DIR /pv-pvc"
106+
103107techo " Collecting events in $NAMESPACE ..."
104108kubectl -n " $NAMESPACE " get events --sort-by=' .metadata.creationTimestamp' > " $OUTPUT_DIR /events"
105109
You can’t perform that action at this time.
0 commit comments