104 lines
2.4 KiB
YAML
104 lines
2.4 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: helm-minio
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
persistentVolumeClaimRetentionPolicy:
|
|
whenDeleted: Retain
|
|
whenScaled: Retain
|
|
podManagementPolicy: OrderedReady
|
|
replicas: 1
|
|
revisionHistoryLimit: 10
|
|
selector:
|
|
matchLabels:
|
|
app: helm-minio
|
|
serviceName: helm-minio
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
app: helm-minio
|
|
spec:
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: minio-deploy
|
|
operator: In
|
|
values:
|
|
- "true"
|
|
containers:
|
|
- args:
|
|
- minio server /data --console-address ":9001"
|
|
command:
|
|
- /bin/sh
|
|
- -c
|
|
env:
|
|
- name: MINIO_ACCESS_KEY
|
|
value: cmii
|
|
- name: MINIO_SECRET_KEY
|
|
value: B#923fC7mk
|
|
image: 192.168.3.31:8088/cmii/minio:RELEASE.2023-06-02T23-17-26Z
|
|
imagePullPolicy: IfNotPresent
|
|
name: minio
|
|
ports:
|
|
- containerPort: 9000
|
|
name: api
|
|
protocol: TCP
|
|
- containerPort: 9001
|
|
name: console
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: "2"
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 200m
|
|
memory: 200Mi
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
volumeMounts:
|
|
- mountPath: /data
|
|
name: data
|
|
dnsPolicy: ClusterFirst
|
|
imagePullSecrets:
|
|
- name: harborsecret
|
|
restartPolicy: Always
|
|
schedulerName: default-scheduler
|
|
securityContext: {}
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
- hostPath:
|
|
path: /data/minio-pv/
|
|
type: ""
|
|
name: data
|
|
updateStrategy:
|
|
rollingUpdate:
|
|
partition: 0
|
|
type: RollingUpdate
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: helm-minio
|
|
namespace: bj-sh-uas-260511
|
|
spec:
|
|
ports:
|
|
- name: api
|
|
nodePort: 39000
|
|
port: 9000
|
|
protocol: TCP
|
|
targetPort: 9000
|
|
- name: console
|
|
nodePort: 39001
|
|
port: 9001
|
|
protocol: TCP
|
|
targetPort: 9001
|
|
selector:
|
|
app: helm-minio
|
|
sessionAffinity: None
|
|
type: NodePort
|