Author: Website Admin

  • Kubernetes: API Server

    Access Kubernetes API Server from the pod: Access Kubernetes API Server from the node: To access from outside the node: References:

  • Mikrotik: Layer 7 Filtering

    Regex filter Block Instagram Block Facebook Block Youtube Block Tiktok Last step

  • Kubernetes: StatefulSets Workload

    Create a headless Service with selector Create a Statefulset Selector from headless Service have to point to Statefulset’s pod label

  • Docker: Restart Policy

    Flag Stopped from inside container with “service xxx stop” (exit 0) Stoped from outside container with “docker kill xxx” (exit 137) no stopped, stopped after daemon restart stopped, stopped after daemon restart on-failure stopped, stopped after daemon restart stopped, started after daemon restart unless-stopped restarted, started after daemon restart stopped, stopped after daemon restart always…

  • Vim: Config

    Map keys Perbedaan antara vim map dan noremap Syntax highlight Show line numbers Show relative line numbers Make the cursor always in the middle Change tab size Show/hide whitespaces

  • Kubernetes: Taints and Tolerations

    Taint digunakan untuk menandai Pod mana saja yang boleh/tidak boleh dijalankan pada Node tersebut. Pod yang dapat dijalankan oleh Node yang memiliki taint adalah Pod yang memiliki toleration dengan key-value yang sama dengan taint nya. NoScheduleKubernetes tidak akan menempatkan Pod baru pada Node ini. Pod yang lama akan dibiarkan pada Node tersebut sampai penjadwalan berikutnya.…

  • Kubernetes: ConfigMaps and Secrets

    ConfigMap is used to store data in key-value format. 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 for Deployment. References:

  • 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…