{"id":402,"date":"2026-05-26T20:04:17","date_gmt":"2026-05-26T11:04:17","guid":{"rendered":"https:\/\/gajumale.com\/tech\/?p=402"},"modified":"2026-07-27T13:11:15","modified_gmt":"2026-07-27T04:11:15","slug":"%e5%8f%a4%e3%81%84pc%e3%81%a7%e6%a7%8b%e7%af%89%ef%bc%81kvm%e3%81%a8podman%e3%81%a7%e5%ad%a6%e3%81%b6%e3%82%a4%e3%83%b3%e3%83%95%e3%83%a9%e5%86%97%e9%95%b7%e5%8c%96%e5%85%a5%e9%96%80","status":"publish","type":"post","link":"https:\/\/gajumale.com\/tech\/%e5%8f%a4%e3%81%84pc%e3%81%a7%e6%a7%8b%e7%af%89%ef%bc%81kvm%e3%81%a8podman%e3%81%a7%e5%ad%a6%e3%81%b6%e3%82%a4%e3%83%b3%e3%83%95%e3%83%a9%e5%86%97%e9%95%b7%e5%8c%96%e5%85%a5%e9%96%80\/","title":{"rendered":"\u53e4\u3044PC\u3067\u69cb\u7bc9\uff01KVM\u3068Podman\u3067\u5b66\u3076\u30a4\u30f3\u30d5\u30e9\u5197\u9577\u5316\u5165\u9580"},"content":{"rendered":"<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u4f7f\u3044\u9053\u306e\u306a\u3044\u53e4\u3044PC\u3092\u6d3b\u7528\u3057\u3001\u5b9f\u52d9\u306b\u8fd1\u3044\u30a4\u30f3\u30d5\u30e9\u69cb\u6210\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f\u3001Rocky Linux 9\uff08KVM\uff09\u3092\u57fa\u76e4\u3068\u3057\u3001Podman\u3068Kubernetes\u4e92\u63dbYAML\u3092\u7528\u3044\u3066\u3001Nginx\u306e\u5197\u9577\u69cb\u6210\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3080\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u304c\u7406\u89e3\u3067\u304d\u307e\u3059\u3002<br \/>\n<strong>\u30fb\u53e4\u3044\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u6d3b\u7528\u3057\u305f\u4eee\u60f3\u5316\u57fa\u76e4\u306e\u69cb\u7bc9\u624b\u9806<\/strong><br \/>\n<strong>\u30fbPodman\u3092\u7528\u3044\u305f\u30b3\u30f3\u30c6\u30ca\u904b\u7528\u306e\u57fa\u672c<\/strong><br \/>\n<strong>\u30fbKeepalived\u306b\u3088\u308bVIP\u3092\u7528\u3044\u305f\u9ad8\u53ef\u7528\u6027\u69cb\u6210<\/strong><br \/>\n<strong>\u30fb\u5c06\u6765\u7684\u306aKubernetes\u79fb\u884c\u3092\u898b\u636e\u3048\u305f\u8a2d\u8a08\u306e\u8003\u3048\u65b9<\/strong><\/p>\n<p>\u691c\u8a3c\u74b0\u5883\u306b\u3068\u3069\u307e\u3089\u305a\u3001\u672c\u756a\u904b\u7528\u3092\u610f\u8b58\u3057\u305f\u300c\u5b9f\u6226\u7684\u306a\u5b66\u7fd2\u30e9\u30dc\u300d\u3092\u69cb\u7bc9\u3057\u305f\u3044\u65b9\u306b\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<hr \/>\n<h1>\u76ee\u6b21<\/h1>\n<ol>\n<li>\u7269\u7406\u57fa\u76e4\u306e\u6e96\u5099\uff1aKVM\u30db\u30b9\u30c8\u306e\u69cb\u7bc9<\/li>\n<li>Nginx Web\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3068\u5197\u9577\u5316<\/li>\n<li>\u904b\u7528\u30fb\u76e3\u8996\u4f53\u5236\u306e\u6e96\u5099<\/li>\n<li>\u304a\u307e\u3051\uff1a\u30b5\u30fc\u30d3\u30b9\u306e\u5373\u6642\u5207\u308a\u66ff\u3048\u4f8b<\/li>\n<li>\u307e\u3068\u3081<\/li>\n<\/ol>\n<hr style=\"border: none; border-top: 5px double #333; margin: 20px 0;\" \/>\n<h1><b><span dir=\"auto\" style=\"vertical-align: inherit;\">1. \u7269\u7406\u57fa\u76e4\u306e\u6e96\u5099\uff1aKVM\u30db\u30b9\u30c8\u306e\u69cb\u7bc9<\/span><\/b><\/h1>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">1-1. \u7269\u7406PC\u30b9\u30da\u30c3\u30af\u3068\u30db\u30b9\u30c8OS<\/span><\/b><\/h3>\n<table border=\"1\">\n<thead>\n<tr>\n<th style=\"background: #4a86e8;\">\u9805\u76ee<\/th>\n<th style=\"background: #4a86e8;\">\u8a73\u7d30\u30b9\u30da\u30c3\u30af<\/th>\n<th style=\"background: #4a86e8;\">\u30b3\u30e1\u30f3\u30c8<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>PC\u30e2\u30c7\u30eb<\/td>\n<td>2011\u5e74\u88fd\u30c7\u30b9\u30af\u30c8\u30c3\u30d7PC<\/td>\n<td>\u53e4\u3044\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3092\u5b66\u7fd2\u30e9\u30dc\u306e\u571f\u53f0\u3068\u3057\u3066\u6d3b\u7528<\/td>\n<\/tr>\n<tr>\n<td>CPU<\/td>\n<td>Intel Core i7-2600(4C\/8T)<\/td>\n<td>Sandy Bridge\u4e16\u4ee3\u3000KVM\u306b\u3088\u308b\u4eee\u60f3\u5316\u304c\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u30e1\u30e2\u30ea\u30fc<\/td>\n<td>24 GB RAM (DDR3 1333 MT\/s)<\/td>\n<td>\u8907\u6570VM\u306e\u540c\u6642\u7a3c\u50cd\u304c\u53ef\u80fd<\/td>\n<\/tr>\n<tr>\n<td>\u30b9\u30c8\u30ec\u30fc\u30b8<\/td>\n<td>SSD 256GB<\/td>\n<td>\u4eee\u60f3\u30de\u30b7\u30f3I\/O\u3092\u9ad8\u901f\u5316<\/td>\n<\/tr>\n<tr>\n<td>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af<\/td>\n<td>Realtek\u88fd Gigabit NIC<\/td>\n<td>\u30aa\u30f3\u30dc\u30fc\u30c9NIC\u3092\u6d3b\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u30db\u30b9\u30c8OS<\/td>\n<td>Rocky Linux 9.6 (Blue Onyx)<\/td>\n<td>KVM\u30db\u30b9\u30c8\u3068\u3057\u3066\u6700\u9069\u306a\u5b89\u5b9a\u6027\u3068\u4e92\u63db\u6027<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h2 style=\"margin-top: 0;\"><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\ud83d\udee0\ufe0f<strong>\u69cb\u7bc9\u624b\u9806<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u30001. BIOS\u3067\u4eee\u60f3\u5316\u652f\u63f4\u6a5f\u80fd\uff08Intel VT-x \/ AMD-V\uff09\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<br \/>\n<\/span><\/span><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u30002. Rocky Linux\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n3. KVM\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002<br \/>\n<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo dnf install @virtualization -y\r\n$ sudo systemctl enable --now libvirtd<\/pre>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">1-2. KVM\u4eee\u60f3\u30de\u30b7\u30f3\u69cb\u6210\u3068\u30ea\u30bd\u30fc\u30b9\u914d\u5206<\/span><\/b><\/h3>\n<table border=\"1\">\n<thead>\n<tr>\n<th style=\"background: #4a86e8;\">VM\u540d<\/th>\n<th style=\"background: #4a86e8;\">\u5f79\u5272<\/th>\n<th style=\"background: #4a86e8;\">vCPU \/ vRAM<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>rocky9-1<\/td>\n<td>Podman\u57fa\u76e4\uff08Master\uff09<\/td>\n<td>2vCPU \/ 4GB<\/td>\n<\/tr>\n<tr>\n<td>rocky9-2<\/td>\n<td>Podman\u57fa\u76e4\uff08Backup\uff09<\/td>\n<td>2vCPU \/ 4GB<\/td>\n<\/tr>\n<tr>\n<td>OPNsense<\/td>\n<td>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/td>\n<td>1vCPU \/ 1GB<\/td>\n<\/tr>\n<tr>\n<td>ZabbixAppliance<\/td>\n<td>\u76e3\u8996\u30b5\u30fc\u30d0\u30fc<\/td>\n<td>1vCPU \/ 2GB<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h2 style=\"margin-top: 0;\"><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\ud83d\udccd<strong>\u8a2d\u8a08\u30dd\u30a4\u30f3\u30c8<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">Nginx\u81ea\u4f53\u306f\u8efd\u91cf\u3067\u3059\u3002\u305f\u3060\u3057\u76e3\u8996\u3084\u30ed\u30b0\u53ce\u96c6\u306e\u8ffd\u52a0\u3092\u60f3\u5b9a\u3057\u3001Podman\u57fa\u76e4\u306b\u306f\u4f59\u88d5\u3092\u6301\u305f\u305b\u3066\u3044\u307e\u3059\u3002<\/span><\/span><\/p>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">1-3. \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u8a08<\/span><\/b><\/h3>\n<table border=\"1\">\n<thead>\n<tr>\n<th style=\"background: #4a86e8;\">VM\u540d<\/th>\n<th style=\"background: #4a86e8;\">\u5f79\u5272<\/th>\n<th style=\"background: #4a86e8;\">IP\u30a2\u30c9\u30ec\u30b9 (br-mgmt)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>KVM\u30db\u30b9\u30c8OS<\/td>\n<td>\u30d9\u30a2\u30e1\u30bf\u30eb\uff08\u89aa\uff09<\/td>\n<td>192.168.1.209<\/td>\n<\/tr>\n<tr>\n<td>rocky9-1<\/td>\n<td>Podman\u57fa\u76e4\uff08Master\uff09<\/td>\n<td>192.168.1.202<\/td>\n<\/tr>\n<tr>\n<td>rocky9-2<\/td>\n<td>Podman\u57fa\u76e4\uff08Backup\uff09<\/td>\n<td>192.168.1.203<\/td>\n<\/tr>\n<tr>\n<td>OPNsense<\/td>\n<td>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb<\/td>\n<td>192.168.1.201<\/td>\n<\/tr>\n<tr>\n<td>ZabbixAppliance<\/td>\n<td>\u76e3\u8996\u30b5\u30fc\u30d0\u30fc<\/td>\n<td>192.168.1.15<\/td>\n<\/tr>\n<tr>\n<td>\u4eee\u60f3IP (VIP)<\/td>\n<td>Nginx\u30b5\u30fc\u30d3\u30b9\u7528<\/td>\n<td>192.168.1.200<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 style=\"margin-top: 0;\"><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\ud83d\udca1<strong>Tips<\/strong><\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u3079\u3066\u306eVM\u306f\u30d6\u30ea\u30c3\u30b8\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\uff08br-mgmt\uff09\u3067\u63a5\u7d9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u540c\u4e00\u30bb\u30b0\u30e1\u30f3\u30c8\u5185\u3067\u76f8\u4e92\u901a\u4fe1\u304c\u53ef\u80fd\u306a\u69cb\u6210\u3067\u3059\u3002<\/span><\/span><\/p>\n<hr style=\"border: none; border-top: 5px double #333; margin: 20px 0;\" \/>\n<h1><b><span dir=\"auto\" style=\"vertical-align: inherit;\">2. Nginx Web\u30b5\u30fc\u30d0\u30fc\u306e\u69cb\u7bc9\u3068\u5197\u9577\u5316<\/span><\/b><\/h1>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">2-1. Podman\u306e\u5c0e\u5165\u3068\u57fa\u672c\u8a2d\u5b9a<\/span><\/b><\/h3>\n<p>\u4e21\u30ce\u30fc\u30c9\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo dnf install podman -y\r\n$ ip a show eth0\u3000# IP\u3092\u78ba\u8a8d (.202 \/ .203)<\/pre>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">2-2. K8s\u4e92\u63dbYAML\u306b\u3088\u308bNginx\u5c55\u958b<\/span><\/b><\/h3>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u2460 <span style=\"color: #188038;\">YAML\u30d5\u30a1\u30a4\u30eb\uff08nginx-web.yaml\uff09<\/span>\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">apiVersion: v1\r\nkind: Pod\r\nmetadata:\r\n  name: webserver\r\nspec:\r\n  containers:\r\n    - name: nginx\r\n      image: docker.io\/library\/nginx:latest\r\n      ports:\r\n        - containerPort: 80\r\n      volumeMounts:\r\n        - mountPath: \/usr\/share\/nginx\/html\r\n          name: html\r\n  volumes:\r\n    - name: html\r\n      hostPath:\r\n        path: \/srv\/podman\/html\r\n<\/pre>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2461 \u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo podman play kube nginx-web.yaml\r\n<\/pre>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2462 \u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\uff08systemd\u751f\u6210\uff09\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo podman generate systemd --name webserver --files\r\n$ sudo mv container-webserver.service \/etc\/systemd\/system\/\r\n$ sudo systemctl enable --now container-webserver.service\r\n<\/pre>\n<hr style=\"border: none; border-top: 2px dotted #bbb; margin: 20px 0;\" \/>\n<h3><b><span dir=\"auto\" style=\"vertical-align: inherit;\">2-3. Keepalived\u306b\u3088\u308bVIP\u5197\u9577\u5316\u8a2d\u5b9a<\/span><\/b><\/h3>\n<p><strong><span dir=\"auto\" style=\"vertical-align: inherit;\">\u2460 \u4e21VM\u306bKeepalived\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/span><\/strong><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo dnf install keepalived -y<\/pre>\n<p><strong><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2461 Nginx\u76e3\u8996\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/strong><br \/>\n<span dir=\"auto\" style=\"vertical-align: inherit; color: #188038;\">\u914d\u7f6e\u5148\/etc\/keepalived\/check_nginx.sh<\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">#!\/bin\/bash\r\ncurl -s http:\/\/localhost\/ &gt; \/dev\/null\r\nif [ $? -ne 0 ]; then\r\n  systemctl restart container-webserver.service\r\nfi<\/pre>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo chmod +x \/etc\/keepalived\/check_nginx.sh\r\n<\/pre>\n<p><strong><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2462 Master\u30ce\u30fc\u30c9\u8a2d\u5b9a\uff08rocky9-1\uff09\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/strong><br \/>\n<span dir=\"auto\" style=\"vertical-align: inherit; color: #188038;\">\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\uff1a\/etc\/keepalived\/keepalived.conf<\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">vrrp_instance VI_1 {\r\n  state MASTER\r\n  interface eth0\r\n  virtual_router_id 51\r\n  priority 101\r\n  advert_int 1\r\n  authentication {\r\n    auth_type PASS\r\n    auth_pass 1234\r\n  }\r\n  virtual_ipaddress {\r\n    192.168.1.200\r\n  }\r\n  track_script {\r\n    chk_nginx\r\n  }\r\n}\r\n<\/pre>\n<p><span dir=\"auto\" style=\"vertical-align: inherit;\">Backup\u30ce\u30fc\u30c9\uff08rocky9-2\uff09\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u30fbstate\u3092BACKUP\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<br \/>\n\u30fbpriority\u3092100\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/span><br \/>\n<strong><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2463 \u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/span><\/strong><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo firewall-cmd --permanent --add-protocol=vrrp\r\n$ sudo firewall-cmd --reload\r\n<\/pre>\n<p><strong><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2464 \u30b5\u30fc\u30d3\u30b9\u3092\u8d77\u52d5\u3057\u3001\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/span><\/strong><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo systemctl enable --now keepalived\r\n$ ip a show eth0  # VIP\u304c\u4ed8\u4e0e\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\r\n<\/pre>\n<hr style=\"border: none; border-top: 5px double #333; margin: 20px 0;\" \/>\n<h1><b><span dir=\"auto\" style=\"vertical-align: inherit;\">3. \u904b\u7528\u30fb\u76e3\u8996\u4f53\u5236\u306e\u6e96\u5099\uff08Next Steps\uff09<\/span><\/b><\/h1>\n<table border=\"1\">\n<thead>\n<tr>\n<th style=\"background: #4a86e8;\">\u30d5\u30a7\u30fc\u30ba<\/th>\n<th style=\"background: #4a86e8;\">\u5c0e\u5165VM<\/th>\n<th style=\"background: #4a86e8;\">\u76ee\u7684<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>OPNsense\u8a2d\u5b9a<\/td>\n<td>OPNsense<\/td>\n<td>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5f37\u5316<br \/>\n\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u5236\u5fa1\u3084\u4fb5\u5165\u691c\u77e5\u3092\u6709\u52b9\u5316<\/td>\n<\/tr>\n<tr>\n<td>Zabbix\u69cb\u7bc9<\/td>\n<td>ZabbixAppliance<\/td>\n<td>Keepalived\u306eVIP\u72b6\u614b\u3084Nginx\u7a3c\u50cd\u3092\u76e3\u8996<\/td>\n<\/tr>\n<tr>\n<td>\u7ba1\u7406\u4f53\u5236<\/td>\n<td>\u5168VM\u5171\u901a<\/td>\n<td>CLI\u4e2d\u5fc3\u3067\u7d71\u5408\u7684\u306b\u7ba1\u7406<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr style=\"border: none; border-top: 5px double #333; margin: 20px 0;\" \/>\n<h1><b><span dir=\"auto\" style=\"vertical-align: inherit;\">4. \u304a\u307e\u3051:<\/span><\/b><b><span dir=\"auto\" style=\"vertical-align: inherit;\">\u30de\u30a4\u30af\u30e9\u30b5\u30fc\u30d0\u30fc\u3092\u5373\u6642\u5207\u308a\u66ff\u3048<\/span><\/b><\/h1>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">Podman\u306e\u5229\u70b9\u306f\u3001\u57fa\u76e4\u3092\u5909\u66f4\u305b\u305a\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u70b9\u3067\u3059\u3002<\/span><\/span><br \/>\n<span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u4ee5\u4e0b\u3067\u306f\u3001Nginx\u306e\u4ee3\u308f\u308a\u306bMinecraft\u30b5\u30fc\u30d0\u30fc\u3092\u7acb\u3066\u308b\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/span><\/span><br \/>\n<span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2460 Nginx\u3092\u505c\u6b62\u3057\u307e\u3059\u3002<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo podman play kube --down nginx-web.yaml\r\n<\/pre>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u2461 Minecraft\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/span><\/span><\/p>\n<pre class=\"lang:default highlight:0 decode:true\">$ sudo podman run -d --name mc-bedrock \\\r\n  -p 19132:19132\/udp \\\r\n  -v \/srv\/podman\/minecraft:\/data:Z \\\r\n  -e EULA=TRUE \\\r\n  -e SERVER_NAME=Lab-Bedrock \\\r\n  docker.io\/itzg\/minecraft-bedrock-server:latest\r\n<\/pre>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><br \/>\n\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c VIP\uff08192.168.1.200\uff09\u306b\u63a5\u7d9a\u3059\u308b\u3068\u3001\u63d0\u4f9b\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u304c\u5373\u5ea7\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3059\u3002<br \/>\n<\/span><\/span><br \/>\n<span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\"><strong>\u74b0\u5883\u3092\u5909\u3048\u305a\u306b\u7528\u9014\u3092\u5373\u6642\u5207\u308a\u66ff\u3048\u308b<\/strong>\u2500\u2500\u3053\u308c\u304c\u30e2\u30c0\u30f3\u30a4\u30f3\u30d5\u30e9\u306e\u67d4\u8edf\u6027\u3067\u3059\u3002<br \/>\n<\/span><\/span><\/p>\n<hr style=\"border: none; border-top: 5px double #333; margin: 20px 0;\" \/>\n<h1><b><span dir=\"auto\" style=\"vertical-align: inherit;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">5.\u307e\u3068\u3081<\/span><\/span><\/b><\/h1>\n<p><strong>\u30fb\u53e4\u3044PC\u3067\u3082\u5b9f\u6226\u7684\u306a\u30a4\u30f3\u30d5\u30e9\u74b0\u5883\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059<\/strong><br \/>\n<strong>\u30fbPodman\u306b\u3088\u308a\u30b3\u30f3\u30c6\u30ca\u904b\u7528\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059<\/strong><br \/>\n<strong>\u30fbKeepalived\u306b\u3088\u308a\u9ad8\u53ef\u7528\u6027\u69cb\u6210\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059<\/strong><br \/>\n<strong>\u30fbKubernetes\u3092\u898b\u636e\u3048\u305f\u69cb\u6210\u306b\u62e1\u5f35\u3067\u304d\u307e\u3059<\/strong><\/p>\n<p>\ud83d\udca1 Tips<br \/>\n\u3053\u306e\u69cb\u6210\u306f\u5358\u306a\u308b\u691c\u8a3c\u74b0\u5883\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u672c\u756a\u904b\u7528\u3092\u610f\u8b58\u3057\u305f\u300c\u5c0f\u3055\u306a\u30a4\u30f3\u30d5\u30e9\u57fa\u76e4\u300d\u3068\u3057\u3066\u767a\u5c55\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><span style=\"font-weight: 400;\"><span dir=\"auto\" style=\"vertical-align: inherit;\">\u00a0<\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u672c\u8a18\u4e8b\u3067\u306f\u3001\u4f7f\u3044\u9053\u306e\u306a\u3044\u53e4\u3044PC\u3092\u6d3b\u7528\u3057\u3001\u5b9f\u52d9\u306b\u8fd1\u3044\u30a4\u30f3\u30d5\u30e9\u69cb\u6210\u3092\u69cb\u7bc9\u3059\u308b\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \u5177\u4f53\u7684\u306b\u306f\u3001Rocky Linux 9\uff08KVM\uff09\u3092\u57fa\u76e4\u3068\u3057\u3001Podman\u3068Kubernetes\u4e92\u63dbYAML\u3092\u7528\u3044\u3066\u3001 [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,8],"tags":[],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-9","category-8"],"_links":{"self":[{"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/comments?post=402"}],"version-history":[{"count":16,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/posts\/402\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/media?parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gajumale.com\/tech\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}