minio的k8s的单机部署

minio的k8s的单机部署

apiVersion: apps/v1
kind: Deployment
metadata:
  name: minio
  namespace: itshare
spec:
  replicas: 1
  selector:
    matchLabels:
      app: minio
  template:
    metadata:
      labels:
        app: minio
    spec:
      containers:
      - name: minio
        image: minio/minio:RELEASE.2022-10-15T19-57-03Z
        imagePullPolicy: IfNotPresent
        command:
          - /bin/sh
          - -c
          - minio server /data --console-address ":5000"
        ports:
        - name: data
          containerPort: 9000
          protocol: "TCP"
        - name: console
          containerPort: 5000
          protocol: "TCP"
        resources:
          requests:
            memory: 512Mi
            cpu: 50m
          limits:
            memory: 512Mi
            cpu: 100m
        volumeMounts:
          - mountPath: /data
            name: data
      volumes:
        - name: data
          hostPath:
            path: /opt/itshare/minio/mydata
            type: Directory

---

apiVersion: v1
kind: Service
metadata:
  name: minio
  namespace: itshare
spec:
  type: NodePort
  ports:
  - name: data
    port: 9000
    targetPort: 9000
    protocol: TCP
    nodePort: 39000
  - name: console
    port: 5000
    targetPort: 5000
    protocol: TCP
    nodePort: 39001
  selector:
    app: minio

有挂载的主机目录

nacos中的配置

前端访问的是30011对应的是5000端口

相关推荐
wydydgh9 分钟前
docker 升级步骤
运维·docker·容器
2401_8401922730 分钟前
在k8s中,客户端访问服务的链路流程,ingress--->service--->deployment--->pod--->container
云原生·容器·kubernetes
_.Switch1 小时前
构建现代应用的Python Serverless架构详解
运维·开发语言·python·云原生·架构·serverless·restful
小诸葛的博客2 小时前
istio中使用serviceentry结合egressgateway实现多版本路由
云原生·istio
jonssonyan2 小时前
稳了,搭建Docker国内源图文教程
运维·docker·容器
福大大架构师每日一题3 小时前
16.2 k8s容器基础资源指标讲解
云原生·容器·kubernetes·prometheus
周湘zx3 小时前
k8s中的微服务
linux·运维·服务器·微服务·云原生·kubernetes
工业甲酰苯胺4 小时前
k8s 中的 Ingress 简介
云原生·容器·kubernetes
周湘zx4 小时前
k8s中的存储
linux·运维·云原生·容器·kubernetes
[听得时光枕水眠]5 小时前
【Docker】Docker上安装MySql8和Redis
运维·docker·容器