mirror of
https://github.com/tuna2134/cecilia.git
synced 2026-02-06 14:42:40 +00:00
feat: add initial content for Kubernetes ansible script guide
This commit is contained in:
31
blogs/k8s.mdx
Normal file
31
blogs/k8s.mdx
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
export const metadata = {
|
||||||
|
title: "Kubernetes構築ansibleスクリプト",
|
||||||
|
description: "高可用性クラスターを簡単に構築するためのansibleスクリプトです。",
|
||||||
|
datetime: "2025/05/07",
|
||||||
|
};
|
||||||
|
|
||||||
|
Kubernetes構築ansibleスクリプトの使い方
|
||||||
|
|
||||||
|
## 環境のセットアップ
|
||||||
|
uvをインスコします
|
||||||
|
```sh
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## パッケージなどをインストール
|
||||||
|
```sh
|
||||||
|
uv sync
|
||||||
|
```
|
||||||
|
|
||||||
|
## virtualenvに没入
|
||||||
|
```
|
||||||
|
source .venv/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
## configの変更
|
||||||
|
`inventory`の内容をよしなに変更してね
|
||||||
|
|
||||||
|
## 実行
|
||||||
|
```
|
||||||
|
ansible-playbook -i inventory full.yml
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user