The majority of the comments fail to miss one important thing: the cloud
is not an abstract magical thingy which provides
whatever you need whenever you need. It merely abstracts away the underlying infrastructure - on hardware, network, sometimes even the OS level.
It runs on the same(ish) hardware you can find in your own server rack. It runs the same Linux (or some customly patched Linux derivative), it is connected by twisted pair or optics, it still uses the same tech you, a linux administrator, use underneath the whole shiny packaging. Kubernetes is a collection of scripts. Docker is just a script written in go to easier leverage linux kernel cgruops and namespaces.
To reiterate: cloud just hides this instead of replacing it completely. Worst case scenario, nobody (outside of amazon/google/azure/baidu) knows how to set up a simple webserver on a linux box in their closet - then your skills become invaluable for people not willing to keep their data/code/service god knows where with god knows who. There are still some people that value "on-premises/bare-metal" setup. So there's one venue. Another would be to deepen your sysadmin skills to the point where instead of working against the cloud, you could join them. As far as I know, they are constantly looking for good sysadmins.
Now if you really want to become a dev... Well, i would suggest probably to start with what you know best: bash scripts probably. Start there. Start by small chunks. Take a small script, try to understand how it works. Try to write a small script. Try to find tasks that would be useful / interesting for you, e.g. make a script that starts playing music in the morning, constantly and slowly increasing the volume until you wake up - just make stuff: the key here is to have fun while doing it and achieve the result, not make everything perfect.
And try to do this without any pressure on yourself. Sysadmins have value, and will continue to have value. You're doing this not because you're being obsoleted, but because you wish to better yourself.