Skip to content

Instantly share code, notes, and snippets.

View yogendra's full-sized avatar

Yogendra Rampuria - Yogi yogendra

View GitHub Profile
@yogendra
yogendra / kubernetes.md
Created November 15, 2018 17:02 — forked from carlessanagustin/kubernetes.md
Kubernetes tutorial steps

1. Create cluster

Cluster up and running

minikube version
minikube start
kubectl version
@yogendra
yogendra / Dockerfile
Last active June 14, 2024 04:21
Simple JSON POST dumper
FROM python:3.9-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
COPY main.py .
EXPOSE 8080
@yogendra
yogendra / README.md
Last active June 5, 2024 19:36
Companion Code - Community Open Hours: Generative AI for Database
@yogendra
yogendra / README.md
Last active May 24, 2024 07:51
Run a Docker Registry with TLS

Run Docker Registry with TLS

There are many instances that I need to do this. Especially if I am installing K8s in an internet restricted environment (example: [Install TKG in Internet restricted env][install-tkg-internet-restricted])

So I like to use [docker registry][docker-registry] and [mkcert][mkcert] to play with this scenario

  1. Create directories for certs and data

    mkdir -p data certs
@yogendra
yogendra / docker-compose.yaml
Created May 22, 2024 15:34
Yugabyte ♥️ Vault
services:
yugabyted-0:
container_name: yugabyted-0
hostname: yugabyted-0
image: yugabytedb/yugabyte:2.20.3.1-b2
environment:
YSQL_PASSWORD: yugabyte
PGPASSWORD: yugabyte
PGSSLMODE: prefer
command:
@yogendra
yogendra / README.md
Last active May 20, 2024 11:50
Yugabyted on Docker

Docker Compose for Yugabyte

yugabyted arch nodes link
Yes aarch64 1 [link][dc-aarch64-rf1]
Yes aarch64 3 [link][dc-aarch64-rf3]
Yes amd64 1 [link][dc-amd64-rf1]
Yes amd64 3 [link][dc-amd64-rf3]
@yogendra
yogendra / local-storage-yb-master.yaml
Last active November 20, 2023 13:37
K8s Local PV Sample
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage-yb-master
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
sudo yum install -qy https://s3.us-west-2.amazonaws.com/downloads.yugabyte.com/repos/reporpms/yb-yum-repo-1.1-0.noarch.rpm
sudo yum install -qy https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum install -qy pgdg-redhat-repo oracle-instant-clients-repo
sudo dnf -qy module disable postgresql
sudo yum install -qy --downloadonly --downloaddir=yb-voyager/ perl-open.noarch
sudo yum install -qy --downloadonly --downloaddir=yb-voyager/ yb-voyager
tar -czvf yb-voyager-centos8-airgapped.tgz
@yogendra
yogendra / README.md
Last active August 21, 2023 09:24
Jenkins on Docker

Run Jenkins on Docker

(Option 1) Docker Compose way

  1. You should have docker-compose installed. If you don't have it, get it from [docker/compose][docker-compose] release page.
  2. Get the [docker-compose.yml][docker-compose.yml]
  3. Go to command line / terminal
  4. Go to directory containing docker-compose.yml. Generally it will be Downloads directory
  5. Run docker compose and dertach
    docker-compose up -d
@yogendra
yogendra / Sea-x10.vcf
Last active September 21, 2022 05:17
Vcards
BEGIN:VCARD
VERSION:2.1
N:Limpanichsakul;Natta;;;
FN:Natta Limpanichsakul
X-ANDROID-CUSTOM:vnd.android.cursor.item/nickname;Sea;1;;;;;;;;;;;;;
TEL;CELL:+66950368179
TEL;WORK:+6626931989
EMAIL;HOME:natta.l@extend-it-resource.com
ADR;HOME:;;;Bangkok;;;Thailand
ORG:X10-IT