Author: Website Admin

  • Kubernetes: ConfigMaps and Secrets

    ConfigMap digunakan untuk menyimpan data maupun konfigurasi dalam bentuk key-value yang nantinya dapat digunakan oleh Pod sebagai environment variables, command line arguments, atau sebagai configuration file. Create ConfigMap from literals Create ConfigMap from files Create ConfigMap for ENV files To add ConfigMap as environment variables, add this to the spec.containers.container section for Pod or spec.template.spec.containers.container…

  • Kubernetes: Services

    Setelah kita mendeploy pod pada Kubernetes cluster, kita tidak bisa langsung mengakses pod tersebut. Untuk dapat mengakses pod tersebut kita harus membuat service. Ada beberapa service yang dapat dibuat pada Kubernetes cluster: ClusterIP NodePort LoadBalancer ExternalName ClusterIP Service type ClusterIP digunakan untuk mengakses pod dari node yang ada di dalam cluster. Pod tidak dapat di…

  • S3 API: Authentication

    For this example I will use: First you need to construct your string to sign with this format: If your request is: Generate UTC date in linux: Then the string to sign is: After that, you need to sign that string with SHA-1 + HMAC with your secret-key and encode the result in Base64. Finally,…

  • Menjalankan Laravel 8 dengan Docker

    Untuk menjalankan Laravel 8, kita membutuhkan beberapa layanan (service) yang saling berinteraksi: Database service menggunakan image mariadb:latest– Bertujuan untuk menyimpan data Application service menggunakan image php:8-fpm-alpine– Bertujuan untuk mengolah file php Web service menggunakan image nginx:latest– Bertujuan untuk menerima dan merespon permintaan dari klien Database service Menyiapkan container Application service Menyiapkan container Mengkonfigurasi container Jika…

  • Bitbucket Pipelines

    Untuk mengaktifkan fitur Pipelines pada Bitbucket repository anda: Buka repository anda. Pilih menu Repository settings. Pada block menu Pipelines, pilih settings. Aktifkan Enable Pipelines. Buat file bitbucket-pipelines.yml pada root repository anda. Contoh konfigurasi bitbucket-pipelines.yml adalah sbb: Penjelasan: Jika global image tidak dideklarasikan secara eksplisit, maka image yang digunakan adalah atlassian/default-image:latest (1). pipelines.default – Pipeline ini…

  • Kubernetes: Volumes

    emptyDir Volume tipe emptyDir merupakan sebuah shared folder yang hidup dalam sebuah pod. Jika sebuah pod gugur, maka data pada emptyDir juga akan ikut hilang. Namun jika container yang mengalami kegagalan, data pada emptyDir tidak akan hilang. Yang dapat mengakses shared folder ini adalah container-container di dalam pod tersebut. Volume tipe ini biasanya digunakan untuk…

  • Kubernetes: Deployments Workload

    Resource type alias deploy = deployment = deployments Create deployments workload with command line: Create deployments workload using YAML file: Edit deployments workload: Delete deployments workload: Scale deployments workload: Update container image: Check update status Check update history Check update history based on revision Undo the updates References:

  • Kubernetes: Pods

    Resource type alias po = pod = pods Membuat Pod dengan command line Membuat Pod dengan file YAML Menghapus Pod Menapilkan daftar Pod di dalam cluster Melihat detail sebuah Pod Menjalankan perintah dalam default container pada sebuah Pod Masuk ke dalam default container pada sebuah Pod Resources: Pods | Kubernetes kubectl Cheat Sheet | Kubernetes…

  • Kubernetes: The Clusters

    Persyaratan untuk dapat mengoperasikan Kubernetes adalah sebuah cluster. Berikut adalah daftar cluster yang populer digunakan. #1. Kubeadm Kubeadm | Kubernetes Menginisiasi cluster [ERROR NumCPU]: the number of available CPUs 1 is less than the required 2[ERROR Mem]: the system RAM (981 MB) is less than the minimum 1700 MB Your Kubernetes control-plane has initialized successfully!…

  • Linux: Stopping HDD

    Once in a blue moon, you want to change your hard disk without shutting down your system. And all you need to do is run this command: