confluence-persistent-template.yaml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. apiVersion: v1
  2. kind: Template
  3. metadata:
  4. creationTimestamp: null
  5. name: confluence
  6. objects:
  7. - apiVersion: v1
  8. kind: DeploymentConfig
  9. metadata:
  10. labels:
  11. run: confluence
  12. name: confluence
  13. spec:
  14. replicas: 1
  15. selector:
  16. run: confluence
  17. strategy:
  18. type: Recreate
  19. template:
  20. metadata:
  21. labels:
  22. run: confluence
  23. spec:
  24. containers:
  25. - env:
  26. - name: JVM_XMX
  27. value: '2048m'
  28. - name: JVM_XMS
  29. value: '1024m'
  30. image: docker.io/xhuaustc/confluence:6.7.1
  31. imagePullPolicy: IfNotPresent
  32. name: confluence
  33. volumeMounts:
  34. - mountPath: /var/atlassian/confluence
  35. name: volume-7iy6x
  36. - mountPath: /opt/atlassian/confluence/logs
  37. name: volume-zsyly
  38. volumes:
  39. - name: volume-7iy6x
  40. persistentVolumeClaim:
  41. claimName: confluence
  42. - name: volume-zsyly
  43. persistentVolumeClaim:
  44. claimName: log
  45. triggers:
  46. - type: ConfigChange
  47. - apiVersion: v1
  48. kind: DeploymentConfig
  49. metadata:
  50. labels:
  51. run: mysql
  52. name: mysql
  53. spec:
  54. replicas: 1
  55. selector:
  56. run: mysql
  57. strategy:
  58. type: Recreate
  59. template:
  60. metadata:
  61. labels:
  62. run: mysql
  63. spec:
  64. containers:
  65. - env:
  66. - name: MYSQL_USER
  67. value: confluence
  68. - name: MYSQL_PASSWORD
  69. value: confluence
  70. - name: MYSQL_DATABASE
  71. value: confluence
  72. - name: MYSQL_ROOT_PASSWORD
  73. value: confluence
  74. image: docker.io/xhuaustc/atlassian-mysql:5.7
  75. imagePullPolicy: IfNotPresent
  76. name: mysql
  77. volumeMounts:
  78. - mountPath: /var/lib/mysql
  79. name: volume-uiwfa
  80. volumes:
  81. - name: volume-uiwfa
  82. persistentVolumeClaim:
  83. claimName: mysql-data
  84. triggers:
  85. - type: ConfigChange
  86. - apiVersion: v1
  87. kind: Service
  88. metadata:
  89. labels:
  90. run: confluence
  91. name: confluence
  92. spec:
  93. ports:
  94. - port: 8090
  95. protocol: TCP
  96. targetPort: 8090
  97. selector:
  98. run: confluence
  99. type: ClusterIP
  100. - apiVersion: v1
  101. kind: Service
  102. metadata:
  103. labels:
  104. run: mysql
  105. name: mysql
  106. spec:
  107. ports:
  108. - port: 3306
  109. protocol: TCP
  110. targetPort: 3306
  111. selector:
  112. run: mysql
  113. type: ClusterIP
  114. - apiVersion: v1
  115. kind: Route
  116. metadata:
  117. annotations:
  118. haproxy.router.openshift.io/timeout: 3000s
  119. labels:
  120. run: confluence
  121. name: confluence
  122. spec:
  123. port:
  124. targetPort: 8090
  125. to:
  126. kind: Service
  127. name: confluence
  128. weight: 100
  129. wildcardPolicy: None
  130. - apiVersion: v1
  131. kind: PersistentVolumeClaim
  132. metadata:
  133. annotations:
  134. volume.beta.kubernetes.io/storage-class: ceph-rbd-sc
  135. volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/rbd
  136. name: confluence
  137. spec:
  138. accessModes:
  139. - ReadWriteOnce
  140. resources:
  141. requests:
  142. storage: 20Gi
  143. - apiVersion: v1
  144. kind: PersistentVolumeClaim
  145. metadata:
  146. annotations:
  147. volume.beta.kubernetes.io/storage-class: ceph-rbd-sc
  148. volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/rbd
  149. name: log
  150. spec:
  151. accessModes:
  152. - ReadWriteOnce
  153. resources:
  154. requests:
  155. storage: 10Gi
  156. - apiVersion: v1
  157. kind: PersistentVolumeClaim
  158. metadata:
  159. annotations:
  160. volume.beta.kubernetes.io/storage-class: ceph-rbd-sc
  161. volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/rbd
  162. name: mysql-data
  163. spec:
  164. accessModes:
  165. - ReadWriteOnce
  166. resources:
  167. requests:
  168. storage: 10Gi