This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
zookeeper.yaml
78 lines (75 loc) · 1.84 KB
/
zookeeper.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
68
69
70
71
72
73
74
75
76
77
78
apiVersion: v1
kind: Template
metadata:
name: openstack-poc-zookeeper
annotations:
description: Zookeeper pod
tags: logs,poc,openstack,zookeeper
parameters:
- name: VOLUME_CAPACITY
description: Persistent volume capacity per pod
required: true
value: 512Mi
- name: VOLUME_CLAIM_NAME
description: Persistent claim name
required: true
value: app1-pvc
- name: OBJECT_NAME_PREFIX
description: Name prefix for each object created
required: true
value: zookeeper
- name: IMAGESTREAM
description: Imagestream name
required: true
value: kafka-openstack-poc
- description: Name of the ImageStreamTag to be used for image.
displayName: ImageStreamTag
name: IMAGE_STREAM_TAG
value: "kafka-openstack-poc:latest"
objects:
- apiVersion: v1
kind: DeploymentConfig
metadata:
name: ${OBJECT_NAME_PREFIX}
spec:
replicas: 1
selector:
deploymentconfig: ${OBJECT_NAME_PREFIX}
template:
metadata:
labels:
deploymentconfig: ${OBJECT_NAME_PREFIX}
spec:
containers:
- name: ${OBJECT_NAME_PREFIX}
image: ${IMAGESTREAM}
command:
- bin/zookeeper-server-start.sh
args:
- config/zookeeper.properties
volumeMounts:
- mountPath: /tmp/zookeeper
name: zookeeper
ports:
- containerPort: 2181
volumes:
- name: zookeeper
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- ${OBJECT_NAME_PREFIX}
from:
kind: ImageStream
name: ${IMAGESTREAM}
- apiVersion: v1
kind: Service
metadata:
name: ${OBJECT_NAME_PREFIX}
spec:
ports:
- port: 2181
selector:
deploymentconfig: ${OBJECT_NAME_PREFIX}