Greetings @kakarlayogitha, thanks for reaching out! Some of your question will depend on how you’re deploying to the EKS cluster as there are multiple ways this can be accomplished using Octopus Deploy. If you’re using the
Deploy Kubernetes Containers step, you are able to choose/specify the version of the images to use. This step also controls the YAML so you wouldn’t need to worry about needing to modify it yourself.
Deploy Raw Kubernetes YAML allows you to specify the YAML in one of two ways; directly inline with the step or provided as a package reference. In either case, you are in control of the YAML and the image versions they are to pull, Octopus will update the existing deployments/job/services with whatever has been provided in the YAML itself.
Lastly, some customers have opted to use the
Run a Kubectl CLI script approach. Similar to the
Deploy Raw Kubernetes YAML approach, you can provide directly inline with the step or provide a package.
Deleting resources in K8s through Octopus would be best done through the
Run a Kubectl CLI script. If you have the YAML in a package, you can do a
kubectl delete <YAML file(s) location> to remove an entire stack, or do things like
kubectl delete deployment X.
Hope this helps!