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 http_proxy="http://xxxx:10809" | |
| export https_proxy="http://xxxx:10809" | |
| curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash | |
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
| curl -LO https://files.m.daocloud.io/github.com/kvaps/kubectl-node-shell/raw/v1.7.0/kubectl-node_shell | |
| chmod +x ./kubectl-node_shell | |
| mv ./kubectl-node_shell /usr/local/bin/kubectl-node_shell |
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
| #!/usr/bin/python | |
| # -*- coding: UTF-8 -*- | |
| import os | |
| import gzip | |
| import numpy as np | |
| import tensorflow as tf | |
| from tensorflow import keras | |
| print('TensorFlow version: {}'.format(tf.__version__)) | |
| dataset_path = "/root/data/" |
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"}}}' |