Skip to content

Instantly share code, notes, and snippets.

View yankay's full-sized avatar
🦆
I love nature

Kay Yan yankay

🦆
I love nature
  • DaoCloud
  • Shanghai, China
  • 14:35 (UTC +08:00)
  • LinkedIn in/yankay
View GitHub Profile
@yankay
yankay / gist:39f94bb7c62a5184acb59ceb26afa0b2
Created September 27, 2022 03:07
快速安装 lazygit
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[0-35.]+')
curl -Lo lazygit.tar.gz "https://files.m.daocloud.io/github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
lazygit --version
helm repo add minio https://charts.min.io/
helm install --namespace minio --create-namespace \
--set rootUser=rootuser,rootPassword=rootpass123 \
--set image.repository=docker.m.daocloud.io/minio/minio \
--set mcImage.repository=docker.m.daocloud.io/minio/mc \
minio minio/minio
@yankay
yankay / gist:edcd16d4a6f7887527d541a2507b0247
Last active August 22, 2022 09:53
快速安装 cert-manager
cd /tmp
wget https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.yaml
cat cert-manager.yaml | sed 's/quay.io/quay.m.daocloud.io/g' > c.yaml
kubectl apply -f c.yaml
@yankay
yankay / gist:d0f70303a6651f6b3eb9350049956406
Last active August 19, 2022 06:35
快速安装 kubeinvaders
helm repo add kubeinvaders https://lucky-sideburn.github.io/helm-charts/
kubectl create namespace kubeinvaders
helm upgrade --install kubeinvaders -n kubeinvaders kubeinvaders/kubeinvaders --set image.repository=docker.m.daocloud.io/luckysideburn/kubeinvaders --set-string target_namespace="kpanda-system" --set ingress.hostName=kubeinvaders.io
@yankay
yankay / gist:8a26909858eca1634a7a88383dedac1d
Created August 15, 2022 06:10
快速 安装 kubeview
git clone https://github.com/benc-uk/kubeview.git
cd kubeview/charts/
helm install kubeview ./kubeview -n kubeview --create-namespace
docker run -it --rm quay.m.daocloud.io/containers/skopeo
@yankay
yankay / redis.yaml
Last active July 21, 2022 10:34
快速安装 spotahome redis-operator
helm repo add redis-operator https://spotahome.github.io/redis-operator
helm repo update redis-operator
helm install redis-operator -n redis-operator redis-operator/redis-operator --create-namespace \
--set image.repository=quay.m.daocloud.io/spotahome/redis-operator
kubectl apply -f https://gist.githubusercontent.com/yankay/4a262b84023fe157e53b833898c11f25/raw/de299a48db96fa1d46d40fbc62a0bf9afd032112/redis.yaml
@yankay
yankay / gist:7d70aeaff0ad68031bd459be66f95dac
Last active July 21, 2022 02:30
快速安装 bitpoke mysql-operator
#TODO 等待:https://github.com/bitpoke/mysql-operator/pull/835
helm repo add bitpoke https://helm-charts.bitpoke.io
helm install mysql-operator -n bitpoke-mysql-operator bitpoke/mysql-operator --version v0.6.2 --create-namespace \
--set image.repository=docker.m.daocloud.io/bitpoke/mysql-operator \
--set sidecar57.image.repository=docker.m.daocloud.io/bitpoke/mysql-operator-sidecar-5.7 \
--set sidecar80.image.repository=docker.m.daocloud.io/bitpoke/mysql-operator-sidecar-8.0 \
--set orchestrator.image.repository=docker.m.daocloud.io/bitpoke/mysql-operator-orchestrator
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: ingressgateway-gzip
namespace: istio-system
spec:
workloadSelector:
labels:
istio: ingressgateway
configPatches:
cd /tmp
wget "https://ghproxy.com/https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.56.7/sonobuoy_0.56.7_linux_amd64.tar.gz"
tar -zxvf sonobuoy_0.56.7_linux_amd64.tar.gz
mv sonobuoy /usr/local/bin/
# https://sonobuoy.io/docs/v0.56.7/
sonobuoy run --sonobuoy-image docker.m.daocloud.io/sonobuoy/sonobuoy:v0.56.7 --kube-conformance-image k8s-gcr.m.daocloud.io/conformance:v1.23.5 --systemd-logs-image docker.m.daocloud.io/sonobuoy/systemd-logs:v0.4 --wait
# 剩下的步骤参考文档