<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>未分類 アーカイブ - Sheltie Garage Tech</title>
	<atom:link href="https://sheltie-garage.xyz/tech/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://sheltie-garage.xyz/tech/category/uncategorized/</link>
	<description>テクノロジー関連の話題をまとめたブログです</description>
	<lastBuildDate>Thu, 10 Sep 2026 07:24:26 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.2</generator>
	<item>
		<title>k8s(クバネティス)を触ってみる その1:環境構築〜nginx初期ページ表示まで</title>
		<link>https://sheltie-garage.xyz/tech/2026/09/k8s%e3%82%af%e3%83%90%e3%83%8d%e3%83%86%e3%82%a3%e3%82%b9%e3%82%92%e8%a7%a6%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae1%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9cnginx%e5%88%9d/</link>
					<comments>https://sheltie-garage.xyz/tech/2026/09/k8s%e3%82%af%e3%83%90%e3%83%8d%e3%83%86%e3%82%a3%e3%82%b9%e3%82%92%e8%a7%a6%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae1%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9cnginx%e5%88%9d/#respond</comments>
		
		<dc:creator><![CDATA[monodon]]></dc:creator>
		<pubDate>Wed, 02 Sep 2026 02:11:47 +0000</pubDate>
				<category><![CDATA[インフラ]]></category>
		<category><![CDATA[未分類]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/tech/?p=2123</guid>

					<description><![CDATA[<p>今までインフラはずっとDocker Compose止まりだったのですが、無職期間を利用してk8s(クバネティス)を触ってみることにしました実行環境は以下のとおりです・MacBookPro 2019(Intel Mac)  [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/tech/2026/09/k8s%e3%82%af%e3%83%90%e3%83%8d%e3%83%86%e3%82%a3%e3%82%b9%e3%82%92%e8%a7%a6%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae1%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9cnginx%e5%88%9d/">k8s(クバネティス)を触ってみる その1:環境構築〜nginx初期ページ表示まで</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">今までインフラはずっとDocker Compose止まりだったのですが、無職期間を利用してk8s(クバネティス)を触ってみることにしました<br>実行環境は以下のとおりです<br>・MacBookPro 2019(Intel Mac)</p>



<h2 class="wp-block-heading">Docker Composeとの違い</h2>



<p class="wp-block-paragraph">k8sもコンテナ管理ツールですが、自分が今メインで利用している「Docker Composeと何が違うのか」を最初に理解しておきたいと思います</p>



<p class="wp-block-paragraph">Docker Compose：1台のマシンの中で複数のコンテナを管理するためのツール<br>k8s：複数台のマシン(ノード)を跨いで、コンテナを管理するためのツール</p>



<p class="wp-block-paragraph">が大きな違いのようです<br>Docker Composeでは1台のマシン内で完結するため、最悪マシンごと落ちたら推しましですが、<br>k8sは複数マシンに跨いでコンテナを管理できるため、万が一1台のマシンが落ちてもサービスを継続することができます</p>



<p class="wp-block-paragraph">他、k8sが持つ気になる機能として<br>・HPA(Horizontal Pod Autoscaler)：アクセス数が増えてきたら自動でPodを増やすオートスケール機能<br>・ローリングアップデート / ロールバック：ローリングアップデートを行うための機能がデフォルトで用意されている</p>



<p class="wp-block-paragraph">この辺りの機能は個人開発アプリでも十分に恩恵を受けられそうです</p>



<h2 class="wp-block-heading">まずは環境構築</h2>



<p class="wp-block-paragraph">今回は「kind(Kubernetes in Docker)」を利用して環境を構築します<br>Dockerがインストールされていることが前提で、それ以外のセットアップは下記の通り行いました</p>



<p class="wp-block-paragraph">kindのインストール</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>brew install kind</code></pre></div>



<p class="wp-block-paragraph">インストール後のバージョン確認</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kind version
↓
kind v0.33.0 go1.27.0 darwin/amd64</code></pre></div>



<h2 class="wp-block-heading">早速クラスターを作ってみる</h2>



<p class="wp-block-paragraph">以下のコマンドでクラスターが作成されます</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kind create cluster --name study
↓
Creating cluster &quot;study&quot; ...
 ✓ Ensuring node image (kindest/node:v1.37.0) &#x1f5bc;
 ✓ Preparing nodes &#x1f4e6;
 ✓ Writing configuration &#x1f4dc;
 ✓ Starting control-plane &#x1f579;
 ✓ Installing CNI &#x1f50c;
 ✓ Installing StorageClass &#x1f4be;
Set kubectl context to &quot;kind-study&quot;
You can now use your cluster with:

kubectl cluster-info --context kind-study

Thanks for using kind! &#x1f60a;</code></pre></div>



<p class="wp-block-paragraph">以下のコマンドで作成したクラスターの情報が閲覧できます</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl cluster-info --context kind-study
↓
Kubernetes control plane is running at https://127.0.0.1:57690
CoreDNS is running at https://127.0.0.1:57690/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use &#39;kubectl cluster-info dump&#39;.</code></pre></div>



<p class="wp-block-paragraph">Node(実行環境)一覧を表示</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl get nodes
↓
NAME                  STATUS   ROLES           AGE    VERSION
study-control-plane   Ready    control-plane   4m6s   v1.37.0</code></pre></div>



<p class="wp-block-paragraph">全Podを表示するにはこちらのコマンドを利用します</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl get pods -A
↓
NAMESPACE            NAME                                          READY   STATUS    RESTARTS   AGE
kube-system          coredns-559f6c778d-d8txz                      1/1     Running   0          5m55s
kube-system          coredns-559f6c778d-n79ln                      1/1     Running   0          5m55s
kube-system          etcd-study-control-plane                      1/1     Running   0          6m3s
kube-system          kindnet-v2z9q                                 1/1     Running   0          5m55s
kube-system          kube-apiserver-study-control-plane            1/1     Running   0          6m3s
kube-system          kube-controller-manager-study-control-plane   1/1     Running   0          6m3s
kube-system          kube-proxy-p7qb4                              1/1     Running   0          5m55s
kube-system          kube-scheduler-study-control-plane            1/1     Running   0          6m3s
local-path-storage   local-path-provisioner-75f7fc7dc5-6mlb9       1/1     Running   0          5m55s</code></pre></div>



<h2 class="wp-block-heading">Podを配置してみる</h2>



<p class="wp-block-paragraph">実際にPodを配置して、nginx初期画面を表示させてみます</p>



<p class="wp-block-paragraph">まずはnginxのイメージを利用してpodを作成します</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl run nginx --image=nginx
↓
pod/nginx created</code></pre></div>



<p class="wp-block-paragraph">Podの状態を確認します</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl get pods
↓
NAME    READY   STATUS    RESTARTS   AGE
nginx   1/1     Running   0          83s

より詳しい情報を見る
kubectl describe pod nginx
↓
Name:             nginx
Namespace:        default
Priority:         0
Service Account:  default
Node:             study-control-plane/172.19.0.2
Start Time:       Wed, 02 Sep 2026 10:46:34 +0900
Labels:           run=nginx
Annotations:      &lt;none&gt;
Status:           Running
IP:               10.244.0.5
IPs:
  IP:  10.244.0.5
Containers:
  nginx:
    Container ID:   containerd://e7921ffe7728e479ab0cd4fcc004e3b98bfb8537289a535942d25d2920ad8967
    Image:          nginx
    Image ID:       docker.io/library/nginx@sha256:b34848eff6db786b6b1282d3a9c3fd0b5563dfb6d261df4923378b419e0d24f0
    Port:           &lt;none&gt;
    Host Port:      &lt;none&gt;
    State:          Running
      Started:      Wed, 02 Sep 2026 10:46:44 +0900
    Ready:          True
    Restart Count:  0
    Environment:    &lt;none&gt;
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-r6x7t (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   True
  Initialized                 True
  Ready                       True
  ContainersReady             True
  PodScheduled                True
Volumes:
  kube-api-access-r6x7t:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    Optional:                false
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              &lt;none&gt;
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type    Reason     Age    From               Message
  ----    ------     ----   ----               -------
  Normal  Scheduled  2m26s  default-scheduler  Successfully assigned default/nginx to study-control-plane
  Normal  Pulling    2m26s  kubelet            spec.containers{nginx}: Pulling image &quot;nginx&quot;
  Normal  Pulled     2m16s  kubelet            spec.containers{nginx}: Successfully pulled image &quot;nginx&quot; in 9.876s (9.877s including waiting). Image size: 63348835 bytes.
  Normal  Created    2m16s  kubelet            spec.containers{nginx}: Container created
  Normal  Started    2m16s  kubelet            spec.containers{nginx}: Container started</code></pre></div>



<p class="wp-block-paragraph">Podのログを見るには以下のコマンドを利用します</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl logs nginx
↓
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2026/09/02 01:46:44 [notice] 1#1: using the &quot;epoll&quot; event method
2026/09/02 01:46:44 [notice] 1#1: nginx/1.31.4
2026/09/02 01:46:44 [notice] 1#1: built by gcc 14.2.0 (Debian 14.2.0-19)
2026/09/02 01:46:44 [notice] 1#1: OS: Linux 7.0.12-linuxkit
2026/09/02 01:46:44 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1073741816:1073741816
2026/09/02 01:46:44 [notice] 1#1: start worker processes
2026/09/02 01:46:44 [notice] 1#1: start worker process 33
2026/09/02 01:46:44 [notice] 1#1: start worker process 34
2026/09/02 01:46:44 [notice] 1#1: start worker process 35
2026/09/02 01:46:44 [notice] 1#1: start worker process 36
2026/09/02 01:46:44 [notice] 1#1: start worker process 37
2026/09/02 01:46:44 [notice] 1#1: start worker process 38
2026/09/02 01:46:44 [notice] 1#1: start worker process 39
2026/09/02 01:46:44 [notice] 1#1: start worker process 40
2026/09/02 01:46:44 [notice] 1#1: start worker process 41
2026/09/02 01:46:44 [notice] 1#1: start worker process 42
2026/09/02 01:46:44 [notice] 1#1: start worker process 43
2026/09/02 01:46:44 [notice] 1#1: start worker process 44</code></pre></div>



<p class="wp-block-paragraph">現在の設定ではクラスタ内部用のIPしか設定されていないため直接アクセスができない<br>Docker Composeと同じ用にポートフォワードを設定して外部からアクセスできるようにします</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl port-forward pod/nginx 8080:80
↓
Forwarding from 127.0.0.1:8080 -&gt; 80
Forwarding from [::1]:8080 -&gt; 80</code></pre></div>



<p class="wp-block-paragraph">コマンド自体はフォアグラウンドで起動するため、バックグランドで起動するか、もう一つターミナルを立ち上げて実行するのが良さそうです</p>



<p class="wp-block-paragraph">上記コマンド実行後、ブラウザの8080にアクセスします</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1016" height="703" src="https://sheltie-garage.xyz/tech/wp-content/uploads/2026/09/スクリーンショット-2026-09-02-10.59.21.png" alt="" class="wp-image-2124" srcset="https://sheltie-garage.xyz/tech/wp-content/uploads/2026/09/スクリーンショット-2026-09-02-10.59.21.png 1016w, https://sheltie-garage.xyz/tech/wp-content/uploads/2026/09/スクリーンショット-2026-09-02-10.59.21-300x208.png 300w, https://sheltie-garage.xyz/tech/wp-content/uploads/2026/09/スクリーンショット-2026-09-02-10.59.21-767x531.png 767w" sizes="(max-width: 1016px) 100vw, 1016px" /></figure>



<p class="wp-block-paragraph">無事にウェルカムページが表示されました!</p>



<p class="wp-block-paragraph">もう一度、nginxのログを確認してみます</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl logs nginx
↓
34#34: *2 open() &quot;/usr/share/nginx/html/tools&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /tools HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/&quot;
127.0.0.1 - - [02/Sep/2026:01:58:42 +0000] &quot;GET /tools HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
127.0.0.1 - - [02/Sep/2026:01:58:43 +0000] &quot;GET /build.json HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
2026/09/02 01:58:43 [error] 35#35: *3 open() &quot;/usr/share/nginx/html/build.json&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /build.json HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/&quot;
2026/09/02 01:58:43 [error] 35#35: *3 open() &quot;/usr/share/nginx/html/props&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /props?autoload=false HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/&quot;
127.0.0.1 - - [02/Sep/2026:01:58:43 +0000] &quot;GET /props?autoload=false HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
2026/09/02 01:58:43 [error] 35#35: *3 open() &quot;/usr/share/nginx/html/v1/models&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /v1/models HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/&quot;
127.0.0.1 - - [02/Sep/2026:01:58:43 +0000] &quot;GET /v1/models HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
127.0.0.1 - - [02/Sep/2026:01:58:45 +0000] &quot;GET /sw.js HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/sw.js&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
2026/09/02 01:58:45 [error] 35#35: *3 open() &quot;/usr/share/nginx/html/sw.js&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /sw.js HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/sw.js&quot;
127.0.0.1 - - [02/Sep/2026:01:59:05 +0000] &quot;GET / HTTP/1.1&quot; 200 896 &quot;-&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;
2026/09/02 01:59:05 [error] 36#36: *4 open() &quot;/usr/share/nginx/html/favicon.ico&quot; failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: &quot;GET /favicon.ico HTTP/1.1&quot;, host: &quot;localhost:8080&quot;, referrer: &quot;http://localhost:8080/&quot;
127.0.0.1 - - [02/Sep/2026:01:59:05 +0000] &quot;GET /favicon.ico HTTP/1.1&quot; 404 555 &quot;http://localhost:8080/&quot; &quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36&quot; &quot;-&quot;</code></pre></div>



<p class="wp-block-paragraph">サイトにアクセスした形跡が残っていますね!</p>



<h2 class="wp-block-heading">Podの削除</h2>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl delete pod nginx
↓
pod &quot;nginx&quot; deleted from default namespace</code></pre></div>



<p class="wp-block-paragraph">Podが消えたのか確認</p>



<div class="hcb_wrap"><pre class="prism line-numbers lang-plain"><code>kubectl get pods
↓
No resources found in default namespace.</code></pre></div>



<p class="wp-block-paragraph">以上でPodの削除も完了です</p>



<h3 class="wp-block-heading">Claudeさんからのアドバイス</h3>



<p class="wp-block-paragraph"><strong>Podは基本的に使い捨て</strong><br>kubectl runコマンドで作成したPodは使い捨てで、消したら同じものは二度と戻ってこない<br>実運用ではDeploymentを使う(今後学習)</p>



<p class="wp-block-paragraph"><strong>port-forwardは開発時の確認用</strong><br>きちんとしたアクセス設定はServiceを利用する(今後学習予定)</p>



<p class="wp-block-paragraph"><strong>describeとlogsの使い分け</strong><br>describe:Podsが起動しないときの原因調査用(Eventsを確認する)<br>logs:Pods起動後に何が起きているかの確認用(アクセスやアプリケーションエラーなど)</p>



<h2 class="wp-block-heading">以上</h2>



<p class="wp-block-paragraph">ということで、k8s入門ということで環境設定からnginx起動までをやってみました<br>今後はDeploymentやServiceと言った、より本番運用に役立てられるような部分を勉強していきたいです</p>


<div id="rinkerid2126" class="yyi-rinker-contents  yyi-rinker-postid-2126 yyi-rinker-img-m yyi-rinker-catid-6 yyi-rinker-catid-1 ">
	<div class="yyi-rinker-box">
		<div class="yyi-rinker-image">
							<a href="https://af.moshimo.com/af/c/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FKubernetes%2F%3Ff%3D1%26grp%3Dproduct" rel="nofollow"><img decoding="async" src="https://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/9795/9784295009795.jpg?_ex=128x128" width="128" height="128" class="yyi-rinker-main-img" style="border: none;"></a><img decoding="async" src="https://i.moshimo.com/af/i/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616" width="1" height="1" style="border:none;">					</div>
		<div class="yyi-rinker-info">
			<div class="yyi-rinker-title">
									<a href="https://af.moshimo.com/af/c/click?a_id=3394378&#038;p_id=54&#038;pc_id=54&#038;pl_id=616&#038;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FKubernetes%2F%3Ff%3D1%26grp%3Dproduct" rel="nofollow">Kubernetes完全ガイド 第2版 （top gear） [ 青山真也 ]</a><img decoding="async" src="https://i.moshimo.com/af/i/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616" width="1" height="1" style="border:none;">							</div>
			<div class="yyi-rinker-detail">
							<div class="credit-box">created by&nbsp;<a href="https://oyakosodate.com/rinker/" rel="nofollow noopener" target="_blank" >Rinker</a></div>
										<div class="price-box">
							<span title="" class="price">¥4,400</span>
															<span class="price_at">(2026/09/26 01:36:49時点&nbsp;楽天市場調べ-</span><span title="このサイトで掲載されている情報は当サイトの作成者により運営されています。価格、販売可能情報は、変更される場合があります。購入時に楽天市場店舗（www.rakuten.co.jp）に表示されている価格がその商品の販売に適用されます。">詳細)</span>
																	</div>
						</div>
						<ul class="yyi-rinker-links">
																                    <li class="amazonlink">
						<a href="https://www.amazon.co.jp/gp/search?ie=UTF8&amp;keywords=Kubernetes&amp;tag=monodon-22&amp;index=blended&amp;linkCode=ure&amp;creative=6339" rel="nofollow" class="yyi-rinker-link">Amazon</a>					</li>
													<li class="rakutenlink">
						<a href="https://af.moshimo.com/af/c/click?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616&amp;url=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FKubernetes%2F%3Ff%3D1%26grp%3Dproduct" rel="nofollow" class="yyi-rinker-link">楽天市場</a><img decoding="async" src="https://i.moshimo.com/af/i/impression?a_id=3394378&amp;p_id=54&amp;pc_id=54&amp;pl_id=616" width="1" height="1" style="border:none;">					</li>
													<li class="yahoolink">
						<a href="https://af.moshimo.com/af/c/click?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502&amp;url=https%3A%2F%2Fshopping.yahoo.co.jp%2Fsearch%3Fp%3DKubernetes" rel="nofollow" class="yyi-rinker-link">Yahooショッピング</a><img loading="lazy" decoding="async" src="https://i.moshimo.com/af/i/impression?a_id=3442618&amp;p_id=1225&amp;pc_id=1925&amp;pl_id=18502" width="1" height="1" style="border:none;">					</li>
				                											</ul>
					</div>
	</div>
</div>

<p>投稿 <a href="https://sheltie-garage.xyz/tech/2026/09/k8s%e3%82%af%e3%83%90%e3%83%8d%e3%83%86%e3%82%a3%e3%82%b9%e3%82%92%e8%a7%a6%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae1%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9cnginx%e5%88%9d/">k8s(クバネティス)を触ってみる その1:環境構築〜nginx初期ページ表示まで</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sheltie-garage.xyz/tech/2026/09/k8s%e3%82%af%e3%83%90%e3%83%8d%e3%83%86%e3%82%a3%e3%82%b9%e3%82%92%e8%a7%a6%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%8b-%e3%81%9d%e3%81%ae1%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89%e3%80%9cnginx%e5%88%9d/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Unityのオブジェクト検索で詰まった話</title>
		<link>https://sheltie-garage.xyz/tech/2025/03/unity%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%a4%9c%e7%b4%a2%e3%81%a7%e8%a9%b0%e3%81%be%e3%81%a3%e3%81%9f%e8%a9%b1/</link>
					<comments>https://sheltie-garage.xyz/tech/2025/03/unity%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%a4%9c%e7%b4%a2%e3%81%a7%e8%a9%b0%e3%81%be%e3%81%a3%e3%81%9f%e8%a9%b1/#respond</comments>
		
		<dc:creator><![CDATA[monodon]]></dc:creator>
		<pubDate>Sun, 23 Mar 2025 13:00:49 +0000</pubDate>
				<category><![CDATA[未分類]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/tech/?p=1154</guid>

					<description><![CDATA[<p>Unityのオブジェクト検索でちょっと詰まったことがあったのでメモ Find関連のメソッドはオブジェクトが非アクティブだと検索されない UnityのFind系メソッド（GameObject.Find、FindWithTa [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/tech/2025/03/unity%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%a4%9c%e7%b4%a2%e3%81%a7%e8%a9%b0%e3%81%be%e3%81%a3%e3%81%9f%e8%a9%b1/">Unityのオブジェクト検索で詰まった話</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Unityのオブジェクト検索でちょっと詰まったことがあったのでメモ</p>



<h2 class="wp-block-heading">Find関連のメソッドはオブジェクトが非アクティブだと検索されない</h2>



<p class="wp-block-paragraph">UnityのFind系メソッド（GameObject.Find、FindWithTagなど)で非アクティブなオブジェクトは検索対象とならず取得できない</p>



<p class="wp-block-paragraph">解決方法としては以下があげられる<br>・public変数をクラスに用意し、エディターから対象オブジェクトを直接設定しておく<br>・transform.Findメソッドを利用する(Transformとして返却されるため、gameObjectプロパティを参照する)</p>



<p class="wp-block-paragraph">自分が作成しているゲームは、主要なオブジェクトをアセットバンドルからロードするため事前にpublic変数へ設定することができない・・・<br>transform.Findを利用することで解決できた</p>



<h2 class="wp-block-heading">スラッシュを利用した指定</h2>



<p class="wp-block-paragraph">XR Core Utilityに定義されているGetNamedChild、子オブジェクトを取得するときに利用していたのですが、孫オブジェクトがうまく取得できず悩んでました</p>



<p class="wp-block-paragraph">調べてみると、ヒエラルキーの階層はスラッシュ区切りで指定できるそうなので、スラッシュ区切りを指定することで孫オブジェクトも取得できる</p>



<h2 class="wp-block-heading">以上</h2>



<p class="wp-block-paragraph">本当にメモ内容で申し訳ないですが、自分が忘れないためなので・・・<br>今回の記事についてはすでに多くのノウハウが公開されているため、より詳細を知りたい場合は公式ドキュメントや他サイトを参考にされたし！</p>



<p class="wp-block-paragraph">参考サイト<br>https://takap-tech.com/entry/2024/03/04/214945<br>https://tech.pjin.jp/blog/2022/1/24/unity-transform_find/</p>



<p class="wp-block-paragraph"></p>
<p>投稿 <a href="https://sheltie-garage.xyz/tech/2025/03/unity%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%a4%9c%e7%b4%a2%e3%81%a7%e8%a9%b0%e3%81%be%e3%81%a3%e3%81%9f%e8%a9%b1/">Unityのオブジェクト検索で詰まった話</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sheltie-garage.xyz/tech/2025/03/unity%e3%81%ae%e3%82%aa%e3%83%96%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e6%a4%9c%e7%b4%a2%e3%81%a7%e8%a9%b0%e3%81%be%e3%81%a3%e3%81%9f%e8%a9%b1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>最近読んで面白かった本:内向型の生き方戦略―「社会から出て、境地を開拓する」という生き方提案</title>
		<link>https://sheltie-garage.xyz/tech/2024/06/%e6%9c%80%e8%bf%91%e8%aa%ad%e3%82%93%e3%81%a7%e9%9d%a2%e7%99%bd%e3%81%8b%e3%81%a3%e3%81%9f%e6%9c%ac%e5%86%85%e5%90%91%e5%9e%8b%e3%81%ae%e7%94%9f%e3%81%8d%e6%96%b9%e6%88%a6%e7%95%a5%e2%80%95%e3%80%8c/</link>
					<comments>https://sheltie-garage.xyz/tech/2024/06/%e6%9c%80%e8%bf%91%e8%aa%ad%e3%82%93%e3%81%a7%e9%9d%a2%e7%99%bd%e3%81%8b%e3%81%a3%e3%81%9f%e6%9c%ac%e5%86%85%e5%90%91%e5%9e%8b%e3%81%ae%e7%94%9f%e3%81%8d%e6%96%b9%e6%88%a6%e7%95%a5%e2%80%95%e3%80%8c/#respond</comments>
		
		<dc:creator><![CDATA[monodon]]></dc:creator>
		<pubDate>Sun, 30 Jun 2024 00:52:05 +0000</pubDate>
				<category><![CDATA[未分類]]></category>
		<guid isPermaLink="false">https://sheltie-garage.xyz/tech/?p=1080</guid>

					<description><![CDATA[<p>転職したことで通勤時間が片道2時間になりました。Kindle Unlimitedで読書を始めたので、面白かった本を紹介していこうと思います。 一言感想 内向的な性格を否定せず、社会になじめない性格を「境地開拓型」と解釈し [&#8230;]</p>
<p>投稿 <a href="https://sheltie-garage.xyz/tech/2024/06/%e6%9c%80%e8%bf%91%e8%aa%ad%e3%82%93%e3%81%a7%e9%9d%a2%e7%99%bd%e3%81%8b%e3%81%a3%e3%81%9f%e6%9c%ac%e5%86%85%e5%90%91%e5%9e%8b%e3%81%ae%e7%94%9f%e3%81%8d%e6%96%b9%e6%88%a6%e7%95%a5%e2%80%95%e3%80%8c/">最近読んで面白かった本:内向型の生き方戦略―「社会から出て、境地を開拓する」という生き方提案</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">転職したことで通勤時間が片道2時間になりました。<br><a href="https://amzn.to/4bsie4O">Kindle Unlimited</a>で読書を始めたので、面白かった本を紹介していこうと思います。</p>



<div class="oceanwp-oembed-wrap clr"><iframe loading="lazy" title="内向型の生き方戦略―「社会から出て、境地を開拓する」という生き方提案" type="text/html" width="1200" height="550" frameborder="0" allowfullscreen style="max-width:100%" src="https://read.amazon.com.au/kp/card?preview=inline&#038;linkCode=ll1&#038;ref_=k4w_oembed_O8ROnsu9u9guGk&#038;asin=B07777MYZX&#038;tag=monodon-22"></iframe></div>



<h2 class="wp-block-heading">一言感想</h2>



<p class="wp-block-paragraph">内向的な性格を否定せず、社会になじめない性格を「境地開拓型」と解釈し、解説している面白い内容となっていました。<br>内向的な性格というとネガティブな印象となりますが、境地開拓型と解釈すると、先陣を切って進む力強い印象に感じられました。</p>



<h2 class="wp-block-heading">自分は内向型の性格です</h2>



<p class="wp-block-paragraph">自分自身内向型の性格で、人の多いところは苦手です。会社組織についても雑談などがあまりできない性格で、何年在籍しても、会社になじめていないことに対して長年悩んでいました。</p>



<p class="wp-block-paragraph">そんな中で出会った1冊がこの本になります。<br>本書では最初に「外交的と内向的な性格の人間はおおよそ8:2で構成される」と解説されています。<br>そして、内向的な性格の人間が生まれてくるのは、種が生存していくうえで「何かメリットがあるから」という考察が書かれています。</p>



<p class="wp-block-paragraph">内容としては内向的な性格を直すのではなく、基本的に肯定的な意見(そのままで良い)で書かれています。<br>本書で面白い解釈として、「外交的な性格の人がほとんどを占める社会では、どうしても内向的な性格の人が変な人として見えてしまう。境地(社会から少し外れた場所)へ行けば、内向的な人が集まっているため、違和感がなくなる」という解釈です。</p>



<p class="wp-block-paragraph">本書の後半ではゆとり教育やベーシックインカムにも触れられており、なかなか興味深い考察も書かれていました。<br>(ざっくりお話しすると、ゆとり教育もベーシックインカムも、大多数を占める外向型の性格の人には合わない制度であると解説されています)</p>



<p class="wp-block-paragraph">内向的な性格でどのように社会の中で生活していけばよいのか迷っている人に、ぜひ目を通していただきたい本だと感じました。</p>



<div class="oceanwp-oembed-wrap clr"><iframe loading="lazy" title="内向型の生き方戦略―「社会から出て、境地を開拓する」という生き方提案" type="text/html" width="1200" height="550" frameborder="0" allowfullscreen style="max-width:100%" src="https://read.amazon.com.au/kp/card?preview=inline&#038;linkCode=ll1&#038;ref_=k4w_oembed_O8ROnsu9u9guGk&#038;asin=B07777MYZX&#038;tag=monodon-22"></iframe></div>
<p>投稿 <a href="https://sheltie-garage.xyz/tech/2024/06/%e6%9c%80%e8%bf%91%e8%aa%ad%e3%82%93%e3%81%a7%e9%9d%a2%e7%99%bd%e3%81%8b%e3%81%a3%e3%81%9f%e6%9c%ac%e5%86%85%e5%90%91%e5%9e%8b%e3%81%ae%e7%94%9f%e3%81%8d%e6%96%b9%e6%88%a6%e7%95%a5%e2%80%95%e3%80%8c/">最近読んで面白かった本:内向型の生き方戦略―「社会から出て、境地を開拓する」という生き方提案</a> は <a href="https://sheltie-garage.xyz/tech">Sheltie Garage Tech</a> に最初に表示されました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://sheltie-garage.xyz/tech/2024/06/%e6%9c%80%e8%bf%91%e8%aa%ad%e3%82%93%e3%81%a7%e9%9d%a2%e7%99%bd%e3%81%8b%e3%81%a3%e3%81%9f%e6%9c%ac%e5%86%85%e5%90%91%e5%9e%8b%e3%81%ae%e7%94%9f%e3%81%8d%e6%96%b9%e6%88%a6%e7%95%a5%e2%80%95%e3%80%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
