This file contains hidden or 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
wget "https://ghproxy.com/raw.githubusercontent.com/aquasecurity/kube-bench/main/job-master.yaml" | |
kubectl apply -f job-master.yaml | |
kubectl get pods | |
kubectl logs kube-bench-master-zvplg |
This file contains hidden or 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
export ISTIO_VERSION="1.17.1" | |
wget "https://files.m.daocloud.io/github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux-amd64.tar.gz" | |
tar -zxvf istio-${ISTIO_VERSION}-linux-amd64.tar.gz | |
cd istio-${ISTIO_VERSION}/ |
This file contains hidden or 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
修改配置 `vi /etc/containerd/config.toml` | |
``` | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors] | |
# docker | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"] | |
endpoint = ["https://release-ci.daocloud.io/v2/docker.m.daocloud.io"] | |
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.m.daocloud.io"] | |
endpoint = ["https://release-ci.daocloud.io/v2/docker.m.daocloud.io"] |
This file contains hidden or 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
cd /tmp | |
export ISTIO_VERSION="1.16.1" | |
wget "https://ghproxy.com/https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istioctl-${ISTIO_VERSION}-linux-amd64.tar.gz" | |
tar -zxvf istioctl-${ISTIO_VERSION}-linux-amd64.tar.gz | |
chmod +x istioctl | |
mv istioctl /usr/bin/istioctl | |
istioctl version |
This file contains hidden or 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://github.com/open-telemetry/opentelemetry-demo | |
wget "https://ghproxy.com/github.com/open-telemetry/opentelemetry-helm-charts/releases/download/opentelemetry-demo-0.11.1/opentelemetry-demo-0.11.1.tgz" | |
kubectl create ns otel-demo | |
helm upgrade --install my-otel-demo opentelemetry-demo-0.11.1.tgz --namespace otel-demo \ | |
--set observability.jaeger.image.repository=docker.m.daocloud.io/jaegertracing/all-in-one \ | |
--set default.image.repository=docker.m.daocloud.io/otel/demo \ | |
--set components.redis.imageOverride.repository=docker.m.daocloud.io/redis \ |
This file contains hidden or 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://www.kubecost.com/install.html | |
kubectl create namespace kubecost | |
wget "https://kubecost.github.io/cost-analyzer/cost-analyzer-1.97.0.tgz" | |
helm upgrade --install kubecost cost-analyzer-1.97.0.tgz --namespace kubecost \ | |
--set kubecostFrontend.image=gcr.m.daocloud.io/kubecost1/frontend \ | |
--set kubecostModel.image=gcr.m.daocloud.io/kubecost1/cost-model \ | |
--set grafana.image.repository=docker.m.daocloud.io/grafana/grafana \ | |
--set grafana.sidecar.image=docker.m.daocloud.io/kiwigrid/k8s-sidecar:1.19.2 \ |
This file contains hidden or 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 repo add community https://release.daocloud.io/chartrepo/community | |
helm install nfs-subdir-external-provisioner community/nfs-subdir-external-provisioner \ | |
--set image.repository=k8s.m.daocloud.io/sig-storage/nfs-subdir-external-provisioner \ | |
--set nfs.server=10.6.108.184 \ | |
--set nfs.path=/nfs/exports/myshare | |
kubectl patch storageclass nfs-client -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}' |
This file contains hidden or 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
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 |
This file contains hidden or 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 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 | |
This file contains hidden or 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
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 |