<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: itbj00</title>
    <description>The latest articles on DEV Community by itbj00 (@taoza).</description>
    <link>https://dev.to/taoza</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F355926%2F79060a08-6f8e-464d-a25b-df6fbd3bb1b6.jpeg</url>
      <title>DEV Community: itbj00</title>
      <link>https://dev.to/taoza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/taoza"/>
    <language>en</language>
    <item>
      <title>Answer: How to sort pods with respect to their IPs</title>
      <dc:creator>itbj00</dc:creator>
      <pubDate>Thu, 24 Dec 2020 10:20:34 +0000</pubDate>
      <link>https://dev.to/taoza/answer-how-to-sort-pods-with-respect-to-their-ips-4mnm</link>
      <guid>https://dev.to/taoza/answer-how-to-sort-pods-with-respect-to-their-ips-4mnm</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/55695019/how-to-sort-pods-with-respect-to-their-ips/55695185#55695185" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to sort pods with respect to their IPs
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Apr 15 '19&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/55695019/how-to-sort-pods-with-respect-to-their-ips/55695185#55695185" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          5
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You're using the wrong command to sort. The correct command will be:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;kubectl get pods --all-namespaces --sort-by={.status.podIP}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will sort your pods according to the podIP.&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/55695019/how-to-sort-pods-with-respect-to-their-ips/55695185#55695185" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Get Pods SortBy...</title>
      <dc:creator>itbj00</dc:creator>
      <pubDate>Thu, 24 Dec 2020 10:12:43 +0000</pubDate>
      <link>https://dev.to/taoza/get-pods-sortby-c2c</link>
      <guid>https://dev.to/taoza/get-pods-sortby-c2c</guid>
      <description>&lt;p&gt;kubectl get pods -o wide  --sort-by=.spec.nodeName&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Answer: How to order pods based on the nodes in kubernetes</title>
      <dc:creator>itbj00</dc:creator>
      <pubDate>Thu, 24 Dec 2020 10:09:41 +0000</pubDate>
      <link>https://dev.to/taoza/answer-how-to-order-pods-based-on-the-nodes-in-kubernetes-1jed</link>
      <guid>https://dev.to/taoza/answer-how-to-order-pods-based-on-the-nodes-in-kubernetes-1jed</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AoTUKOcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/51358685/how-to-order-pods-based-on-the-nodes-in-kubernetes/51362811#51362811" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to order pods based on the nodes in kubernetes
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 16 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/51358685/how-to-order-pods-based-on-the-nodes-in-kubernetes/51362811#51362811" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oeieW07A--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          46
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h2-sXgSn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You can pipe the kubectl command output to sort:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;kubectl get pods -o wide --namespace=machines | sort -k7
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;or to omit the first line&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;kubectl get pods -o wide --namespace=machines | sed -n '1!p' | sort -k7
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Also, you should be able to do this by &lt;code&gt;--sort-by&lt;/code&gt; option in kubectl:&lt;/p&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/51358685/how-to-order-pods-based-on-the-nodes-in-kubernetes/51362811#51362811" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
    </item>
    <item>
      <title>First Time Post.</title>
      <dc:creator>itbj00</dc:creator>
      <pubDate>Thu, 26 Mar 2020 17:40:32 +0000</pubDate>
      <link>https://dev.to/taoza/first-time-post-1fgp</link>
      <guid>https://dev.to/taoza/first-time-post-1fgp</guid>
      <description>&lt;p&gt;第一次到此。还不知道如何是否好用？ 不支持贴图？Markdown Only?&lt;/p&gt;

&lt;h1&gt;
  
  
  Test
&lt;/h1&gt;

&lt;p&gt;Say Hello to DEV.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
