good morning i hope you can help me get up to speed quickly on kubernets.
Please answer the following questions
A1) the command kubectl get -o yaml gives me the configuration. Unfortunately the output already contains values and additional information
Now my question is there a way to convert this output so that I can use it as a templet for kubectl apply -f
E.g. I want to export a deployment change the name and container and apply again.
A2: Do you know a way to define a replicaset and deployment for an already running pod ? I would like to add an existing running pod into a RS or deployment.
Or i would like to define a rs and deployment for the pod afterwards
At the moment I think I have to change matchLabels: or