Category: Uncategorized

  • Vim: Terminal

    Horizontal terminal Vertical terminal Navigating <CTRL-W> <CTRL-W> (cycle) <CTRL-W> <CTRL-H> (left) <CTRL-W> <CTRL-J> (down) <CTRL-W> <CTRL-K> (up) <CTRL-W> <CTRL-L> (left) Scrolling To scroll the terminal press <CTRL-\> <CTRL-N> then you can scroll with k (up) and j (down). Exiting the terminal To close the terminal window type exit or press <CTRL-D>.

  • Unhandled Exception pada e-SPT eSPT PPh 2126 v.2.4.0.0

    Jika program e-SPT PPh 2126 v.2.4.0.0 muncul peringatan: Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. No data exists for the row/column. Lalu jika kita tekan tombol Details muncul pesan seperti berikut: See…

  • 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 Syntax highlight Show line numbers Show relative line numbers Make the cursor always in the middle Change tab size Show/hide whitespaces References:

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