Skip to content

Instantly share code, notes, and snippets.

View kudaliar032's full-sized avatar
🇮🇩

Aditya Rahman kudaliar032

🇮🇩
View GitHub Profile
@kudaliar032
kudaliar032 / all-node-haproxy.cfg
Last active February 19, 2022 04:36
creating-high-available-kubernetes-cluster-with-kubeadm
...
backend k8s_servers
balance roundrobin
server k8s-cp1 172.31.6.219:6443 check # add other node later
server k8s-cp2 172.31.4.168:6443 check
server k8s-cp3 172.31.8.252:6443 check
...
@kudaliar032
kudaliar032 / teleport.yaml
Last active January 22, 2022 04:42
Server Access with Teleport
teleport:
nodename: "ip-172-31-20-176"
auth_token: "9bc3f13428d8d438f2928f16f5f367ee"
ca_pin: "sha256:080ccaf918422865de8e72cc462823e565892355650e9e8e89bcf88abd2962ff"
auth_servers:
- "172.31.1.103:3025"
ssh_service:
enabled: true
labels:
env: example
@kudaliar032
kudaliar032 / .env.redash
Last active January 15, 2022 05:44
Redash docker-compose.yaml file
PYTHONUNBUFFERED=0
REDASH_LOG_LEVEL=INFO
REDASH_HOST=http://redash.yourdomain.tld
REDASH_SERVER_NAME=http://redash.yourdomain.tld
REDASH_COOKIE_SECRET=VeryStrongSecret123
REDASH_SECRET_KEY=OtherVeryStrongSecret098
REDASH_REDIS_URL=redis://redis:6379/redash
store item count
Medan Robusta 12
Medan Arabika 19
Medan Luwak 18
Medan Liberika 0
Medan Gayo 10
Medan Toraja 15
@kudaliar032
kudaliar032 / nginx.yaml
Created October 13, 2021 09:07
Longhorn web server demo
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deploy
labels:
app: nginx
spec:
replicas: 5
selector:
matchLabels:
@kudaliar032
kudaliar032 / nginx-pvc.yaml
Last active October 13, 2021 08:48
longhorn-pvc
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nginx-pvc
labels:
app: nginx
spec:
resources:
requests:
storage: 1Gi
@kudaliar032
kudaliar032 / ansible-playbook.yaml
Created October 13, 2021 08:02
installing-longhorn-requirement-packages
---
- name: Install Longhorn Requirement Packages
hosts: all
remote_user: ubuntu
gather_facts: false
become: yes
tasks:
- name: Install packages
ansible.builtin.apt:
pkg:
## multi stage
mkdir ~/latihan-multi-stage
cd ~/latihan-multi-stage
git clone https://github.com/kudaliar032/comfortable-vue-blog.git
cd comfortable-vue-blog
vim Dockerfile
@kudaliar032
kudaliar032 / day1.txt
Last active October 2, 2021 04:04
Docker for DevOps
##### Instruksi Pengerjaan Hands-on Lab #####
1. Apabila terdapat X.X.X.X, sesuaikan dengan IP Address masing-masing
2. Lakukan penangkapan layar (screenshot) secara penuh tanpa ada pemotongan (crop) pada semua instruksi
untuk melakukan penangkapan layar
3. Penulisan nama file screenshot menggunakan format "[nomor urut]-[nama training]-[hari]-[urutan screenshot]", contoh:
"5-docker-2-B"
##########################
##### Install Docker #####
@kudaliar032
kudaliar032 / k0sctl.yaml
Last active September 28, 2021 04:33
final k0sctl.yaml for cluster
apiVersion: k0sctl.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: k0s-cluster
spec:
hosts:
- ssh:
address: 11.11.11.11
user: ubuntu
port: 22