Bài đăng

Bài đăng nổi bật

Install MySQL from source on Centos

Step 1: Thực hiện cài đặt các gói hỗ trợ > yum install cmake cmake-gui > yum group install "Development Tools" >  yum -y install ncurses-devel zlib-devel >  yum -y remove mariadb-libs Step 2: Download source  > cd /usr/local/src/ >  wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.24.tar.gz >  tar zxvf mysql-5.7.24.tar.gz Step 3: Installation > cd mysql-mysql-5.7.24 >  Generate Makefile > cmake . -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock -DMYSQL_DATADIR=/var/lib/mysql -DDEFAULT_CHARSET==utf8mb4 -DDEFAULT_COLLATION=utf8mb4_unicode_ci -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/usr/local/mysql #Note   Neu truong hop can not download boost_1_59_0.tar.gz auto thì can dowload thu công . > cd /usr/local/mysql > wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-boost-5.7.24.tar.gz > make > make install Step 4: Configuration # Create file m...

[Kubernetes Series] - Bài 19 - Adding custom resource to Kubernetes

Hình ảnh
  Giới thiệu Chào các bạn tới với series về kubernetes. Đây là bài thứ 19 trong series của mình, ở bài trước chúng ta đã nói về  Advanced scheduling , ở bài này mình sẽ nói cách làm sao để ta có thể tự tạo một custom resource trong kubernetes. Bên cạnh những resource mặc định như Pod, ReplicaSet, Deployment, StatefulSet, ... Thì kubernetes cho phép chúng ta tạo thêm những custom resource để đáp ứng đúng nhu cầu của chúng ta trong dự án, từng custom resource sẽ phục vụ cho một mục đích cụ thể nào đó trong dự án của chúng ta. Ví dụ, để tạo postgres database trong kubernetes, thì đầu tiên ta sẽ định nghĩa một StatefulSet, sau đó tạo một Service cho StatefulSet này để client có thể kết nối được tới nó. Ta có thể giảm công đoạn phải tạo nhiều thứ liên quan như vậy bằng cách định nghĩa một custom resource tên là Postgres, mỗi lần ta cần postgres database thì ta chỉ cần tạo một Postgres custom resource là được, ví dụ như sau: ... kind : Postgres metadata : name : test - db stor...