User Tools

Site Tools


export_yaml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

export_yaml [2025/07/26 17:09] – - Imported by DokuWiki Advanced Plugin wikiadmexport_yaml [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Export YAML ====== 
-<code bash> 
-kubectl get deploy --all-namespaces -o yaml --export 
-kubectl get deploy,sts,svc,configmap,secret -n default -o yaml --export > default.yaml 
-</code> 
  
-<code bash generate-yaml.sh> 
-for n in $(kubectl get -o=name pvc,configmap,serviceaccount,secret,ingress,service,deployment,statefulset,hpa,job,cronjob) 
-do 
-    mkdir -p $(dirname $n) 
-    kubectl get -o=yaml $n > $n.yaml 
-done 
-</code> 
export_yaml.1753560543.txt.gz · Last modified: by wikiadm