-
Notifications
You must be signed in to change notification settings - Fork 6
/
400-deployment.yaml
63 lines (62 loc) · 1.8 KB
/
400-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: minio
name: minio
labels:
app: minio
spec:
replicas: 1
selector:
matchLabels:
app: minio
template:
metadata:
labels:
app: minio
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: disktype
operator: In
values:
- hdd
containers:
- name: minio
image: minio/minio:RELEASE.2022-07-29T19-40-48Z
args: ['server', '/data', '--console-address', ':9001']
ports:
- name: minio
containerPort: 9000
volumeMounts:
- name: s3-pv-storage
mountPath: /data
env:
- name: MINIO_SERVER_URL
value: https://minio.example.com
- name: MINIO_BROWSER_REDIRECT_URL
value: https://console.minio.example.com
- name: MINIO_IDENTITY_OPENID_CONFIG_URL
value: https://keycloak.example.com/auth/realms/home/.well-known/openid-configuration
- name: MINIO_IDENTITY_OPENID_CLIENT_ID
value: minio
- name: MINIO_IDENTITY_OPENID_CLIENT_SECRET
value: cad5f999-81e6-4791-afef-86ddd18ae3df
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: minio
key: MINIO_ROOT_USER
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: minio
key: MINIO_ROOT_PASSWORD
volumes:
- name: s3-pv-storage
persistentVolumeClaim:
claimName: s3-pvc