64 lines
1.4 KiB
YAML
64 lines
1.4 KiB
YAML
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: m3coordinator
|
||
|
|
namespace: m3db
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: m3coordinator
|
||
|
|
spec:
|
||
|
|
replicas: 2
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: m3coordinator
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: m3coordinator
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: m3coordinator
|
||
|
|
image: quay.io/m3db/m3coordinator:v1.5.0
|
||
|
|
args:
|
||
|
|
- -f
|
||
|
|
- /etc/m3coordinator/m3coordinator.yml
|
||
|
|
ports:
|
||
|
|
- name: api
|
||
|
|
containerPort: 7201
|
||
|
|
- name: metrics
|
||
|
|
containerPort: 7203
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /health
|
||
|
|
port: 7201
|
||
|
|
initialDelaySeconds: 30
|
||
|
|
periodSeconds: 10
|
||
|
|
readinessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /health
|
||
|
|
port: 7201
|
||
|
|
initialDelaySeconds: 5
|
||
|
|
periodSeconds: 5
|
||
|
|
volumeMounts:
|
||
|
|
- name: config
|
||
|
|
mountPath: /etc/m3coordinator
|
||
|
|
volumes:
|
||
|
|
- name: config
|
||
|
|
configMap:
|
||
|
|
name: m3coordinator-config
|
||
|
|
---
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: m3coordinator
|
||
|
|
namespace: m3db
|
||
|
|
spec:
|
||
|
|
selector:
|
||
|
|
app.kubernetes.io/name: m3coordinator
|
||
|
|
ports:
|
||
|
|
- name: api
|
||
|
|
port: 7201
|
||
|
|
targetPort: api
|
||
|
|
- name: metrics
|
||
|
|
port: 7203
|
||
|
|
targetPort: metrics
|