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

企业网站建设定制网站模板源文件

企业网站建设定制,网站模板源文件,企业网页制作平台,手机版网站建设价格k8s部署单机模式的minio 一、说明二、yaml内容三、步骤3.1 创建资源3.2 查看启动日志3.2 查看svc并访问控制台 一、说明 项目使用minio#xff0c;准备在k8s环境部署一套minio试用。 1.关于minio的原理和概念参考: https://mp.weixin.qq.com/s?__bizMzI3MDM5NjgwNgmid… k8s部署单机模式的minio 一、说明二、yaml内容三、步骤3.1 创建资源3.2 查看启动日志3.2 查看svc并访问控制台 一、说明 项目使用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 二、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: TCP- name: consoleport: 5000targetPort: 5000protocol: TCPselector:app: minio注意事项 要添加--console-address :5000命令参数来固定控制台端口否则页面会无法访问。 三、步骤 3.1 创建资源 执行命令kubectl apply -f minio.yaml 3.2 查看启动日志 kubectl get pod -n sscs-dev | grep minio查看pod运行状态,正常: kubectl logs -f minio-deployment-54648b586-kxcbn -n sscs-dev查看pod运行日志: 可以看到控制台端口为5000,说明命令参数--console-address :5000生效。 3.2 查看svc并访问控制台 执行命令:kubectl get svc -n sscs-dev | grep minio yaml中使用的svc是nodePort类型可以看到以上控制台5000端口映射主机32108端口,则访问地址为: 服务器ip:32108 出现以上页面表示成功
http://www.pierceye.com/news/66159/

相关文章:

  • 数码科技网站php网站分类目录程序 网址导航程序 织梦二次开发
  • 做外贸要访问国外的网站怎么办wordpress 旋转预加载
  • wap网站建设设计购物网站建设开发费用分析
  • 做的好的营销型网站有哪些内容我想自己在网站上发文章 怎样做
  • 如何加入小说网站做打字员品牌网站建设S苏州
  • 公众号微网站建设中核集团电子商城
  • 做网站第一部有口碑的南昌网站建设
  • 长沙模板网站长沙网站建设邢台做企业网站
  • 百度免费做网站房子装修设计图用什么软件
  • php网站制作实例教程长沙网站制作费用
  • 推荐网站建设服务商城网站设计实训总结
  • 长春网站设计搜索引擎优化论文3000字
  • 网站后台添加不了图片网站建设运用软件
  • 外贸英文商城网站建设网站建设设计问卷
  • 网站建设 技术方案软件开发专业单词
  • 可以做众筹的网站有哪些产品设计软件有哪些软件
  • 做响应式网站的洛阳网站设计
  • 网站建设项目流程wordpress 自动内链
  • 成都的企业网站建设公司定西建设厅网站
  • 用dw做的网站怎么上传专业的定制型网站建设
  • 上海建个人网站比较好的公司天元建设集团有限公司破产了嘛
  • 网站设计培训学校Wordpress需要更新吗
  • 泉州城乡住房建设厅网站湘潭网站建设选择磐石网络
  • 四川省住建设厅网站wordpress搬家502
  • 建设网站公司中做个自己的影院网站怎么做
  • 网站优化查询代码搬瓦工做网站
  • 外贸做的社交网站有哪些网站建设与推广实训总结
  • 大连华南网站建设网站程序模块
  • 用来做旅游攻略的网站php学生管理系统源码免费
  • 网站建设优化服务器网页设计与制作字体设置