forked from minio/minio
-
Notifications
You must be signed in to change notification settings - Fork 14
/
kubernetes_local.yml
78 lines (78 loc) · 1.6 KB
/
kubernetes_local.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: workdir
spec:
accessModes:
- ReadWriteOnce
storageClassName: standard
resources:
requests:
storage: 1Gi # make this bigger in production
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: s3x
labels:
name: s3x
app: s3x
spec:
replicas: 2
selector:
matchLabels:
app: s3x
template:
metadata:
labels:
app: s3x
role: gateway
spec:
volumes:
- name: workdir
persistentVolumeClaim:
claimName: workdir
containers:
- name: s3x
image: rtradetech/s3x:latest
args: ["gateway", "s3x", "--temporalx.endpoint", "localhost:9090", "--temporalx.insecure"]
env:
- name: MINIO_ACCESS_KEY
value: minio
- name: MINIO_SECRET_KEY
value: minio123
ports:
- name: api-s3x
containerPort: 9000
protocol: TCP
- name: temx
image: localhost:5000/temporalx:latest
args: ["server"]
ports:
- name: api-temx
containerPort: 9090
protocol: TCP
- name: swarm
containerPort: 4005
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: s3x-service
labels:
app: s3x
spec:
type: LoadBalancer
ports:
- name: api-s3x
targetPort: api-s3x
port: 9000
- name: api-temx
targetPort: api-temx
port: 9090
- name: swarm
containerPort: swarm
port: 4005
selector:
app: s3x