-
Runbook for Restoring a MicroK8s Cluster After Failure
Another day in hell, MicroK8s is not running, and almost all pods are in Unknown or Terminating state. Trying to stop/restart microk8s and also the whole server but still the end, microk8s is still faling down. Any rescure is no luck. This runbook is about step by step to performing the rescure the whole Microk8s.…
-
kubectl get error Unable to connect to the server: tls: failed to verify certificate
By default, the microk8s installed with self-certificate and if you’re using Let’s Encrypt, the SSL certificates issued by it are valid for 90 days or 1 year (it’s up to you). To ensure continuous security, you need to automate certificate renewal. Cert-manager – using by default in microk8s which automatically renews the certificates before expiration,…
-
Remote Desktop with Cloudflare Tunnel secured with Cloudflare Zero Trust
There are several ways to perform a connection from public internet to a private network (in this case – Home Labs), such as: Nginx Proxy Manager Establish a vpn connection Cloudflare Tunnel Nginx Proxy Manager Set up Dynamic DNS to automatically update the home IP for the domain name. We shall access through this domain…
-
Dockerize an Angular 17 app with nginx and deploy on Kubernetes
There serveral ways to host an Angular app using nginx, a nodejs server, IIS, Apache on a Windows or Lunix with registered as a service. In this blog post, we will go through step-by-step guide to build an Angular app using Docker and host the production-ready in nginx container and then deploy on Kubernetes. Normally,…
-
Registering Existing Kubernetes Clusters to Rancher
The control that Rancher has to manage a registered cluster depends on the type of cluster. We want to manage "set of" clusters within one Rancher UI, so this is guide how to perform the task quickly and ez. Prerequisites Kubernetes Node Roles Registered RKE Kubernetes clusters must have all three node roles – etcd,…
-
“WordPress Connection Information” on WP that is running in container
A WordPress website can be install and run on container environment, like docker, k8s,… In this guide, the WordPress image to be used is apache based xxx-apache , which is running in a docker container/k8s, also EC2 AWS with docker – all cases are container based. May we can not upgrade WordPress, plugins, install new…
-
Upgrade k8s and Rancher
After using k8s and Rancher in several months, I decided to upgrade the current system to: microk8s v1.27.x rancher v2.8.1 Upgrade microk8s Update your system first: sudo apt update Next, check the current version of microk8s: microk8s kubectl get node The result something likes: root@vmi1535815:~# microk8s kubectl get node NAME | STATUS | ROLES |…
-
Deploying a Kubernetes environment with MicroK8S and Rancher
After securely connected to VPS, Mostly of development and deployment can be done with traditional stuffs, something likes install nginx/apache, build source code and upload to the server via SFTP or git. To make it easy for deloyment task, using Docker images and for self-practice in DevOps field, I decided to use Kubernetes and begining…
-
Best Practices for Securing Remote Connections (SSH) to VPS
Recent days, I have purchased a VPS linux-based for LABS. This is my diary regrading to the LABS. From a security standpoint, it\’s recommended all customers to use SSH Keys instead of traditional passwords while connecting via SSH. SSH Keys are like a "keycard" to access your server without a password. Download PuTTY (includes PuTTY…
-
Change Android minSdkVersion (flutter.minSdkVersion) in Flutter
Sometimes when you add the packages, you may face an issue that asks you to increase the Android minSdkVersion. This happens because the plugin requires a higher android sdk version for projects that were created. To change Android minSdkVersion in Flutter for the project, you have to make changes in the local.properties file and then…
-
git cherry pick
Tình huống Có 2 branch develop và master tương ứng với 2 môi trường server. Có 2 module cần triển khai như thế này: Module A -> branch A -> Làm xong merge branch develop -> Tạo nhánh release A nhưng k tạo tag release. Sau khi làm xong module A thì tới module B.…
-
Những sai lầm và chiến lược chuyển đổi từ Monolith sang Microservices
Bài viết này là tổng hợp từ nhiều nguồn và từ kinh nghiệm của bản thân khi triển khai hệ thống theo kiến trúc Microservices từ đầu và chuyển đổi từ Monolith sang Microservices. Microservices là gì? Microservices – hay còn được gọi là kiến trúc Microservices và kiến trúc này thường được sử dụng…