Skip to content

Instantly share code, notes, and snippets.

View skaji's full-sized avatar

Shoichi Kaji skaji

  • Kanagawa, Japan
  • 21:29 (UTC +09:00)
View GitHub Profile
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/15 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> ed488244a498
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Using cache
---> 2c4b7bc6eff3
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/15 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> ed488244a498
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Using cache
---> 2c4b7bc6eff3
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/14 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/14 : ENV DEBIAN_FRONTEND=noninteractive
---> Running in 643592b1f454
Removing intermediate container 643592b1f454
---> ed488244a498
Step 3/14 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Running in 629c54792466
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"time"
diff --git a/internal/pool/conn.go b/internal/pool/conn.go
index e9a2585..c74242c 100644
--- a/internal/pool/conn.go
+++ b/internal/pool/conn.go
@@ -58,6 +58,16 @@ func (cn *Conn) RemoteAddr() net.Addr {
}
func (cn *Conn) WithReader(ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error) error {
+ stopWatcher := make(chan struct{})
+ defer close(stopWatcher)

Summary

Pod hpa would create extra pods during deployment rolling update.

See kubernetes/kubernetes#72775

Environment

  • Amazon EKS, kubernetes version 1.14.6

概要

HorizontalPodAutoscalerを設定したDeploymentをリリースしている最中に、pod数が想定外に増えることがある。これの原因を知りたい。

環境

  • Amazon EKS Kubernetes Version 1.14
  • metrics-server v0.3.4

事象の再現

if we apply adjust how to check modules are installed or not, then

with perl 5.8.5

❯ perl -Ilib cpm.test install File::Spec
WARN You don't have Module::CoreList. The local-lib may result in incomplete self-contained directory.
DONE install Perl-OSType-1.010
DONE install Locale-Maketext-Simple-0.21
DONE install version-0.9924
FAIL install ExtUtils-CBuilder-0.280231
@skaji
skaji / main.go
Last active February 29, 2024 18:14
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"sync"
@skaji
skaji / test.pl
Last active August 5, 2019 00:59
!!!NOTE!!!: added getaddrinfo and constants
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Daemon;
use IO::Socket::IP;
use LWP::UserAgent;
use Net::HTTP;
use Socket ();