1、导出当前配置kubectl get deployment <deployment-name> -n <namespace> -o yaml > deployment-patch.yaml2、编辑yaml文件 在 spec.template.spec 下添加 volumes 和 volumeMounts 字段。apiVersion: apps/v1 kin
1、编辑ingress的service添加监听端口kubectl get svc -n ingress-nginxkubectl edit svc -n ingress-nginx ingress-nginx-controller添加红框部分保存退出,查看添加结果kubectl get svc -n ingress-nginx2、编辑ingress的development(通过rancher)
1、上传镜像 ISO 文件到服务器# 创建存储目录 mkdir -p /opt/centos-iso # 上传 ISO 文件到此目录(使用 SCP、FTP 或其他方式) # 例如从本地计算机上传: # scp CentOS-7-x86_64-DVD-1810.iso user@your-server:/opt/centos-iso/2、 挂载 ISO 文件# 创建挂载点 mkdir -p /m
1、下载部署文件wget https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.6.3/components.yaml2、下载镜像docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server:v0.6.3docker
一、准备nfs服务器1、安装nfs服务yum install nfs-utils2、启动nfs服务systemctl start rpcbind && systemctl enable rpcbind systemctl start nfs && systemctl enable nfs showmount -e 10.209.231.1663、创建nfs存储目录m
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号