夏の自由研究ブログ連載2022 の10本目です。 はじめにTIG 岸下です。業務でGKE(Google Kubernetes Engine)を利用することがあるのですが、Kubernetesの挙動や仕組みなど如何せん理解が難しいです。 そこで今回は、自分の手でイチからKubernetesを構築することで勉強しようと思ったのが本記事のモチベーションです。 ちょうど自宅にRaspberry Piが3台あったのでRaspberry Piでクラスタを構築していこうと思います。基本的には以下の記事を参考に設定を行っていき、自分の理解を深めるために解説を挟みながら書いていこうと思います。 参考:RaspberryPi 4 にUbuntu20.04 をインストールして、Kubernetes を構築してコンテナを動かす 今回Kubernetes構築するにあたって用意したもの Raspberry Pi3 M
1.はじめに 今回はラズパイでKubernetesクラスタを構築してみたいと思います。 OSはUBUNTU SERVER 22.04.2 LTS(64-BIT)を使用し、全てのラズパイにインストール済みのところから始めます。OSのインストール方法は他の記事を参照してください。 また、クラスタの構成は以下のようになります。 2.k8sクラスタを構築するための予備知識 まず、クラスタ構築の前に必要となる知識を整理していきたいと思います。 kubectl KubernetesのCLIです。 kube-apiserver Kubernetes APIを提供するコンポーネントです。kubectlを使ってkube-apiserverに対してリクエストを送り、Kubernetesのリソースを管理します。 kubelet コンテナランタイムと連携し、コンテナを管理します。 コンテナランタイム 高レベルコン
はじめに しまねソフト研究開発センター(略称 ITOC)にいます、東です。 教育用ワンボードマイコンとして販売されている Raspberry Pi (以下ラズパイ)は、教育用のみならず実験用、産業用とさまざまな分野で使われつつあります。一方、マイクロSDカードをメインストレージに使用している事や、OSがクライアントPCよりの設定にしてある事などから、長期安定運用には向かない面も存在します。 このレポートでは、OSや稼働させるソフトウェアの設定など、できるだけ簡易に再現可能な方法により、可能な限りラズパイを安定して長期運用させることを狙います。また、その題材として、デジタルサイネージ(*)を作ってみます。 私は、2000年ごろからフラッシュメモリを使ったFA機器の開発を皮切りに、10年ほど前からは民生用フラッシュメモリ(CF,SD,USBメモリ)を起動デバイスとした機器を開発・運用していまし
概要 Raspberry のGPUのメモリはシステムメモリと共有です。 GPUに割り当てられているメモリのサイズを変更する方法を確認してみました。 試した環境 ラズパイ4、8GB RAM 。 Ubuntu が動いています。 $ cat /proc/device-tree/model Raspberry Pi 4 Model B Rev 1.4 $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 21.04 Release: 21.04 Codename: hirsute 設定方法 現在のGPUメモリのサイズを確認します。デフォルトではGPUへの割当は76MBのようです。 システムのメモリも全然余裕がありますので、GPUの割当を増やしていきます。 $ vcgencm
こんにちは、koheiです。 あけましておめでとうございます。 2020年、ずっとやりたかったオリジナルロボット製作にチャレンジしたいと思います。 まずは、キャタピラー型の移動ロボットにROSやラズパイ、各種センサーをつけて、自宅内を自律的に走行する「お手伝いロボット」を作ります。 ロボットの構成 今回作製するロボットの構成は、以下のようになります。 ・Androidスマホに入れた「ROS Control」アプリから、速度情報を通知して、ラズパイのROSで受け、それをDCモーター用の指示値に変換して、DCモーターを動かします。 購入部品 冬休みに入りまとまった時間がとれそうだったので、若干勢いで以下の部品を購入してみました。 Devastator タンク移動ロボットプラットフォーム (メタル DC ギヤモータ) こちらは、ロボットのシャーシ部に使うために購入。同額のシャーシはアマゾンに色々
OSのインストールとサーボのオフセット調整方法 OS OSはV1基板の場合は「20211201_v1.6.1_MiniPupper_PS4_Ubuntu_20.04.2_Baseline.img.zip」 V2基板の場合は「20211220_v2.1.3_MiniPupper_V2_PS4_Ubuntu_20.04.2_Baseline.img.zip」 サーボのオフセット調整方法 2021年12月27日現在マニュアルがないためどの角度に合わせるのが正解なのかは不明 (2021年12月22日に確認したところ間もなく資料は公開されるもよう) とりあえずなんとなく上記の画像の角度に合わせている 上記の動画で紹介されているコマンドラインでキャリブレーションするツールは、以下のコミットでGUI版キャリブレーションツールに置き換わっている
As you can see from the table above, it is easy to be confused about which products will support which Debian/Raspbian ports. Using arm6hf (Raspbian’s derivative of armhf with ARMv7-only instructions removed but floating-point instructions retained) provides us with an operating system which will run on every device we have ever manufactured, all the way back to 2011. But we’ve come to realise tha
【備忘録】明成化学ABSフィラメント「3D Prinstar」(ナチュラル)のスプールサイズ、Simplify3Dパラメータ等
Raspberry Pi 4をいじっていてふとイヤホンジャックを使ったことがないのを思い出して、何も考えずにイヤホンを差し込んだところYoutubeなどを再生しても一切音が出ませんでした。 Raspberry Piで音を出すには色々と設定が必要らしく、調べて色々設定をいじって音が鳴るようになりました。 今回はその備忘録になります。 では始めます。 ・音を出す設定方法 LXTerminalを立ち上げて以下のコマンドを実行します。 $ sudo raspi-config 以下のようにconfig画面になるので「Advanced Options」を選択して「Enterキー」を押します。 「Audio」を選択して「Enterキー」を押します。 どちらで音を出すかを選択できるので、今回はイヤホンから出すために「Headphones」を選択して「Enterキー」を押します。 あとは「右矢印キー」を押し
完成品 まずは完成したクラスターをご紹介します。 関連記事 2020/02/25 追記 ラズパイk8s用の監視システム(Node Exporter + Prometheus + InfluxDB + Grafana) Raspberry Pi上のDockerで動くイメージのCIでのビルド方法 モチベーション つい先日会社のサポート制度である「テックサポート制度」の対象にRaspberry Piが追加されているのを発見しました。 これは使わない手はないなと思い最上位モデルの4GBを3台購入し、長年の悲願であったKubernetes Cluster on Raspberry Piを構築することができました。 ちなみに、テックサポート制度に関しては会社の 開発者ブログ に詳しく書かれています。 (宣伝ノルマ達成) これがやりたかっただけ コンセプト ラズパイk8sクラスターなんて先人達が幾度とな
この記事はRaspberry_Pi - ラズパイでやらなければいけない4つのセキュリティ対策!の再投稿です。 はじめに ラズパイは低価格で高スペックで出来ることも多いのですが、セキュリティ面を何も気にせずデフォルトで利用するのはかなり危ないです! というのも、ラズパイを使う以上はおそらくインターネットに接続することになると思うのですが、ラズパイはrootユーザーの名前とパスワードが公開されているので、インターネットに接続した段階で、猛烈なアタックを受けます。 なので 新規ユーザーの作成 SSHで公開鍵認証 ポート番号等の設定変更 piユーザーの削除 を行っていきます 参考:5ステップで完了!ラズベリーパイ(B+)のセキュリティ設定まとめ! 前提条件! 参考:Raspberry PiにSSHで公開鍵認証を使いたい! まずはルートユーザーでログインします。 ラズパイの設定が終わっていない方はこ
UIテストの所要時間を10分の1にする試み、Raspberry Piのクラスタで並列実行。ソフトウェア品質シンポジウム2018 開発現場の多くでテストの自動化が進む中で、テスト時間を短縮することはビルドとテストの待ち時間を減らし、開発効率を高める上で重要なポイントになってきています。 そうしたなかで時間がかかっていたUIテストの所要時間を短縮する手段としてRaspberry Piをクラスタ化する手法を紹介するのが、レバテック株式会社 折田武己氏です。 本記事では、9月12日から14日のあいだ東洋大学で開催された「ソフトウェア品質シンポジウム」(日本科学技術連盟主催)での折田氏のセッション「UIテストの所要時間を10分の1に短縮する取り組み~ラズベリーパイのクラスターで並列実行~」の内容をダイジェストで紹介します。 単体テストはさくさく終わるのにUIテストは時間がかかる レバテック株式会社
ちょっと前にRaspberry Pi Zero Wの技適番号が確認されて、ようやく日本国内でも安心して購入できるようになりました。 シール貼付対応になっているものの他に、海外では基板に直接印刷されたものも同時に流通し始めています。実はPiZeroWは技適番号の他にCEマークでもちょっとしたミスがあり、技適番号と同時にそれが修正されています([ CEマーク - Wikipedia ]を参照)。これが理由ではないのですが、国内では例によってユーザーが殺到しておりサーバーが落ちていたりして大変そうだったので、Pimoroniからぽっちりしました。22台目っぽくてどうしたもんやら。でも展示用には常に不足しているので余してはいないんですよね。おかしい。 さて、技適の諸々が印刷されたバージョンはこんな感じでした。FCC ID(アメリカの技適みたいなやつ)は変わりないので、いちおう設計の変更なく技適も取
Provide faster ways for users to access your Android app via Assistant.
こんにちは。 もう何番煎じかもよく分かりませんがとりあえず眠らせてるRaspberry Piを無線LANアクセスポイント化しました。 このページを参考にしました。というか、このページほとんどそのまんまです・・・ How to Set up a Raspberry Pi as a Wireless Access Point 手順 ・固定IPアドレスの設定 ・DHCPサーバー(isc-dhcp-server)のインストールと設定 ・APデーモン(hostapd)のインストールと設定 ・wi-fiとイーサネット(wlan0とeth0)のルーティング こちらの環境は Mac OS X Yosemite Raspberry Pi Model B+ (Raspbian) 間でssh接続をしています。 事前にwi-fiドングルを準備しておいてください。 (チップによってAP化できないものもあるみたいです
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く