minikube version
minikube start
kubectl version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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
-
Create directories for certs and data
mkdir -p data certs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
metadata: | |
name: local-storage-yb-master | |
provisioner: kubernetes.io/no-provisioner | |
volumeBindingMode: WaitForFirstConsumer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
- You should have docker-compose installed. If you don't have it, get it from [docker/compose][docker-compose] release page.
- Get the [docker-compose.yml][docker-compose.yml]
- Go to command line / terminal
- Go to directory containing
docker-compose.yml
. Generally it will be Downloads directory - Run docker compose and dertach
docker-compose up -d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder