-
Notifications
You must be signed in to change notification settings - Fork 735
/
50cruise-control.yml
50 lines (50 loc) · 1.37 KB
/
50cruise-control.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cruise-control
spec:
selector:
matchLabels:
app: cruise-control
replicas: 1
template:
metadata:
labels:
app: cruise-control
annotations:
spec:
terminationGracePeriodSeconds: 30
initContainers:
- name: init-config
image: busybox@sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812
command: ['/bin/sh']
args: [ '-c', 'cp /etc/cruise-control-configmap/* /opt/cruise-control/config']
volumeMounts:
- name: configmap
mountPath: /etc/cruise-control-configmap
- name: config
mountPath: /opt/cruise-control/config
containers:
- name: cruise-control
image: solsson/kafka-cruise-control@sha256:2c2d113ec3d960bfa75e8e51d1fed6a2f2818e329990f61c895e611403ba64d0
imagePullPolicy: IfNotPresent
ports:
- name: api
containerPort: 8090
resources:
requests:
cpu: 100m
memory: 512Mi
readinessProbe:
tcpSocket:
port: 8090
timeoutSeconds: 1
volumeMounts:
- name: config
mountPath: /opt/cruise-control/config
volumes:
- name: configmap
configMap:
name: broker-cruise-control-config
- name: config
emptyDir: {}