-
Notifications
You must be signed in to change notification settings - Fork 0
/
pinger_deployment.yaml
45 lines (45 loc) · 1.02 KB
/
pinger_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
---
apiVersion: "apps/v1"
kind: "StatefulSet"
metadata:
name: "baskervillehall-pinger"
namespace: "default"
labels:
app: "baskervillehall-pinger"
spec:
replicas: 3
serviceName: "baskervillehall-pinger"
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: "baskervillehall-pinger"
template:
metadata:
labels:
app: "baskervillehall-pinger"
spec:
containers:
- name: "baskervillehall-pinger"
image: "equalitie/baskervillehall:latest"
imagePullPolicy: Always
resources:
requests:
memory: "1Gi"
cpu: "50m"
limits:
memory: "1Gi"
cpu: "100m"
command:
- python
args:
- /usr/local/baskervillehall/src/baskervillehall/main.py
- pinger
envFrom:
- configMapRef:
name: baskervillehall
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name