list.yaml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. apiVersion: v1
  2. items:
  3. - apiVersion: v1
  4. kind: BuildConfig
  5. metadata:
  6. creationTimestamp: null
  7. labels:
  8. app: redis-build
  9. name: redis
  10. name: redis-build
  11. spec:
  12. nodeSelector: null
  13. output:
  14. to:
  15. kind: ImageStreamTag
  16. name: redis:latest
  17. postCommit: {}
  18. resources: {}
  19. runPolicy: Serial
  20. source:
  21. contextDir: image
  22. git:
  23. uri: https://github.com/mangirdaz/redis-openshift.git
  24. type: Git
  25. strategy:
  26. dockerStrategy:
  27. from:
  28. kind: ImageStreamTag
  29. name: rhel7:latest
  30. namespace: openshift
  31. type: Docker
  32. triggers: []
  33. status:
  34. lastVersion: 0
  35. - apiVersion: v1
  36. kind: ImageStream
  37. metadata:
  38. labels:
  39. build: redis
  40. name: redis
  41. status:
  42. dockerImageRepository: ""
  43. - apiVersion: v1
  44. kind: DeploymentConfig
  45. metadata:
  46. creationTimestamp: null
  47. generation: 1
  48. labels:
  49. app: redis
  50. name: redis
  51. spec:
  52. replicas: 3
  53. selector:
  54. app: redis
  55. strategy:
  56. resources: {}
  57. rollingParams:
  58. intervalSeconds: 1
  59. maxSurge: 25%
  60. maxUnavailable: 25%
  61. timeoutSeconds: 600
  62. updatePeriodSeconds: 1
  63. type: Rolling
  64. template:
  65. metadata:
  66. creationTimestamp: null
  67. labels:
  68. app: redis
  69. spec:
  70. containers:
  71. - image: ' '
  72. imagePullPolicy: Always
  73. name: redis
  74. ports:
  75. - containerPort: 6379
  76. protocol: TCP
  77. resources: {}
  78. terminationMessagePath: /dev/termination-log
  79. volumeMounts:
  80. - mountPath: /redis-master-data
  81. name: data
  82. dnsPolicy: ClusterFirst
  83. restartPolicy: Always
  84. securityContext: {}
  85. terminationGracePeriodSeconds: 30
  86. volumes:
  87. - emptyDir: {}
  88. name: data
  89. test: false
  90. triggers:
  91. - type: ConfigChange
  92. - imageChangeParams:
  93. automatic: true
  94. containerNames:
  95. - redis
  96. from:
  97. kind: ImageStreamTag
  98. name: redis:latest
  99. namespace: redis
  100. type: ImageChange
  101. status: {}
  102. - apiVersion: v1
  103. kind: DeploymentConfig
  104. metadata:
  105. creationTimestamp: null
  106. generation: 1
  107. labels:
  108. app: redis-master
  109. redis-master: "true"
  110. redis-sentinel: "true"
  111. role: master
  112. name: redis-master
  113. spec:
  114. replicas: 1
  115. selector:
  116. app: redis-master
  117. redis-master: "true"
  118. redis-sentinel: "true"
  119. role: master
  120. strategy:
  121. resources: {}
  122. rollingParams:
  123. intervalSeconds: 1
  124. maxSurge: 25%
  125. maxUnavailable: 25%
  126. timeoutSeconds: 600
  127. updatePeriodSeconds: 1
  128. type: Rolling
  129. template:
  130. metadata:
  131. creationTimestamp: null
  132. labels:
  133. app: redis-master
  134. redis-master: "true"
  135. redis-sentinel: "true"
  136. role: master
  137. spec:
  138. containers:
  139. - env:
  140. - name: MASTER
  141. value: "true"
  142. image: ' '
  143. imagePullPolicy: Always
  144. name: redis
  145. ports:
  146. - containerPort: 6379
  147. protocol: TCP
  148. resources: {}
  149. terminationMessagePath: /dev/termination-log
  150. volumeMounts:
  151. - mountPath: /redis-master-data
  152. name: data
  153. - env:
  154. - name: SENTINEL
  155. value: "true"
  156. image: ' '
  157. imagePullPolicy: Always
  158. name: sentinel
  159. ports:
  160. - containerPort: 26379
  161. protocol: TCP
  162. resources: {}
  163. terminationMessagePath: /dev/termination-log
  164. dnsPolicy: ClusterFirst
  165. restartPolicy: Always
  166. securityContext: {}
  167. terminationGracePeriodSeconds: 30
  168. volumes:
  169. - emptyDir: {}
  170. name: data
  171. test: false
  172. triggers:
  173. - imageChangeParams:
  174. automatic: true
  175. containerNames:
  176. - redis
  177. from:
  178. kind: ImageStreamTag
  179. name: redis:latest
  180. namespace: redis
  181. type: ImageChange
  182. - imageChangeParams:
  183. automatic: true
  184. containerNames:
  185. - sentinel
  186. from:
  187. kind: ImageStreamTag
  188. name: redis:latest
  189. namespace: redis
  190. type: ImageChange
  191. - type: ConfigChange
  192. status: {}
  193. - apiVersion: v1
  194. kind: DeploymentConfig
  195. metadata:
  196. creationTimestamp: null
  197. generation: 1
  198. labels:
  199. app: redis-sentinel
  200. redis-sentinel: "true"
  201. name: redis-sentinel
  202. spec:
  203. replicas: 3
  204. selector:
  205. app: redis-sentinel
  206. redis-sentinel: "true"
  207. strategy:
  208. resources: {}
  209. rollingParams:
  210. intervalSeconds: 1
  211. maxSurge: 25%
  212. maxUnavailable: 25%
  213. timeoutSeconds: 600
  214. updatePeriodSeconds: 1
  215. type: Rolling
  216. template:
  217. metadata:
  218. creationTimestamp: null
  219. labels:
  220. app: redis-sentinel
  221. redis-sentinel: "true"
  222. spec:
  223. containers:
  224. - env:
  225. - name: SENTINEL
  226. value: "true"
  227. image: ' '
  228. imagePullPolicy: Always
  229. name: sentinel
  230. ports:
  231. - containerPort: 26379
  232. protocol: TCP
  233. resources: {}
  234. terminationMessagePath: /dev/termination-log
  235. volumeMounts:
  236. - mountPath: /redis-master-data
  237. name: data
  238. dnsPolicy: ClusterFirst
  239. restartPolicy: Always
  240. securityContext: {}
  241. terminationGracePeriodSeconds: 30
  242. volumes:
  243. - emptyDir: {}
  244. name: data
  245. test: false
  246. triggers:
  247. - type: ConfigChange
  248. - imageChangeParams:
  249. automatic: true
  250. containerNames:
  251. - sentinel
  252. from:
  253. kind: ImageStreamTag
  254. name: redis:latest
  255. namespace: redis
  256. type: ImageChange
  257. status: {}
  258. - apiVersion: v1
  259. kind: Service
  260. metadata:
  261. creationTimestamp: null
  262. labels:
  263. name: master
  264. role: service
  265. name: redis-master
  266. spec:
  267. ports:
  268. - port: 6379
  269. protocol: TCP
  270. targetPort: 6379
  271. selector:
  272. redis-master: "true"
  273. sessionAffinity: None
  274. type: ClusterIP
  275. status:
  276. loadBalancer: {}
  277. - apiVersion: v1
  278. kind: Service
  279. metadata:
  280. creationTimestamp: null
  281. labels:
  282. name: sentinel
  283. role: service
  284. name: redis-sentinel
  285. spec:
  286. ports:
  287. - port: 26379
  288. protocol: TCP
  289. targetPort: 26379
  290. selector:
  291. redis-sentinel: "true"
  292. sessionAffinity: None
  293. type: ClusterIP
  294. status:
  295. loadBalancer: {}
  296. kind: List
  297. metadata: {}