当前位置: 首页 > news >正文

阿里巴巴吧国际网站怎么做网站域名后缀cc

阿里巴巴吧国际网站怎么做,网站域名后缀cc,营销单页网站模板,惠州百度网络推广k8s部署单机模式的minio和minio-client 一、k8s部署minio1.1说明1.2 yaml内容1.3 步骤1.3.1 创建资源1.3.2 查看启动日志1.3.3 查看svc并访问控制台 二、docker部署minio-client2.1 查找镜像2.2 运行镜像2.3 绑定minio server 一、k8s部署minio 1.1说明 项目使用minio#x… k8s部署单机模式的minio和minio-client 一、k8s部署minio1.1说明1.2 yaml内容1.3 步骤1.3.1 创建资源1.3.2 查看启动日志1.3.3 查看svc并访问控制台 二、docker部署minio-client2.1 查找镜像2.2 运行镜像2.3 绑定minio server 一、k8s部署minio 1.1说明 项目使用minio准备在k8s环境部署一套minio试用。 1.关于minio的原理和概念参考: https://mp.weixin.qq.com/s?__bizMzI3MDM5NjgwNgmid2247487162idx1sn39c683a43ec2678fbf6d767f6ab6dcc6chksmead0f253dda77b459edaf514cf72fc03546f2c5075c7b131c34b34772ca3517cab170d94c056#rd 2. 官网k8s部署minio方法说明 https://min.io/docs/minio/kubernetes/upstream/index.html 1.2 yaml内容 参考: https://www.jianshu.com/p/2d45990dd652 https://raw.githubusercontent.com/minio/docs/master/source/extra/examples/minio-dev.yaml文档yaml内容: # Deploys a new Namespace for the MinIO Pod apiVersion: v1 kind: Namespace metadata:name: minio-dev # Change this value if you want a different namespace namelabels:name: minio-dev # Change this value to match metadata.name --- # Deploys a new MinIO Pod into the metadata.namespace Kubernetes namespace # # The spec.containers[0].args contains the command run on the pod # The /data directory corresponds to the spec.containers[0].volumeMounts[0].mountPath # That mount path corresponds to a Kubernetes HostPath which binds /data to a local drive or volume on the worker node where the pod runs # apiVersion: v1 kind: Pod metadata:labels:app: minioname: minionamespace: minio-dev # Change this value to match the namespace metadata.name spec:containers:- name: minioimage: quay.io/minio/minio:latestcommand:- /bin/bash- -cargs: - minio server /data --console-address :9090volumeMounts:- mountPath: /dataname: localvolume # Corresponds to the spec.volumes Persistent VolumenodeSelector:kubernetes.io/hostname: kubealpha.local # Specify a node label associated to the Worker Node on which you want to deploy the pod.volumes:- name: localvolumehostPath: # MinIO generally recommends using locally-attached volumespath: /mnt/disk1/data # Specify a path to a local drive or volume on the Kubernetes worker nodetype: DirectoryOrCreate # The path to the last directory must exist实际使用到的minio.yaml配置文件: apiVersion: v1 kind: PersistentVolume metadata:labels:app: miniorelease: minioname: minionamespace: sscs-dev spec:accessModes:- ReadWriteOncecapacity:storage: 10GivolumeMode: FilesystemhostPath:path: /home/cicd/sscs-dev/minio --- apiVersion: v1 kind: PersistentVolumeClaim metadata:# This name uniquely identifies the PVC. Will be used in deployment below.name: minio-pv-claimlabels:app: minio-storage-claimnamespace: sscs-dev spec:# Read more about access modes here: https://kubernetes.io/docs/user-guide/persistent-volumes/#access-modesaccessModes:- ReadWriteOnceresources:# This is the request for storage. Should be available in the cluster.requests:storage: 10Gi# Uncomment and add storageClass specific to your requirements below. Read more https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class-1#storageClassName: --- apiVersion: apps/v1 kind: Deployment metadata:# This name uniquely identifies the Deploymentname: minio-deploymentnamespace: sscs-dev spec:strategy:type: Recreateselector:matchLabels:app: miniotemplate:metadata:labels:# Label is used as selector in the service.app: miniospec:# Refer to the PVC created earliervolumes:- name: storagepersistentVolumeClaim:# Name of the PVC created earlierclaimName: minio-pv-claimimagePullSecrets:- name: sscs-secretcontainers:- name: minio# Pulls the default MinIO image from Docker Hubimage: artifact.srdcloud.cn/khala_insight-release-docker-local/minio:latest# 注意--console-address :5000用来固定控制台访问端口,否则页面会无法访问控制台command:- /bin/sh- -c- minio server /data --console-address :5000args:- server- /storageenv:# MinIO access key and secret key- name: MINIO_ACCESS_KEYvalue: admin123- name: MINIO_SECRET_KEYvalue: admin123ports:- name: datacontainerPort: 9000protocol: TCP- name: consolecontainerPort: 5000protocol: TCP# Mount the volume into the podvolumeMounts:- name: storage # must match the volume name, abovemountPath: /storage --- apiVersion: v1 kind: Service metadata:namespace: sscs-devname: minio-servicespec:type: NodePortports:- name: dataport: 9000targetPort: 9000protocol: TCPnodePort: 31955- name: consoleport: 5000targetPort: 5000protocol: TCPnodePort: 32108selector:app: minio注意事项 要添加--console-address :5000命令参数来固定控制台端口否则页面会无法访问。 1.3 步骤 1.3.1 创建资源 执行命令kubectl apply -f minio.yaml 1.3.2 查看启动日志 kubectl get pod -n sscs-dev | grep minio查看pod运行状态,正常: kubectl logs -f minio-deployment-54648b586-kxcbn -n sscs-dev查看pod运行日志: 根据日志可获取以下信息: api端口为9000,控制台端口为5000控制台端口为5000,说明命令参数--console-address :5000生效。 1.3.3 查看svc并访问控制台 执行命令:kubectl get svc -n sscs-dev | grep minio yaml中使用的svc是nodePort类型可以看到以上控制台5000端口映射主机32108端口,则访问地址为: 服务器ip:32108 出现以上页面表示成功 二、docker部署minio-client 参考文章: https://blog.csdn.net/weixin_45821811/article/details/119116172 2.1 查找镜像 执行命令docker search minio/mc 2.2 运行镜像 执行命令: docker run -it --entrypoint/bin/sh minio/mc 参数说明: -i: 以交互模式运行容器通常与 -t 同时使用 -t: 为容器重新分配一个伪输入终端通常与 -i 同时使用 注意 启动容器时要加上参数-it --entrypoint/bin/sh启动后自动进入容器终端否则容器一启动就会退出。 2.3 绑定minio server 执行完容器启动命令: docker run -it --entrypoint/bin/sh minio/mc之后会自动进入容器终端。此时在容器内部执行命令绑定minio server: mc config host add minio http://132.1xx.xx.5:31955 说明 mc config host add minio http://132.1xx.xx.5:31955 minio 为别名可自定义 http://132.1xx.xx.5:31955 为minio服务部署的ip和api映射的主机端口1.3.3 中可查看api端口9000映射的主机端口命令行会要求输入access key和secret key参考minio.yaml中配置的值 至此minio-client部署完成可以使用相关命令来直接操作minio server
http://www.huolong8.cn/news/244803/

相关文章:

  • 镇江网站推广排名美容评测网站建设分析报告
  • 租号网站怎么做温州英文网站建设
  • 网站开发语言什么好湖南做网站kaodezhu
  • 网站源码 源码论坛 源码之家 免费源码 商业源码 源码下载自己服务器建网站 备案
  • 苏州制作企业网站公司做视频上什么网站找创意
  • 网站升级 云南省建设注册考试中心福建省建设三类人员考试网站
  • 手机怎么开网站wordpress dealers
  • 安徽外经建设集团有限公司网站怎么查一个公司是否正规公司
  • 郑州制作企业网站佛山建设专业网站
  • 有什么关于网站建设实例的书福州解封最新消息
  • 汕头网站推广seo网站 备案 拍照
  • 小精灵网站在线做语文wordpress 流量监控
  • 建自己的网站用多少钱wordpress媒体库过滤
  • 美食网站广告软文代理平台
  • 个人主页网站设计桂林房价
  • 互联网服务平台备案单位机动车邯郸seo优化
  • 太平桥网站建设wordpress有哪些好模版
  • 云速网站建设wordpress 调用特征图片
  • 阿里巴巴官网网站网站建设教程 项目式
  • 网站上内容列表怎么做软件下载网站排行榜前十名
  • 网上接单 网站建设网站名称和备案
  • 做旅游网站教程安卓手机脚本开发工具
  • 织梦网站做404页面网页设计零基础学习课程
  • wordpress建站更换图片软件开发包括
  • 网站开发 与 网页设计的区别贵州易广建设集团网站
  • 扁平化企业网源码win8风格精简化源码asp带后台企业网站企业办公平台
  • 微网站建设包括哪些方面网站建设费用怎么记账
  • 有哪些网站交互效果做的好的南昌网站设计怎么选
  • joomla 网站建设教程网站网站地图怎么做
  • 服装设计好找工作吗潮州网站seo推广