Subscribe
docker compose exec redis /bin/bash
redis-cli -h redis-node-5 -a bitnami -c
> ssubscribe sfoo
> ssubscribe sbar
Publish
Subscribe
docker compose exec redis /bin/bash
redis-cli -h redis-node-5 -a bitnami -c
> ssubscribe sfoo
> ssubscribe sbar
Publish
@echo off | |
:: parse.bat --foo --bar | |
:: parse.bat --foo --bar --param 1 | |
:: parse.bat --foo --bar --param2 5 | |
:: parse.bat --foo --bar --param2 5 --param 100 | |
:: parse.bat --foo --bar --param 1 --param2 5 | |
setlocal | |
:parse | |
if "%~1"=="" GOTO endparse |
:: Script to run `git pull` inside all subdirectories which are git repositories. | |
:: usage 1: keep local changes, then up to date. | |
:: > git-pull.bat | |
:: usage 2: abort local changes, reset if possible, then up to date. | |
:: > git-pull.bat --force --no-stash | |
:: usage 3: try keep local changes, reset if possible, then up to date. | |
:: > git-pull.bat --force | |
@echo off |
# dry-run
bash ./local_agones_forwarder.sh --dry-run true
# apply yaml
bash ./local_agones_forwarder.sh
# connect-timeout: 1s = connect timeout. if network connect is stopped frequentry, 1s will be strong option. | |
# max-time: 10s = must finish within this time | |
# retry: 5 = retry count | |
# retry-delay: 0 = no exponential backoff | |
# retry max time: 60 = retry no longer than | |
curl --connect-timeout 1 --max-time 10 --retry 5 --retry-delay 0 --retry-max-time 60 -fsSL https://download.docker.com/linux/ubuntu/gpg |
Kubernetes 上に Agones Controller (+ Agones Allocator) を配置して、DGS (Dedicated Game Server = Agones で管理する専用Pod) を確保する。
GCPお得意のサービス終了させた気配がある。アナウンスはないようだが、サイレントにしれっと終了っぽい。
# Amazon Linux 2023 | |
# need filter to latest | |
$ aws ec2 describe-images --owners amazon amazon --filters "Name=name,Values=al2023-ami-2023*-arm64" "Name=virtualization-type,Values=hvm" "Name=architecture,Values=arm64" --query 'reverse(sort_by(Images, &CreationDate))[:5].Name' --output text | |
# list of amis | |
$ aws ssm get-parameters-by-path --path "/aws/service/ami-amazon-linux-latest" | |
# only latest returns (same image id) | |
$ aws ssm get-parameters --name /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64 --output text | |
$ aws ssm get-parameters --name /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-arm64 --output text |
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: foo-daemonset | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: foo-daemonset | |
template: | |
metadata: |
Kubernetes のコンテナランタイムが Docker と containerd に変わることでどのような違いが起こるか例を教えてください。
Kubernetesは、コンテナ化されたアプリケーションを管理するためのオーケストレーションツールです。KubernetesがDockerからcontainerdに移行することで、いくつかの違いが生じます。
まず、コンテナイメージの管理方法が異なります。Dockerでは、コンテナイメージをDocker Hubなどのリポジトリからプルして管理しますが、containerdでは、OCI(Dockerの規格)に基づいて、イメージをプルして管理します。
次に、ネットワーク管理の方法が異なります。Dockerでは、Dockerが提供するネットワークドライバーを使用して、コンテナのネットワークを管理しますが、containerdでは、CNI(Container Network Interface)を使用して、ネットワークを管理します。
最後に、ログの管理方法が異なります。Dockerでは、Dockerデーモンがログを収集して管理しますが、containerdでは、コンテナランタイムがログを直接管理します。