-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathorg1.yaml
102 lines (102 loc) · 2.11 KB
/
org1.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
apiVersion: v1
kind: Namespace
metadata:
name: typesense3
---
apiVersion: v1
data:
nodes: typesense-0.ts.typesense.svc.cluster.local:8107:8108,typesense-1.ts.typesense.svc.cluster.local:8107:8108,typesense-2.ts.typesense.svc.cluster.local:8107:8108
kind: ConfigMap
metadata:
name: nodeslist
namespace: typesense3
---
apiVersion: v1
kind: Service
metadata:
name: ts
namespace: typesense3
spec:
clusterIP: None
ports:
- name: http
port: 8108
targetPort: 8108
selector:
app: typesense
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: typesense
service: typesense
name: typesense
namespace: typesense3
spec:
podManagementPolicy: Parallel
replicas: 3
selector:
matchLabels:
app: typesense
service: typesense
serviceName: ts
template:
metadata:
labels:
app: typesense
service: typesense
spec:
containers:
- command:
- /opt/typesense-server
- -d
- /usr/share/typesense/data
- -a
- Mycomplexpassword#6546
- --api-port
- "8108"
- --peering-port
- "8107"
- --nodes
- /usr/share/typesense/nodes
image: typesense/typesense:0.21.0.rc-k8s-2
name: typesense
ports:
- containerPort: 8108
name: http
resources:
limits:
cpu: 1024m
memory: 512Mi
requests:
cpu: 128m
memory: 112Mi
volumeMounts:
- mountPath: /usr/share/typesense
name: nodeslist
- mountPath: /usr/share/typesense/data
name: data
securityContext:
fsGroup: 2000
runAsGroup: 3000
runAsNonRoot: true
runAsUser: 10000
terminationGracePeriodSeconds: 300
volumes:
- configMap:
items:
- key: nodes
path: nodes
name: nodeslist
name: nodeslist
volumeClaimTemplates:
- metadata:
name: data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: ebs-sc