https://srcco.de/posts/kubernetes-liveness-probes-are-dangerous.html の和訳
Kubernetesの livenessProbe
は 危険な場合があります。
明確なユースケースを持っていてその結果を理解するまで使用を避けるのをお勧めします。
このポストは、Liveness および Readiness Probeに注目し
いくつかの「Do」と「Don't」を説明します。
私の同僚である、Sandorは最近、彼が見た一般的なミスについてツイートしています。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum update | |
sudo yum install unbound jq -y | |
sudo systemctl enable unbound.service | |
sudo sed -i 's/PEERDNS=yes/PEERDNS=no/g' /etc/sysconfig/network-scripts/ifcfg-eth0 | |
sudo sed -i 's/nameserver .*/nameserver 127.0.0.1/g' /etc/resolv.conf | |
sudo systemctl start unbound.service | |
cat <<EOF | sudo tee -a /etc/security/limits.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
locals { | |
key_name = "saito-load-test" | |
user_data = "" | |
} | |
data "aws_availability_zones" "available" { | |
state = "available" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package config | |
import ( | |
"context" | |
"os" | |
"path/filepath" | |
"strings" | |
"github.com/heetch/confita" | |
"github.com/heetch/confita/backend" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To use the bundled libc++ please add the following LDFLAGS: | |
LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib" | |
llvm is keg-only, which means it was not symlinked into /usr/local, | |
because macOS already provides this software and installing another version in | |
parallel can cause all kinds of trouble. | |
If you need to have llvm first in your PATH run: | |
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
rules: { | |
"no-console-use-mylogger": ["error", { "loggerName": "logger", "logger": "winston" }] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
myapp: | |
image: myapp | |
ports: | |
- "3001:3001" | |
labels: | |
com.datadoghq.ad.check_names: '["prometheus"]' | |
com.datadoghq.ad.init_configs: '[{}]' | |
com.datadoghq.ad.instances: '[{"prometheus_url": "http://%%host%%:3001/actuator/prometheus", "extra_headers": {"Accept": "text/plain"}, "namespace": "local.test","metrics": ["jvm*"]}]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.wreulicke.github.mybatis; | |
import org.apache.ibatis.executor.statement.StatementHandler; | |
import org.apache.ibatis.mapping.BoundSql; | |
import org.apache.ibatis.mapping.MappedStatement; | |
import org.apache.ibatis.mapping.SqlCommandType; | |
import org.apache.ibatis.plugin.Interceptor; | |
import org.apache.ibatis.plugin.Invocation; | |
import org.slf4j.MDC; | |
import org.springframework.jdbc.core.SqlProvider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.2 | |
phases: | |
install: | |
runtime-versions: | |
docker: 18 | |
java: openjdk11 | |
commands: | |
- echo Starting... | |
build: |