Push Docker Image with Kubectl

Cluster information:

Kubernetes version: 1.16
Cloud being used: AWS
Installation method: AWS EKS
Host OS: Amazon Linux 2 (AL2_x86_64)


Hey Guys!

I have a Jenkins Deployment running on AWS EKS.

In the architecture (which can be viewed here), the Jenkins Master is running from an Image in Docker Hub, but also has a pv for storing configuration.

I want to understand how I can update the container image stored in my docker hub, to include the config from the pv, using kubectl?

Thanks in advance!

There really is not enough info provided to give an informed answer. Depending on how you deployed the env, you might have to update the values in a helm deployment, of update the image in a statefulset or deployment. If all you change is the image, the pvc should and volume mounts for the config should not change. The new image will be pulled and hopefully run fine.