投稿時間:2023-05-15 15:23:34 RSSフィード2023-05-15 15:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia PC USER] スタイルニック、家電製品の電源オン/オフを制御できるスマートプラグ https://www.itmedia.co.jp/pcuser/articles/2305/15/news121.html itmediapcuser 2023-05-15 14:38:00
IT ITmedia 総合記事一覧 [ITmedia News] 楽天、西友の株式を売却 「協業は継続」 https://www.itmedia.co.jp/news/articles/2305/15/news118.html itmedia 2023-05-15 14:30:00
IT ITmedia 総合記事一覧 [ITmedia PC USER] デジオン、録画番組視聴アプリ「DiXiM Play」をアップデート スマートプロジェクター「JMGO N1 Ultra」に対応 https://www.itmedia.co.jp/pcuser/articles/2305/15/news114.html diximplay 2023-05-15 14:08:00
IT ITmedia 総合記事一覧 [ITmedia News] 歌詞を入力するだけでAIが作曲、歌ってくれる「SongR」話題 日本でも研究されてきた技術 https://www.itmedia.co.jp/news/articles/2305/15/news113.html itmedia 2023-05-15 14:05:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] シチズン、『スター・ウォーズ』とコラボ 「R2-D2」「C-3PO」をデザインした4モデル https://www.itmedia.co.jp/business/articles/2305/15/news108.html itmedia 2023-05-15 14:04:00
TECH Techable(テッカブル) ドローン空路開発のトルビズオン、NTT西日本のビジネス共創ピッチプログラムに採択される https://techable.jp/archives/205482 株式会社 2023-05-15 05:00:10
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders 日立、生成AIの利活用を社内外で推進するCoE組織「Generative AI センター」を設立 | IT Leaders https://it.impress.co.jp/articles/-/24821 日立、生成AIの利活用を社内外で推進するCoE組織「GenerativeAIセンター」を設立ITLeaders日立製作所は年月日、生成AIの利用を社内外で推進するCoE組織「GenerativeAIセンター」を設立した。 2023-05-15 14:10:00
python Pythonタグが付けられた新着投稿 - Qiita [アルゴリズム]アルゴリズム自学習型AIをpythonで作ってみた https://qiita.com/kojake/items/659983497693417611b5 作ってみた 2023-05-15 14:30:42
python Pythonタグが付けられた新着投稿 - Qiita 【Python】連想配列とは https://qiita.com/mei2678/items/0c4748325b1bfc013536 dictionary 2023-05-15 14:25:46
python Pythonタグが付けられた新着投稿 - Qiita [自分用]polars移行メモ https://qiita.com/GETB/items/de687dd9aac4958b18dd https 2023-05-15 14:04:06
js JavaScriptタグが付けられた新着投稿 - Qiita <作成予定>AngularJSを触ってみよう https://qiita.com/technology2016QiitaMK/items/441c0321eb3ef31a994c angularjs 2023-05-15 14:28:14
Ruby Rubyタグが付けられた新着投稿 - Qiita Rails プロジェクト名(アプリ名)の変更方法 https://qiita.com/amatouyamahodo/items/a39b4bb3bce504b81933 agribeit 2023-05-15 14:33:06
golang Goタグが付けられた新着投稿 - Qiita Goでパッケージの依存関係を可視化&制御するツールを作った https://qiita.com/junyaUJ/items/2f68db9cfe6bf8758f16 関係 2023-05-15 14:37:39
Ruby Railsタグが付けられた新着投稿 - Qiita Rails プロジェクト名(アプリ名)の変更方法 https://qiita.com/amatouyamahodo/items/a39b4bb3bce504b81933 agribeit 2023-05-15 14:33:06
海外TECH DEV Community Using Docker Buildx to Create Cross-Platform Docker Images for Seamless Compatibility https://dev.to/aws-builders/using-docker-buildx-to-create-cross-platform-docker-images-for-seamless-compatibility-4k8b Using Docker Buildx to Create Cross Platform Docker Images for Seamless CompatibilityDocker is really a great tool and provides a convenient way to package and deploy applications Until my recent experience I believed that Docker images were portable and could run on any machine regardless of CPU architecture Basically one of my colleagues built an image on his Mac and shipped it to me and I was attempting to run it on Ubuntu then I realised I was mistaken The problem was that Mac s use ARM processors whereas mine was AMD processor and whenever I attempted to run the container it displayed a warning and the container was abruptly terminated WARNING The requested image s platform linux arm does not match the detected host platform linux amd and no specific platform was requestedLater after doing some research I discovered something called docker buildx with platform flag which we can use while building an image Docker BuildxDocker Buildx is a command line tool that provides advanced capabilities for building and managing multi platform Docker images Basically it is an extension to the regular docker build command Using docker buildx we can create docker images that are compatible with multiple CPU architectures such as AMD ARM etc Honestly after encountering the above issue I think it is pretty useful when there is a requirement for deploying or running a container on different architectures A quick rundown of how it can be utilisedBuilder instance For using docker buildx there should be a builder instance up and running and for creating a builder instance fire docker buildx create use docker buildx create use name buildx instancebuildx instanceOnce the builder instance is created and active it can be used using docker buildx build command for building images As well the status of the instance can be checked using docker buildx ls or docker ps command docker buildx ls NAME NODE DRIVER ENDPOINT STATUS BUILDKIT PLATFORMSbuildx instance docker container buildx instance unix var run docker sock running v linux amd linux amd v linux amd v linux default docker default default running linux amd linux docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESeabe moby buildkit buildx stable buildkitd minutes ago Up minutes buildx buildkit buildx instancedocker buildx build command can be used for building images the intresting option while building the image is platform flag In this command we are creating a image which is compatible with ARM as well as AMD processors docker buildx build platform linux amd linux arm linux arm v t sunnybhambhani multi test v Note The images won t be visible under docker images and these images will be in buildx cache only Further push flag can be used to directly push the images to dockerhub docker buildx build platform linux amd linux arm linux arm v t sunnybhambhani multi test v push Here is how it will be visible on dockerhub Additionally docker buildx imagetools inspect can be used for inspecting docker images docker buildx imagetools inspect sunnybhambhani multi test vName docker io sunnybhambhani multi test vMediaType application vnd docker distribution manifest list v jsonDigest sha afcabedfdebcbdefacbdbcManifests Name docker io sunnybhambhani multi test v sha bfceefbcdfdcbccbfbf MediaType application vnd docker distribution manifest v json Platform linux amd Name docker io sunnybhambhani multi test v sha bbbafcaacedaefafafacb MediaType application vnd docker distribution manifest v json Platform linux arm Name docker io sunnybhambhani multi test v sha fdbdebbfcffdaefcbcbf MediaType application vnd docker distribution manifest v json Platform linux arm vOther important docker buildx commands docker buildx du Check the disk usagedocker buildx imagetools inspect To inspect the created imagesdocker buildx inspect To inspect current builder instancedocker buildx ls To list builder instancesdocker buildx prune To remove build cachedocker buildx rm To remove a builder instancedocker buildx stop To stop builder instanceReferences and more details around this topic can be found on below URLs docker buildx helpFeel free to add your thoughts and correct me if I am wrong or have missed something Happy learning 2023-05-15 05:31:20
海外TECH DEV Community Kubernetes CRUD Operation using Go on Docker Desktop https://dev.to/docker/kubernetes-crud-operation-using-go-on-docker-desktop-3l6a Kubernetes CRUD Operation using Go on Docker DesktopKubernetes is a popular container orchestration platform used by developers to deploy and manage their applications While Kubernetes provides a powerful command line interface called kubectl for managing Kubernetes resources it can also be accessed programmatically using various programming languages such as Python Go and Java In this blog post we will focus on using Go to perform CRUD Create Read Update and Delete operations on Kubernetes resources Specifically we will demonstrate how to perform CRUD operations on deployments using the Kubernetes API and the official Go client library We will be performing these operations on a local Kubernetes cluster running on Docker Desktop PrerequisitesBefore we start make sure you have the following prerequisites Docker Desktop installedGo installedA basic understanding of Kubernetes concepts such as deployments and pods Setting up the Go environmentTo get started we need to set up our Go environment We will first create a new directory for our project and initialize a new Go module mkdir kubernetes go amp amp cd kubernetes gogo mod init github com lt username gt kubernetes goNext we need to install the ks io client go package which provides a client library for accessing the Kubernetes API go get ks io client go v Creating a deploymentLet s start by creating a deployment using Go In Kubernetes a deployment is used to manage a set of replica pods We will create a deployment that manages a single pod running an Nginx web server First create a new file called create deployment go and add the following code package mainimport fmt os ks io client go kubernetes ks io client go rest ks io client go util retry appsv ks io api apps v func main create a Kubernetes client config err rest InClusterConfig if err nil panic err Error clientset err kubernetes NewForConfig config if err nil panic err Error create the deployment object deployment amp appsv Deployment ObjectMeta metav ObjectMeta Name nginx deployment Spec appsv DeploymentSpec Replicas intPtr Selector amp metav LabelSelector MatchLabels map string string app nginx Template corev PodTemplateSpec ObjectMeta metav ObjectMeta Labels map string string app nginx Spec corev PodSpec Containers corev Container Name nginx Image nginx latest Ports corev ContainerPort ContainerPort create the deployment retryErr retry RetryOnConflict retry DefaultRetry func error err clientset AppsV Deployments default Create deployment return err if retryErr nil fmt Fprintf os Stderr Failed to create deployment v n retryErr os Exit fmt Println Deployment created successfully func intPtr i int int return amp i In this script we first import the necessary packages including ks io client go kubernetes which provides the clientset for accessing the Kubernetes API We also import the appsv package which defines the Deployment resource Next we create a Kubernetes client using the rest InClusterConfig function which returns a rest Config object containing the configuration for accessing the Kubernetes API server We use this config to create a new kubernetes Interface clientset We then create a new Deployment object with the desired specifications including the number of replicas the pod selector and the container specifications The retry RetryOnConflict function is used to ensure that we can safely create the deployment in case of conflicts with existing resources Finally we call the Create function on the Deployments client with the newly created Deployment object to create the deployment on the Kubernetes cluster To run this script simply execute the following command go run create deployment goThis will create a new deployment called nginx deployment with a single replica running the Nginx web server Updating a deploymentNow let s update the deployment we just created We will update the image used by the Nginx container to a newer version Create a new file called update deployment go and add the following code package mainimport fmt os ks io client go kubernetes ks io client go rest ks io client go util retry appsv ks io api apps v func main create a Kubernetes client config err rest InClusterConfig if err nil panic err Error clientset err kubernetes NewForConfig config if err nil panic err Error get the deployment object deployment err clientset AppsV Deployments default Get nginx deployment metav GetOptions if err nil fmt Fprintf os Stderr Failed to get deployment v n err os Exit update the deployment deployment Spec Template Spec Containers Image nginx retryErr retry RetryOnConflict retry DefaultRetry func error updateErr clientset AppsV Deployments default Update deployment return updateErr if retryErr nil fmt Fprintf os Stderr Failed to update deployment v n retryErr os Exit fmt Println Deployment updated successfully In this script we first get the existing deployment object using the Deployments Get function We then update the image used by the Nginx container to version We then use the retry RetryOnConflict function again to ensure that we can safely update the deployment Finally we call the Update function on the Deployments client with the updated Deployment object to update the deployment on the Kubernetes cluster To run this script simply execute the following command go run update deployment goThis will update the existing nginx deployment with the new image Scaling a deploymentNext let s scale the deployment we just updated We will increase the number of replicas from to Create a new file called scale deployment go and add the following code package mainimport fmt os ks io client go kubernetes ks io client go rest ks io client go util retry appsv ks io api apps v func main create a Kubernetes client config err rest InClusterConfig if err nil panic err Error clientset err kubernetes NewForConfig config if err nil panic err Error get the deployment object deployment err clientset AppsV Deployments default Get nginx deployment metav GetOptions if err nil fmt Fprintf os Stderr Failed to get deployment v n err os Exit scale the deployment replicas int deployment Spec Replicas amp replicas retryErr retry RetryOnConflict retry DefaultRetry func error updateErr clientset AppsV Deployments default Update deployment return updateErr if retryErr nil fmt Fprintf os Stderr Failed to scale deployment v n retryErr os Exit fmt Println Deployment scaled successfully In this script we first get the existing deployment object using the Deployments Get function We then set the number of replicas to We then use the retry RetryOnConflict function again to ensure that we can safely update the deployment Finally we call the Update function on the Deployments client with the updated Deployment object to scale the deployment on the Kubernetes cluster To run this script simply execute the following command go run scale deployment goThis will scale the existing nginx deployment to replicas Deleting a deploymentFinally let s delete the deployment we just scaled Create a new file called delete deployment go and add the following code package mainimport fmt os ks io client go kubernetes ks io client go rest metav ks io apimachinery pkg apis meta v func main create a Kubernetes client config err rest InClusterConfig if err nil panic err Error clientset err kubernetes NewForConfig config if err nil panic err Error delete the deployment err clientset AppsV Deployments default Delete nginx deployment amp metav DeleteOptions if err nil fmt Fprintf os Stderr Failed to delete deployment v n err os Exit fmt Println Deployment deleted successfully In this script we simply call the Delete function on the Deployments client with the name of the deployment we want to delete To run this script simply execute the following command go run delete deployment goThis will delete the existing nginx deployment from the Kubernetes cluster ConclusionIn this blog post we have learned how to perform CRUD operations on Kubernetes resources programmatically using Go on Docker Desktop We have covered how to create update retrieve scale and delete a deployment using the Kubernetes API and the client go library in Go Using the Kubernetes API programmatically allows us to automate the management of our Kubernetes resources and integrate them into our applications and workflows This is particularly useful when dealing with large scale Kubernetes clusters and complex deployment scenarios In addition we have demonstrated how to run these scripts on a local Kubernetes cluster using Docker Desktop which allows developers to test their code in a development environment before deploying to a production cluster We hope that this blog post has provided you with a solid foundation for working with the Kubernetes API and client go library in Go and that it will help you automate your Kubernetes workflows and streamline your operations 2023-05-15 05:10:33
医療系 医療介護 CBnews 経営に貢献する広報とは-「病院広報アワード」受賞への道(4) https://www.cbnews.jp/news/entry/20230515134240 代表取締役 2023-05-15 15:00:00
金融 RSS FILE - 日本証券業協会 5月20日(土)サーバメンテナンスのお知らせ https://www.jsda.or.jp/shinchaku/servermaintenance/20230515140613.html 月日 2023-05-15 05:06:00
海外ニュース Japan Times latest articles Rebuilding a community: Hiroshima after the bomb https://www.japantimes.co.jp/news/2023/05/15/national/history/hiroshima-bombing-reconstruction/ streets 2023-05-15 14:40:39
ニュース BBC News - Home ADHD: Private clinics exposed by BBC undercover investigation https://www.bbc.co.uk/news/health-65534448?at_medium=RSS&at_campaign=KARANGA checks 2023-05-15 05:04:21
ニュース BBC News - Home The Papers: 'Braverman pushes PM' and 'brothers in arms' https://www.bbc.co.uk/news/blogs-the-papers-65592974?at_medium=RSS&at_campaign=KARANGA front 2023-05-15 05:26:28
ニュース BBC News - Home I don't have ADHD, but three private clinics say I do https://www.bbc.co.uk/news/health-65534449?at_medium=RSS&at_campaign=KARANGA clinics 2023-05-15 05:06:04
ニュース BBC News - Home Steeltown Murders: How a DNA-first caught a serial killer 30 years on https://www.bbc.co.uk/news/uk-wales-65556974?at_medium=RSS&at_campaign=KARANGA murders 2023-05-15 05:16:51
ニュース Newsweek ワグネル創設者「ロシア軍機4機を撃墜したのはロシア軍」? https://www.newsweekjapan.jp/stories/world/2023/05/post-101635.php ワグネル創設者「ロシア軍機機を撃墜したのはロシア軍」ウクライナ国境近くのロシア領内でロシア軍機が相次いで「墜落」したのは自軍に撃墜されたのではないかーロシアの民間軍事会社ワグネルの創設者、エフゲニー・プリゴジンがそんな可能性を示唆している。 2023-05-15 14:23:17
IT 週刊アスキー 「ダンまち」ゲーム最新作『ダンクロ』PC版のサービスが決定!リリースは5月23日から https://weekly.ascii.jp/elem/000/004/136/4136658/ aiming 2023-05-15 14:40:00
IT 週刊アスキー ChatGPT、Proユーザーに向けて70以上のプラグインとウェブブラウジング機能を公開 https://weekly.ascii.jp/elem/000/004/136/4136642/ chatgpt 2023-05-15 14:30:00
IT 週刊アスキー 人気店が続々オープン! 京王百貨店新宿店、B1・MB階「食品街」を改装。計14店舗を新規オープン https://weekly.ascii.jp/elem/000/004/136/4136645/ 京王百貨店 2023-05-15 14:30:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)