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
Hi @Nirav Gandhi, thank you so much for these videos. They have been very helpful. I noticed that you generated YAML files from a .sh script. Could you please explain how you generated them? Is it possible for you to share the script?
He already shared: #!/bin/bash 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
Explanation next level
Thanks
Thanks!
Thanks for your appreciation
Can we use kyverno instead of datree for policy validation before the cluster upgrade?
Yes
Hey Nirav,
Good one ! Can you share the .sh file used to collect existing object files.
Yes, sure
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
Nice videos Nirav. What is the tool you are using for GUI mode to see?
Lens
Hi, What is the command to create the yaml file all objects ?
Hi @Nirav Gandhi, thank you so much for these videos. They have been very helpful. I noticed that you generated YAML files from a .sh script. Could you please explain how you generated them? Is it possible for you to share the script?
He already shared:
#!/bin/bash
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
I will create GitHub repo
Can we qubectl commands to upgrade? Please suggest
Yes you can
Hello , Can you please let me know what is the effect if we delete unused node during AKS khbernetes version upgrade ??
I don't know, Why do you need to delete the node during the upgrade? can you please share the scenario ?
Hi @nirav, If I upgrade the aks cluster, will ips of the load balancer get changed?
Public IP address is not going to be change after aks cluster upgrade
Is this version upgrade cause any data lose in PVC?
No
Share the ui name?
Lens