2
0

gitlab-rc.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. apiVersion: v1
  2. kind: ReplicationController
  3. metadata:
  4. name: gitlab-ldap
  5. namespace: public-service
  6. spec:
  7. replicas: 1
  8. selector:
  9. name: gitlab
  10. template:
  11. metadata:
  12. name: gitlab
  13. labels:
  14. name: gitlab
  15. spec:
  16. containers:
  17. - name: gitlab
  18. image: sameersbn/gitlab:11.5.1
  19. env:
  20. - name: TZ
  21. value: Asia/Shanghai
  22. - name: GITLAB_TIMEZONE
  23. value: Beijing
  24. - name: GITLAB_SECRETS_DB_KEY_BASE
  25. value: long-and-random-alpha-numeric-string
  26. - name: GITLAB_SECRETS_SECRET_KEY_BASE
  27. value: long-and-random-alpha-numeric-string
  28. - name: GITLAB_SECRETS_OTP_KEY_BASE
  29. value: long-and-random-alpha-numeric-string
  30. - name: GITLAB_ROOT_PASSWORD
  31. value: gitlab123
  32. - name: GITLAB_ROOT_EMAIL
  33. value: dukuan@haixiangjinfu.com
  34. - name: GITLAB_HOST
  35. value: gitlab.xxx.net
  36. - name: GITLAB_PORT
  37. value: "80"
  38. - name: GITLAB_SSH_PORT
  39. value: "22"
  40. - name: GITLAB_NOTIFY_ON_BROKEN_BUILDS
  41. value: "true"
  42. - name: GITLAB_NOTIFY_PUSHER
  43. value: "false"
  44. - name: GITLAB_BACKUP_SCHEDULE
  45. value: daily
  46. - name: GITLAB_BACKUP_TIME
  47. value: 01:00
  48. - name: DB_TYPE
  49. value: postgres
  50. - name: DB_HOST
  51. value: postgresql
  52. - name: DB_PORT
  53. value: "5432"
  54. - name: DB_USER
  55. value: gitlab
  56. - name: DB_PASS
  57. value: passw0rd
  58. - name: DB_NAME
  59. value: gitlab_production
  60. - name: REDIS_HOST
  61. value: redis
  62. - name: REDIS_PORT
  63. value: "6379"
  64. - name: SMTP_ENABLED
  65. value: "true"
  66. - name: SMTP_DOMAIN
  67. value: smtp.exmail.qq.com
  68. - name: SMTP_HOST
  69. value: smtp.exmail.qq.com
  70. - name: SMTP_PORT
  71. value: "465"
  72. - name: SMTP_USER
  73. value: dukuan@xxx.com
  74. - name: SMTP_PASS
  75. value: "DKxxx"
  76. - name: SMTP_STARTTLS
  77. value: "true"
  78. - name: SMTP_AUTHENTICATION
  79. value: login
  80. - name: IMAP_ENABLED
  81. value: "false"
  82. - name: IMAP_HOST
  83. value: imap.gmail.com
  84. - name: IMAP_PORT
  85. value: "993"
  86. - name: IMAP_USER
  87. value: mailer@example.com
  88. - name: IMAP_PASS
  89. value: password
  90. - name: IMAP_SSL
  91. value: "true"
  92. - name: IMAP_STARTTLS
  93. value: "false"
  94. - name: LDAP_ENABLED
  95. value: "true"
  96. - name: LDAP_LABEL
  97. value: 'LDAP'
  98. - name: LDAP_HOST
  99. value: 'ldap-service'
  100. - name: LDAP_PORT
  101. value: '389'
  102. - name: LDAP_UID
  103. value: 'uid'
  104. - name: LDAP_BIND_DN
  105. value: 'cn=admin,dc=example,dc=org'
  106. - name: LDAP_PASS
  107. value: 'admin'
  108. - name: LDAP_BASE
  109. value: 'dc=example,dc=org'
  110. - name: LDAP_ALLOW_USERNAME_OR_EMAIL_LOGIN
  111. value: "true"
  112. - name: LDAP_VERIFY_SSL
  113. value: 'false'
  114. - name: LDAP_METHOD
  115. value: 'plain'
  116. ports:
  117. - name: http
  118. containerPort: 80
  119. - name: ssh
  120. containerPort: 22
  121. volumeMounts:
  122. - mountPath: /home/git/data
  123. name: data
  124. livenessProbe:
  125. httpGet:
  126. path: /
  127. port: 80
  128. initialDelaySeconds: 180
  129. timeoutSeconds: 5
  130. readinessProbe:
  131. httpGet:
  132. path: /
  133. port: 80
  134. initialDelaySeconds: 5
  135. timeoutSeconds: 1
  136. volumes:
  137. - name: data
  138. persistentVolumeClaim:
  139. claimName: gitlab-gitlab