Thumbnail image

GCP ARTIFACT REGISTRY FOR GITHUB ORGANIZATION (PART 1)

Today I want to describe how anyone can easily use GCP “Workload Identity Federation” feature to provide a secure way to push docker images from github actions CI to the GCP Artifact Registry This topic is a kind of tutorial for people how have an organization in GitHub, but for a some reason want to store docker images in GCP Artifact Registry (f.e. speed up pulls inside GCP) So, what we have and what we want to achieve?

Thumbnail image

SWITCH GHOST DATABASE FROM SQLITE3 TO MYSQL8

Hello, geeks! I’ve faced with this task recently and spend some time with it because official ghost documentation is pretty foggy on this topic. At start I had production ghost blog service with 100+ posts deployed via the official docker image inside a kubernetes cluster with sqlite database stored in PersistentVolume. At finish I need to have the same service with a cloud managed database. Official way As descibed in How to migrate from SQLite3 we need to perform a full reinstall of Ghost. First step in this reinstallation is to perform a backup via ghost-cli(ghost backup command), database will be extracted to JSON/CSV files and packed in zip file along with static content(images, videos, etc). And this is what we have as a result of doing it inside a container:

Thumbnail image

RECEIVE GKE UPDATE NOTIFICATIONS FROM GOOGLE CLOUD PROJECT

Today, our task will be to set up Google Kubernetes Engine update notifications in GCP. It’s important to understand that one of the GKE features is mandatory updates. All we can do with it is to plan them in advance and do them when we are fully prepared. And even if the cloud decided to update cluster for us, we whant to see a notification about what happened and then.