Pulling private github repo on Digital Ocean droplet creation

I’m trying to deploy Digital Ocean droplet, which upon creation pulls my private github repo and runs bash script in this repo. I use cloud-config for this: #cloud-config ssh_keys: rsa_private: | —–BEGIN RSA PRIVATE KEY—– ………………………………………………. ………………………………………………. ………………………………………………. —–END RSA PRIVATE KEY—– rsa_public: ssh-rsa ……………………………………………….== ***@gmail.com runcmd: – git clone [email protected]***.git – cd ~/RepoDir -…

How can I be sure that a VM on GCP was not shut down due to it being preemptible? (after the fact, using stackdriver)

I’m looking for a query for stackdriver which will yield preemption events on GCP VMs. Why? Because I have pods disappearing from nodes. Apparently those nodes are later on terminated due to missing workloads and autoscaling being enabled. So everything looks like the pods die first and the autoscaler acts as it should and shuts…

YUM Upgrade when package name changes

The API Gateway Kong decided to change the name of their Centos package. For versions up to 1.1 its “kong-community-edition”, after that the package name is just “kong”. kong-community-edition.noarch 1.0.2-1 bintray–kong-kong-rpm kong-community-edition.noarch 1.0.3-1 bintray–kong-kong-rpm kong-community-edition.noarch 1.1.0rc1-1 bintray–kong-kong-rpm kong.noarch 1.2.1-1 bintray–kong-kong-rpm kong.noarch 1.2.2-1 bintray–kong-kong-rpm kong.x86_64 1.3.0-1 bintray–kong-kong-rpm Can I somehow tell YUM to upgrade the current…

MongoDB – collections and documents lost/disappeared in replica set

I was running three mongo (4.0.4) containers within docker with configured replica set over 10 months without having any problems or issues. Primary mongo container/replica set was connected with spring boot application that is running spring 2.1.1 with using mongo transactions. At one point during the holidays all of my mongo db collections where gone,…