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 | |
eval $(perl -lne 'while(/\s?([^=\s]+)\s?=\s?(\"(?:\\\"|[^\"])+\"|\x27(?:\x27\\\x27\x27|[^\x27])+\x27|\S+)\s?/g){print "$1=$2"}' $1) | |
if [ -n "${debug}" ]; then | |
set -x | |
fi | |
changed="false" | |
rc=0 |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
$ mkdir centos7_jp && cd centos7_jp | |
$ vagrant init centos/7 | |
$ vagrant up | |
$ vagrant ssh |
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
[vagrant@controller-0 ~]$ kubectl get nodes | |
NAME STATUS ROLES AGE VERSION | |
controller-0 Ready master 7h58m v1.17.3 | |
controller-1 Ready master 7h52m v1.17.3 | |
controller-2 Ready master 7h45m v1.17.3 | |
worker-0 Ready <NONE> 7h8m v1.17.3 | |
worker-1 Ready <NONE> 7h8m v1.17.3 | |
worker-2 Ready <NONE> 7h8m v1.17.3 | |
workerノードのROLESが<NONE>になっているのでわかりにくい。 |
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
helmインストール | |
$ wget https://get.helm.sh/helm-v3.1.1-linux-arm64.tar.gz | |
$ tar zxvf helm-v3.1.1-linux-amd64.tar.gz | |
$ sudo mv linux-amd64/helm /usr/local/bin/helm | |
$ helm version | |
version.BuildInfo{Version:"v3.1.1", GitCommit:"afe70585407b420d0097d07b21c47dc511525ac8", GitTreeState:"clean", GoVersion:"go1.13.8"} | |
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/ |
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
nfsサーバをfluentdのaggregatorにする | |
1 cat >/etc/yum.repos.d/tresuredata.repo <<'EOF' | |
[treasuredata] | |
name=TreasureData | |
baseurl=http://packages.treasure-data.com/2/redhat/7/$basearch | |
gpgcheck=1 | |
gpgkey=http://packages.treasuredata.com/GPG-KEY-td-agent | |
EOF |
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
以下に従ってやってみる | |
参照ベースのカタログ管理 | |
https://developer.amazon.com/ja-JP/docs/alexa/smapi/reference-based-catalog-management.html# | |
例としてLastNameJPという日本語の名字のカタログを作る | |
1. ask-cliでまずカタログの定義を作成 | |
``` |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: cpu-full | |
spec: | |
selector: | |
matchLabels: | |
app: cpu-full | |
replicas: 1 | |
template: |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: memory-full | |
spec: | |
selector: | |
matchLabels: | |
app: memory-full | |
replicas: 1 | |
template: |