投稿時間:2023-07-15 15:09:33 RSSフィード2023-07-15 15:00 分まとめ(11件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita X-BASICで、ひとコマアニメーション https://qiita.com/danjiro/items/0cf1dad192b51908c10d micropython 2023-07-15 14:51:26
python Pythonタグが付けられた新着投稿 - Qiita e-Stat APIとPythonで取得した、政府統計データをpandasのデータフレームに変換する方法 https://qiita.com/Sei123/items/45074a64d893dfca4f05 estatapi 2023-07-15 14:11:41
js JavaScriptタグが付けられた新着投稿 - Qiita Gulp4の導入からSCSSファイルをLiveReloadするまで https://qiita.com/ishi720/items/b9a2971e0a61b7fc94c2 gulpjs 2023-07-15 14:54:25
Ruby Rubyタグが付けられた新着投稿 - Qiita いいコード悪いコードまとめ2章設計の初歩 https://qiita.com/YokoYokoko/items/5a218323cac9d83d7af1 damage 2023-07-15 14:51:25
AWS AWSタグが付けられた新着投稿 - Qiita AWS GameDay参戦記 ~初陣~ https://qiita.com/kisama2000/items/c7b3aa808510ffe89d89 awsgameday 2023-07-15 14:48:00
Azure Azureタグが付けられた新着投稿 - Qiita ついにGA!Azureの新機能「クロスリージョンLB」とは? https://qiita.com/minorun365/items/53d2860c922a170290b9 azure 2023-07-15 14:20:06
Ruby Railsタグが付けられた新着投稿 - Qiita いいコード悪いコードまとめ2章設計の初歩 https://qiita.com/YokoYokoko/items/5a218323cac9d83d7af1 damage 2023-07-15 14:51:25
技術ブログ Developers.IO DynamoDB のデータを Amazon Ion 形式で S3 にエクスポートし Athena からクエリする https://dev.classmethod.jp/articles/export-dynamodb-as-amazon-ion-format/ amazonion 2023-07-15 05:30:20
海外TECH DEV Community Supercharge Your Container Networking: Seamless Host Communication with VxLAN and Docker https://dev.to/tanvirrahman/supercharge-your-container-networking-seamless-host-communication-with-vxlan-and-docker-39o Supercharge Your Container Networking Seamless Host Communication with VxLAN and DockerIn this hands on demo we will explore how to set up communication between two hosts using Virtual Extensible LAN VxLAN and Docker The goal is to create a VxLAN overlay network tunnel between the hosts containers allowing them to communicate with each other Let s dive into the steps involved in this process What are we going to cover in this hands on demo Creating two VMs and installing Docker We will use two virtual machines VMs and install Docker to run the containers Creating separate subnets and assigning static IP addresses To simplify the setup we ll create separate subnets for each VM and assign static IP addresses Creating a VxLAN bridge We ll utilize the Linux ip link vxlan feature to create a VxLAN bridge Binding the VxLAN to the Docker bridge We ll bind the VxLAN to the Docker bridge to establish the tunnel Verifying communication between containers Finally we ll test the communication between containers on different hosts Let s get started To facilitate effective communication between hosts we need to deploy two VMs using any hypervisor or virtualization technology It is crucial to ensure that both VMs are connected to the same network Step Creating the VMsWe begin by creating two Lubuntu VMs using UTM Multipass These VMs will serve as the hosts for our containers Step Installing necessary tools and DockerIn this step we will install several necessary tools and Docker on our Ubuntu VMs Here s a brief overview of the tools we are going to install net tools This package includes important network management tools such as ifconfig netstat route etc iputils ping This package provides the ping command which is used to test the reachability of a network host bridge utils This package provides utilities for configuring Ethernet bridging on Linux To install these tools and Docker execute the following commands apt get updateapt get install net toolsapt get install iputils pingapt get install bridge utilsapt get install y docker ioAdditionally if the IP address of one of the VMs is the same as the other you ll need to modify it to avoid conflicts For example you can change the IP address of one of the VMs to using the following commands ifconfig eth route add default gw ethTo configure DNS resolution open the resolv conf file nano etc resolv confDelete the existing content and add the following lines nameserver nameserver Now let s proceed to set up the containers and their communication Step Running Docker Containers on the VxLAN NetworkNow for host amicable hyena create a separate docker bridge network docker network create subnet vxlan net list all networks in dockerdocker network ls The output should include the newly created vxlan net network NETWORK ID NAME DRIVER SCOPEbecee bridge bridge localebab host host localcceffa none null localbdddca vxlan net bridge local Check interfacesip a lo lt LOOPBACK UP LOWER UP gt mtu qdisc noqueue state UNKNOWN group default qlen link loopback brd inet scope host lo valid lft forever preferred lft forever inet scope host valid lft forever preferred lft forever enps lt BROADCAST MULTICAST UP LOWER UP gt mtu qdisc fq codel state UP group default qlen link ether db c f brd ff ff ff ff ff ff inet brd scope global dynamic enps valid lft sec preferred lft sec inet fde cfbc cca cd db cff fef scope global dynamic mngtmpaddr noprefixroute valid lft sec preferred lft sec inet fe db cff fef scope link valid lft forever preferred lft forever docker lt NO CARRIER BROADCAST MULTICAST UP gt mtu qdisc noqueue state DOWN group default link ether aa e e brd ff ff ff ff ff ff inet brd scope global docker valid lft forever preferred lft forever br bdddca lt NO CARRIER BROADCAST MULTICAST UP gt mtu qdisc noqueue state DOWN group default link ether b b brd ff ff ff ff ff ff inet brd scope global br bdddca valid lft forever preferred lft foreverFor Host affluent toad docker network create subnet vxlan netdocker network lscdcceedde bridge bridge localededf host host localeaadc none null localeaf vxlan net bridge localip a lo lt LOOPBACK UP LOWER UP gt mtu qdisc noqueue state UNKNOWN group default qlen link loopback brd inet scope host lo valid lft forever preferred lft forever inet scope host valid lft forever preferred lft forever enps lt BROADCAST MULTICAST UP LOWER UP gt mtu qdisc fq codel state UP group default qlen link ether f f d d f c brd ff ff ff ff ff ff inet brd scope global dynamic enps valid lft sec preferred lft sec inet fde cfbc cca cd ff dff fed fc scope global dynamic mngtmpaddr noprefixroute valid lft sec preferred lft sec inet fe ff dff fed fc scope link valid lft forever preferred lft forever docker lt NO CARRIER BROADCAST MULTICAST UP gt mtu qdisc noqueue state DOWN group default link ether b cb a b brd ff ff ff ff ff ff inet brd scope global docker valid lft forever preferred lft forever br eaf lt NO CARRIER BROADCAST MULTICAST UP gt mtu qdisc noqueue state DOWN group default link ether c cd df brd ff ff ff ff ff ff inet brd scope global br eaf valid lft forever preferred lft foreverStep Run docker containerLet s run docker container on top of newly created docker bridge network and try to ping docker bridgeFor Host running alpine container with sleep and a static ipdocker run d net vxlan net ip alpine sleep check the container running or notdocker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESdbeddeaa alpine sleep About a minute ago Up About a minute funny jepsen check the IPAddress to make sure that the ip assigned properlydocker inspect d grep IPAddress SecondaryIPAddresses null IPAddress IPAddress ping the docker bridge ip to see whether the traffic can passping c PING bytes of data bytes from icmp seq ttl time ms bytes from icmp seq ttl time ms ping statistics packets transmitted received packet loss time msrtt min avg max mdev msFor Host docker run d net vxlan net ip alpine sleep docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESdebb alpine sleep seconds ago Up seconds eloquent blackdocker inspect d grep IPAddress SecondaryIPAddresses null IPAddress IPAddress ping c PING bytes of data bytes from icmp seq ttl time ms bytes from icmp seq ttl time ms ping statistics packets transmitted received packet loss time msrtt min avg max mdev msStep Testing CommunicationNow let s access one of the running containers and test communication between hosts Note that containers within the same host should communicate but container to container communication between hosts will fail at this stage because there is no tunnel or anything to carry the traffic docker exec it d shapk updateapk add net toolsapk add iputils pingping c ping c Try againping c PING bytes of data bytes from icmp seq ttl time ms bytes from icmp seq ttl time ms ping statistics packets transmitted received packet loss time msrtt min avg max mdev msStep Creating the VxLAN TunnelTo establish communication between the containers we need to create a VxLAN tunnel and attach it to the Docker bridge Make sure the VNI Virtual Network Identifier ID is the same for both hosts For Host check the bridges list on the hostsbrctl showbridge name bridge id STP enabled interfacesbr bdddca bb nodocker aaee no create a vxlan vxlan demo is the name of the interface type should be vxlan VNI ID is dstport should be which a udp standard port for vxlan communication is the ip of another hostip link add vxlan demo type vxlan id remote dstport dev enps check interface list if the vxlan interface createdip a grep vxla vxlan demo lt BROADCAST MULTICAST gt mtu qdisc noop state DOWN group default qlen make the interface upip link set vxlan demo up now attach the newly created vxlan interface to the docker bridge we createdbrctl addif br bdddca vxlan demo check the route to ensure everything is okay here part is our concern part route nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface UG enps U docker U br bdddca U enps UH enpsFor Host brctl showbridge name bridge id STP enabled interfacesbr eaf ccddf nodocker bcbabip link add vxlan demo type vxlan id remote dstport dev enpsip a grep vxlan vxlan demo lt BROADCAST MULTICAST gt mtu qdisc noop state DOWN group default qlen ip link set vxlan demo upbrctl addif br eaf vxlan demoroute nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface UG enps U docker U br eaf U enps UH enpsStep Testing Communication between ContainersNow that the VxLAN overlay network tunnel has been created let s test the communication between the containers on different hosts docker exec it a bashping c You can find result of ping from below images Note Re ran docker container in both host as previous container already ran for seconds You should see successful ping responses indicating that communication between the containers on different hosts is now established Congratulations You have successfully set up communication between hosts using VxLAN and Docker Reference The demonstration code and steps mentioned in this blog post were adapted from the following GitHub repository vxlan docker hands onFeel free to explore the repository for more in depth details and examples Thank you for reading this blog post and I hope you found it informative and useful 2023-07-15 05:19:42
ニュース BBC News - Home Bronze Age gold torc discovered in field near Mistley https://www.bbc.co.uk/news/uk-england-essex-66189465?at_medium=RSS&at_campaign=KARANGA essex 2023-07-15 05:43:10
ニュース BBC News - Home Torrential rain triggers deadly South Korea flooding https://www.bbc.co.uk/news/world-asia-66209578?at_medium=RSS&at_campaign=KARANGA floodingseven 2023-07-15 05:11:08

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)