Update k8s.md
This commit is contained in:
@@ -116,8 +116,7 @@ kubectl wait --for=condition=ready pod -l app=flannel -n kube-flannel --timeout=
|
|||||||
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null
|
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | tee /usr/share/keyrings/helm.gpg > /dev/null
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" > /etc/apt/sources.list.d/helm-stable-debian.list
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" > /etc/apt/sources.list.d/helm-stable-debian.list
|
||||||
|
|
||||||
apt update
|
apt update && apt install -y helm
|
||||||
apt install -y helm
|
|
||||||
|
|
||||||
# 验证Helm安装
|
# 验证Helm安装
|
||||||
helm version
|
helm version
|
||||||
@@ -148,9 +147,8 @@ kubectl get pods -n cert-manager
|
|||||||
```
|
```
|
||||||
|
|
||||||
## 配置Let's Encrypt证书颁发者
|
## 配置Let's Encrypt证书颁发者
|
||||||
|
创建生产环境ClusterIssuer
|
||||||
```bash
|
```bash
|
||||||
# 创建生产环境ClusterIssuer
|
|
||||||
cat <<EOF | kubectl apply -f -
|
cat <<EOF | kubectl apply -f -
|
||||||
apiVersion: cert-manager.io/v1
|
apiVersion: cert-manager.io/v1
|
||||||
kind: ClusterIssuer
|
kind: ClusterIssuer
|
||||||
|
|||||||
Reference in New Issue
Block a user