Skip to content

Instantly share code, notes, and snippets.

View ytooyama's full-sized avatar

Youhei Tooyama ytooyama

View GitHub Profile
@ytooyama
ytooyama / gist:e5568b5dcdbdb79d1039fed11d9dd0d8
Last active June 9, 2025 06:51
How to Build xCluster Replication with yugabytedb

How to Build xCluster Replication with yugabytedb

To set up xCluster Replication in YugabyteDB, follow the steps below. Here, we introduce a general setup method (semi-automatic/automatic mode) using the yugabyted command.


1. Preparing the Clusters

  • Prepare two clusters: Primary (source) and Standby (target).
@ytooyama
ytooyama / gist:02a5a2642767f9caca4c990e2f48152e
Created April 16, 2025 02:21
ヒアドキュメントでsudoが必要なファイルに追記する方法
sudo tee -a /etc/hosts << EOF > /dev/null
127.0.0.1 hogehuga
EOF
@ytooyama
ytooyama / gist:46fc1399c455c5fbf254c4bf8f32cf79
Last active January 16, 2024 03:06
Install Miniconda on M1 Mac Ventura

Install Miniconda on M1 Mac Ventura + zsh

% curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh
% bash Miniconda3-latest-MacOSX-arm64.sh 

Welcome to Miniconda3 py311_23.11.0-2

In order to continue the installation process, please review the license
agreement.
@ytooyama
ytooyama / Knative-Quickstart-microk8s.md
Last active December 13, 2022 07:07
Ubuntu + microk8sでKnative Servingを触ってみる
@ytooyama
ytooyama / Knative-Quickstart-kind.md
Last active November 18, 2023 19:53
Ubuntu + kindでKnative Servingを触ってみる
@ytooyama
ytooyama / firewall-cmd-for-kubeadm
Created May 25, 2020 05:55
CentOS 7やOracle Linux 7でkubeadmでクラスターを作るときのファイアウォールの設定
# firewall-cmd --permanent --add-port=6443/tcp
# firewall-cmd --permanent --add-port=2379-2380/tcp
# firewall-cmd --permanent --add-port=10248-10252/tcp
# firewall-cmd --permanent --add-port=10255/tcp
# firewall-cmd --permanent --add-port=8472/udp
# firewall-cmd --add-masquerade --permanent
# firewall-cmd --permanent --add-port=30000-32767/tcp
# systemctl restart firewalld
@ytooyama
ytooyama / kubelet configure
Created May 25, 2020 05:53
CRI-OベースでCentOS 7やOracle Linuxでkubeadmでクラスターを作るときのkubeletの設定
## /etc/sysconfig/kubelet を以下の設定で次のバージョンのK8sが稼働するのを確認: 1.14.9, 1.17.3, 1.18.3
## CRI-Oの設定でcgroup_managerをsystemdにすること
#
KUBELET_EXTRA_ARGS="--fail-swap-on=false --cgroup-driver=systemd"
KUBELET_CRIO_ARGS="--container-runtime=remote --container-runtime-endpoint=unix:///var/run/crio/crio.sock --runtime-request-timeout=10m"
@ytooyama
ytooyama / openstack-2node-2ext.yaml
Last active March 9, 2020 09:27
Minimal 2Node 2External Network OpenStack Example
#2Node Minimai OpenStack
#OpenStack Base rev.59+
#Deploy successful: Using Juju 2.6.3 and MAAS 2.5.3
#Update Note: Change the settings,l2-population=no
machines:
'0':
constraints: "tags=bay11"
'1':
constraints: "tags=bay12"
@ytooyama
ytooyama / neutron-network-sample.md
Created March 9, 2020 03:59
OpenStack Neutron Network セットアップガイド

documentclass: ltjsarticle title: OpenStack Neutronネットワーク作成 date: 0.9.2 (2019/11/06) author: 日本仮想化技術株式会社 toc: yes output: pdf_document: latex_engine: lualatex keep_tex: true

@ytooyama
ytooyama / openstack-2node.yaml
Last active March 9, 2020 09:27
Minimal 2Node OpenStack Example
#2Node Minimai OpenStack
#OpenStack Base rev.59+
#Deploy successful: Using Juju 2.6.3 and MAAS 2.5.3
#Update Note: Change the settings,l2-population=no
machines:
'0':
constraints: "tags=bay11"
'1':
constraints: "tags=bay12"