52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
|
||
apiVersion: apps/v1
|
||
kind: Deployment
|
||
metadata:
|
||
namespace: minio
|
||
name: minio-gateway
|
||
labels:
|
||
app: minio-gateway
|
||
spec:
|
||
selector:
|
||
matchLabels:
|
||
app: minio-gateway
|
||
template:
|
||
metadata:
|
||
labels:
|
||
app: minio-gateway
|
||
spec:
|
||
hostNetwork: true
|
||
hostAliases:
|
||
- ip: "" #填入 Minio SVC IP
|
||
hostnames:
|
||
- "minio"
|
||
containers:
|
||
- name: minio-gateway
|
||
image: minio-gateway:v1.0
|
||
imagePullPolicy: IfNotPresent
|
||
ports:
|
||
- containerPort: 9000
|
||
protocol: TCP
|
||
readinessProbe:
|
||
failureThreshold: 3
|
||
initialDelaySeconds: 5
|
||
periodSeconds: 3
|
||
successThreshold: 1
|
||
tcpSocket:
|
||
port: 9000
|
||
timeoutSeconds: 10
|
||
resources:
|
||
requests: # 必须定义,供 HPA 计算使用率
|
||
cpu: 100m # 例如:0.1 个 CPU 核心
|
||
memory: 1024Mi
|
||
limits: # 限制是可选的,但建议设置
|
||
cpu: 500m
|
||
memory: 2048Mi
|
||
volumeMounts:
|
||
- name: ssl
|
||
mountPath: "/etc/nginx/conf.d/cert/"
|
||
volumes:
|
||
- name: ssl
|
||
secret:
|
||
secretName: minio-ssl
|