-
Notifications
You must be signed in to change notification settings - Fork 51
/
manifest.yaml
143 lines (143 loc) · 3.1 KB
/
manifest.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: api-testing
name: api-testing
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: api-testing
template:
metadata:
creationTimestamp: null
labels:
app: api-testing
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app: api-testing
topologyKey: kubernetes.io/hostname
weight: 5
containers:
- image: ghcr.io/linuxsuren/api-testing:master
name: server
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 1
periodSeconds: 5
readinessProbe:
httpGet:
path: /
port: 8080
initialDelaySeconds: 1
periodSeconds: 5
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- name: config
mountPath: /root/.config/atest/
- image: ghcr.io/linuxsuren/api-testing:master
name: extension-orm
command: [atest-store-orm]
imagePullPolicy: Always
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 100Mi
- image: ghcr.io/linuxsuren/api-testing:master
name: extension-s3
command: [atest-store-s3]
imagePullPolicy: Always
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 100Mi
volumes:
- name: config
configMap:
name: api-testing
---
apiVersion: v1
kind: Service
metadata:
name: api-testing
spec:
ports:
- name: web
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: api-testing
sessionAffinity: None
type: NodePort
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: api-testing
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: api-testing
port:
number: 8080
---
apiVersion: v1
kind: ConfigMap
metadata:
creationTimestamp: null
name: api-testing
data:
stores.yaml: |
- name: db
kind:
name: database
url: localhost:7071
url: localhost:4000
username: root
properties:
database: test
- name: s3
url: http://172.11.0.13:30999 # address of the s3 server
kind:
name: s3
url: localhost:7072 # address of the s3 storage extension
properties:
accessKeyID: 6e03rIMChrsZ6YZl
secretAccessKey: F0xH6o2qRYTyAUyRuXO81B4gj7zUrSaj
disableSSL: true
forcepathstyle: true
bucket: vm1
region: cn