Skip to main content

Posts

Showing posts with the label CentOS

Installing OpenShift 3.11 on CentOS 8

Installing OpenShift 3.11 on CentOS 8 OS & versi OpenShift yang di gunakan: OS: CentOS 8 OpenShift 3.11 NOTE: untuk OpenShift 4.x belum bisa di CentOS 7/8 baru bisa di RHEL. Update CentOS: $ sudo yum update Install Prereq: $ sudo yum install -y yum-utils device-mapper-persistent-data lvm2 $ sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo $ sudo yum install -y  docker-ce docker-ce-cli containerd.io $ sudo usermod -aG docker $USER $ newgrp docker set LAN Network Registries: $ sudo mkdir /etc/docker /etc/containers $ sudo nano /etc/containers/registries.conf Paste below (boleh pake vi, tee, nano, pico): [registries.insecure] registries = ['10.6.0.0/16'] Save (Ctrl+o) & Exit (Ctrl +x) $ sudo nano /etc/docker/daemon.json Paste below: {    "insecure-registries": [      "10.6.0.0/16"    ] } Save & Exit  NOTE: Network Internal terserah kita set nya mo segmen berapa: bisa 10.x.x.x/24 bisa 192.x.x....

add more SWAP files in CentOS 7

to enable swapfiles in CentOS 7 #fallocate -l (size_of_swap) (destination file) example to add 8GB of Swap: #fallocate -l 8gb /swapfile this will create 8GB in directory / filename swapfile change its mod with #chmod 600 /swapfile then run #mkswap /swapfile then run #swapon /swapfile you can edit /etc/fstab and add this line: /swapfile none defaults 0 0 to check if it active: #free or #swapon -s or #systemctl -a | grep swap