Skip to content

Instantly share code, notes, and snippets.

View aiwantaozi's full-sized avatar

michela feng aiwantaozi

  • Rancher Labs, Inc
  • Shenzhen
View GitHub Profile
@aiwantaozi
aiwantaozi / ami.md
Last active August 10, 2021 16:22
aws eks ami
docker run -d --volumes-from rancher-data \
--restart=unless-stopped \
-p 8080:80 -p 8443:443 \
-e CATTLE_SERVER_VERSION=v2.4.11-ent \
-e CATTLE_AGENT_IMAGE=micheliac/rancher-agent:v2.4-redis-2 \
--privileged \
micheliac/rancher:v2.4-redis-2
@aiwantaozi
aiwantaozi / setup
Last active November 4, 2020 03:21
apt update
apt install zsh -y
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
cp kubectl /usr/local/bin/
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
@aiwantaozi
aiwantaozi / mirror
Last active September 2, 2020 16:32
https://1nj0zren.mirror.aliyuncs.com/
https://docker.mirrors.ustc.edu.cn/
http://f1361db2.m.daocloud.io/
https://registry.docker-cn.com/
export VERSION=$(curl -s https://github.com/kubevirt/containerized-data-importer/releases/latest | grep -o "v[0-9]\.[0-9]*\.[0-9]*")
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-operator.yaml
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-cr.yaml
DOCKER_OPTS="--registry-mirror=https://registry.docker-cn.com"
@aiwantaozi
aiwantaozi / alert-troubleshooting.md
Last active May 8, 2020 01:37
alert-troubleshooting.md

Alerting debug steps

Can't receive alert troubleshooting steps

metric alert is trigger by prometheus, when expression condition matched, prometheus will send alert to alertmanager, while others are trigger by rancher, rancher will call alertmanager API to trigger ·

Check app status

  • Go to System project -> Apps -> check apps status for monitoring-operator, cluster-alerting, cluster-monitoring, make sure these apps deployed success

Check notifier

@aiwantaozi
aiwantaozi / filter logs.md
Last active October 28, 2019 11:10
Use fluentd to filter logs

Use Catalog to Deploy Fluentd Server

Rancher sends the log to fluentd server, you can add filter, parser plugins configure to customize your log. Rancher support deploy fluentd server by using catalog Fluentd Aggregator

  1. Browse to the project catalog that you want to deploy fluentd aggregator.

  2. Click the Launch, select fluentd-aggregator, view details.

  3. Configure deploy Namespace.