k8s集群管理工具
rancherhelm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stablekubectl create namespace cattle-systemhelm install rancher rancher-stable/rancher --namespace
rancher
helm repo add rancher-stable http://rancher-mirror.oss-cn-beijing.aliyuncs.com/server-charts/stable
// cattle-system命名空间名字固定
kubectl create namespace cattle-system
利用cert-manager签发并维护证书
# 安装 CustomResourceDefinition 资源
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.0.4/cert-manager.crds.yaml
// k8s 1.15版本
kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v0.14.0/cert-manager.crds.yaml
# **重要:**
# 如果您正在运行 Kubernetes v1.15 或更低版本,
# 则需要在上方的 kubectl apply 命令中添加`--validate=false`标志,
# 否则您将在 cert-manager 的 CustomResourceDefinition 资源中收到与
# x-kubernetes-preserve-unknown-fields 字段有关的验证错误。
# 这是一个良性错误,是由于 kubectl 执行资源验证的方式造成的。
kubectl create namespace cert-manager
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--version v1.0.4
kubectl get pods --namespace cert-manager
helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancher.master.org --set replicas=3
#修改为NodePort
kubectl edit svc -n cattle-system rancher
octant
curl -OL https://github.com/vmware-tanzu/octant/releases/download/v0.22.0/octant_0.22.0_Linux-64bit.rpm
rpm -ivh octant_0.22.0_Linux-64bit.rpm
octant --listener-addr 0.0.0.0:7777
weavescope
kubectl apply -f "https://cloud.weave.works/k8s/scope.yaml?k8s-version=$(kubectl version | base64 | tr -d '\n')"
kubectl port-forward -n weave "$(kubectl get -n weave pod --selector=weave-scope-component=app -o jsonpath='{.items..metadata.name}')" --address=172.20.42.52 4040
k9s
curl -OL https://github.com/derailed/k9s/releases/download/v0.24.14/k9s_Linux_x86_64.tar.gz
tar -xf k9s_Linux_x86_64.tar.gz
cp k9s /usr/local/bin/
lens
https://k8slens.dev/
https://github.com/lensapp/lens
windows,linux,mac都有,没有arm版本
kuboard
https://github.com/eip-work/kuboard-press
goldpinger
https://github.com/bloomberg/goldpinger
最后一次提交4个月前
更多推荐
所有评论(0)