-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqltest-deploy.yaml
68 lines (67 loc) · 1.76 KB
/
sqltest-deploy.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
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
annotations:
email: [email protected]
owner: stackrox
name: central-db-2
namespace: stackrox
spec:
ingress:
- from:
- podSelector:
matchLabels:
app: sqltest-runner
ports:
- port: 5432
protocol: TCP
podSelector:
matchLabels:
app: central-db
policyTypes:
- Ingress
- Egress
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: sqltest-runner
name: sqltest-runner
namespace: stackrox
spec:
replicas: 1
selector:
matchLabels:
app: sqltest-runner
template:
metadata:
labels:
app: sqltest-runner
spec:
containers:
- image: quay.io/ybrillou/sqlperftest:20241118
env:
imagePullPolicy: Always
name: sqltest-runner
volumeMounts:
- mountPath: /run/secrets/stackrox.io/db-password
name: central-db-password
- mountPath: /run/secrets/stackrox.io/certs/
name: central-certs-volume
readOnly: true
volumes:
- name: central-db-password
secret:
defaultMode: 420
secretName: central-db-password
- name: central-certs-volume
secret:
defaultMode: 420
secretName: central-tls
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
terminationGracePeriodSeconds: 30
imagePullSecrets:
- name: regcred