Skip to content

Instantly share code, notes, and snippets.

View akhfa's full-sized avatar

Akhmad Fakhoni Listiyan Dede akhfa

View GitHub Profile
systemctl status ksmtuned

apt install -y ksm-control-daemon

cat /sys/kernel/mm/ksm/pages_sharing

3647265

@akhfa
akhfa / helm-resolve-dependencies.sh
Last active June 3, 2019 14:11
Resolve Helm Local Dependencies
cd mychart
helm dependency update
yum -y install epel-release zip wget
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php72
yum -y install php php-pdo php-mysqlnd php-ioncube-loader php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml php-mcrypt php-imap php-mailparse php-gmp
vi /etc/yum.repos.d/MariaDB.repo
```
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
@akhfa
akhfa / fix-kubelet.yaml
Last active May 7, 2018 09:56 — forked from josselin-c/fix-kubelet.yaml
Prevent pods<->kubelet communication on networks without Network Policies. 2nd try.
# This serves as a stopgap fix for https://github.com/kubernetes/kops/issues/3891
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
namespace: kube-system
name: fix-kubelet
labels:
app: fix-kubelet
spec:
template:
@akhfa
akhfa / Install Kubespray Centos 7.sh
Last active May 6, 2019 12:42
Steps to install Kubespray
# Env Preparation
yum install -y epel-release git
git clone https://github.com/kubernetes-incubator/kubespray
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum -y install python36u
yum install -y python-pip
pip install -r requirements.txt
# Kubespray preparation