https://hub.docker.com/r/easysoft/zentao/tags

    1. apiVersion: v1
    2. kind: PersistentVolumeClaim
    3. metadata:
    4. name: zentao-pvc
    5. namespace: ur-dev
    6. spec:
    7. accessModes:
    8. - ReadWriteMany
    9. storageClassName: kubesphere-nfs-client
    10. resources:
    11. requests:
    12. storage: 10Gi
    13. ---
    14. apiVersion: v1
    15. kind: PersistentVolumeClaim
    16. metadata:
    17. name: zentao-mysql-pvc
    18. namespace: ur-dev
    19. spec:
    20. accessModes:
    21. - ReadWriteMany
    22. storageClassName: kubesphere-nfs-client
    23. resources:
    24. requests:
    25. storage: 10Gi
    26. ---
    27. apiVersion: v1
    28. kind: Service
    29. metadata:
    30. labels:
    31. app: zentao
    32. name: zentao-client
    33. namespace: ur-dev
    34. spec:
    35. ports:
    36. - port: 80
    37. targetPort: 80
    38. name: zentao
    39. selector:
    40. app: zentao
    41. type: NodePort
    42. ---
    43. apiVersion: apps/v1
    44. kind: Deployment
    45. metadata:
    46. name: zentao
    47. namespace: ur-dev
    48. labels:
    49. app: zentao
    50. spec:
    51. selector:
    52. matchLabels:
    53. app: zentao
    54. replicas: 1
    55. template:
    56. metadata:
    57. labels:
    58. app: zentao
    59. spec:
    60. containers:
    61. - name: zentao
    62. image: bytest-harbor.ur.com.cn/base-image/easysoft/zentao:15.5
    63. #https://hub.docker.com/r/easysoft/zentao/tags
    64. resources:
    65. requests:
    66. memory: "2Gi"
    67. cpu: "2000m"
    68. limits:
    69. memory: "2Gi"
    70. cpu: "2000m"
    71. env:
    72. - name: MYSQL_ROOT_PASSWORD
    73. value: '1qaz@WSX'
    74. #mysql密码
    75. ports:
    76. - name: zentao
    77. containerPort: 80
    78. - name: mysql
    79. containerPort: 3306
    80. volumeMounts:
    81. - name: zentao-data
    82. mountPath: /www/zentaopms
    83. - name: zentao-mysql
    84. mountPath: /var/lib/mysql
    85. volumes:
    86. - name: zentao-data
    87. persistentVolumeClaim:
    88. claimName: zentao-pvc
    89. - name: zentao-mysql
    90. persistentVolumeClaim:
    91. claimName: zentao-mysql-pvc