-
Notifications
You must be signed in to change notification settings - Fork 38
/
msp-deployment.yaml
58 lines (58 loc) · 1.49 KB
/
msp-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
---
# Source: mayastor-control-plane/templates/msp-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: msp-operator
namespace: mayastor
labels:
app: msp-operator
spec:
replicas: 1
selector:
matchLabels:
app: msp-operator
template:
metadata:
labels:
app: msp-operator
spec:
serviceAccount: mayastor-service-account
imagePullSecrets:
- name: regcred
initContainers:
- command:
- sh
- -c
- trap "exit 1" TERM; until nc -vz nats 4222; do echo "Waiting for nats..."; sleep
1; done;
image: busybox:latest
name: nats-probe
- command:
- sh
- -c
- trap "exit 1" TERM; until nc -vz mayastor-etcd 2379; do echo "Waiting for etcd...";
sleep 1; done;
image: busybox:latest
name: etcd-probe
containers:
- name: msp-operator
resources:
limits:
cpu: 100m
memory: 32Mi
requests:
cpu: 50m
memory: 16Mi
image: mayadata/mcp-msp-operator:e2e-nightly
imagePullPolicy: Always
args:
- "-e http://$(REST_SERVICE_HOST):8081"
- "--interval=30s"
env:
- name: RUST_LOG
value: info,msp_operator=info
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name