Sign in

This is a step by step to deploy openstack all-in-one with kolla-ansible.

“OpenStack is an open source cloud computing infrastructure software project and is one of the three most active open source projects in the world”.

More details about openstack click here

  • Ubuntu 18.04 CPU 8 core,
  • 8 GB RAM
  • storage vda 50 GB, vdb 50G
  • 2 network interfaces ens3 > ens9 >
  • Kolla ansible, here

Lets build, setup on vm ubuntu

$ sudo apt-get update; sudo apt-get upgrade
$ sudo apt-get install python3-dev libffi-dev gcc libssl-dev
$ sudo apt-get install python3-pip

This case user named kolla…

This is a tutorial step by step to launch an instance in AWS

aws EC2

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. docs

kafka multi broker

Apache Kafka is an open-source distributed event streaming platform used by thousands of companies for high-performance data pipelines, streaming analytics, data integration, and mission-critical applications.

ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications.

  • Install java on all node ha-zoo*
sudo apt update
apt install -y openjdk-11-jdk
  • setup dns local on all node ha-zoo*
vi /etc/hosts ha-zoo1 ha-zoo2 ha-zoo3
  • download zookeeper on all node ha-zoo*
cd /opt
sudo wget
  • ekstract…

kubernetes high availability


  • kubernetes version 1.15.11
  • haproxy
  • docker

Node list:

  • ha-balancer
  • ha-master1
  • ha-master2
  • ha-master3
  • ha-worker1
  • ha-worker2

On all node execute this command

sudo apt update; sudo apt autoremove -y

Install docker package on ha-master1, ha-master2, ha-master3, ha-node1, ha-node2

sudo apt install -y > /etc/docker/daemon.json <<EOF
"exec-opts": ["native.cgroupdriver=systemd"]
mkdir -p /etc/systemd/system/docker.service.d

Restart docker

systemctl daemon-reload
systemctl restart docker

Install kubectl, kubelet & kubeadm on all node master, ha-master1, ha-master2, ha-master3

sudo apt install -y apt-transport-https; curl -s <> | sudo apt-key add -cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb <> kubernetes-xenial main
sudo apt update; sudo apt install -y kubelet=1.15.11-00 kubeadm=1.15.11-00 kubectl=1.15.11-00

hold kubelet, kubeadm and kubectl

sudo apt-mark hold kubelet kubeadm kubectl
sudo systemctl enable kubelet

disable swap on master node and worker node

sudo swapon -s
swappoff -a
cat <<EOF |…

img source:

Part 1 : Present Perfect ( for experiences)

I have been travelled to Africa

Menjadi :

I’ve been travelled to Africa.

I have not been travelled to Africa.


I haven’t travelled to Africa.


I have = a past event, which is now your experience.

I have not = something you didn’t experience before now.


Subject + have (not) + past participle + …

Pronunciation / Pengucapan:

I have = i’ve

I have not = i haven’t

Example :

  1. Talking about tacos

Have you eaten tacos before ?

No, I haven’t eaten tacos before. …

img source :

Requirements for this tutorial:

  • node3 -> ubuntu 18.4 -> server
  • node4 -> ubuntu 18.04 -> client
  • node5 -> centos 7 -> client

Let’s Go:

Excecution on node3

  1. Update
# apt -y update

2. Install OpenJDK

# sudo apt -y install openjdk-8-jdk
# java -version

3. Install Elasticsearch

# wget -qO - | apt-key add -
# apt -y install apt-transport-https
# echo "deb stable main" | tee -a /etc/apt/sources.list.d/elastic-7.x.list
# apt -y update && apt -y install elasticsearch

4. Configuration Elasticsearch

# cp /etc/elasticsearch/elasticsearch.yml /etc/elasticsearch/elasticsearch.yml.original
# vi /etc/elasticsearch/elasticsearch.yml

edit line 55 to uncomment localhost

5. Activate elasticsearch…

Kali ini kita akan membahas mengenai monitoring prometheus dengan visualisasi grafana.

Apa itu prometheus ?

Prometheus adalah open source, sistem monitoring berbasis metrics. Prometheus mudah di gunakan serta memiliki model data yang powerful dan bahasa query yang dapat menganalisa aplikasi dan infrastruktur yang kita miliki.

Dengan format text yang sederhana membuatnya lebih mudah untuk mengekspos metrik ke prometheus.

Introduction to docker compose

source: docker

Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose, see the list of features.

Compose works in all environments: production, staging, development, testing, as well as CI workflows. You can learn more about each case in Common Use Cases.

Using Compose is basically a three-step process:

  • Define your app’s environment with a Dockerfile so it can be reproduced…

How to install jenkins on centos 7

image source:

install docker on centos

$ sudo yum install -y yum-utils \
device-mapper-persistent-data \
$ sudo yum-config-manager --add-repo
$ sudo yum -y install docker-ce docker-ce-cli

$ sudo systemctl start docker
$ sudo systemctl enable docker
$ sudo systemctl status docker

$ usermod -aG docker nanox

Install Docker Compose

$ sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose$ chmod +x /usr/local/bin/docker-compose
$ docker-compose -v

Downloading the jenkins docker image

$ docker pull jenkins/jenkins$ docker info | grep -i root
Docker Root Dir: /var/lib/docker
$ du -sh /var/lib/docker
586M /var/lib/docker


Overlay network without swarm mode

The overlay network driver creates a distributed network among multiple Docker daemon hosts. This network sits on top of (overlays) the host-specific networks, allowing containers connected to it (including swarm service containers) to communicate securely. Docker transparently handles routing of each packet to and from the correct Docker daemon host and the correct destination container. see detail

This way of using overlay networks is not recommended for most Docker users. It can be used with standalone swarms and may be useful to system developers building solutions on top of Docker. It may be deprecated…


This is my little notes based my experiment and my learning. Keep learning and keep calm.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store