values.yaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. # Default values for docker-registry.
  2. # This is a YAML-formatted file.
  3. # Declare variables to be passed into your templates.
  4. replicaCount: 1
  5. updateStrategy: {}
  6. # type: RollingUpdate
  7. # rollingUpdate:
  8. # maxSurge: 1
  9. # maxUnavailable: 0
  10. podAnnotations: {}
  11. podLabels: {}
  12. serviceAccount:
  13. create: false
  14. name: ""
  15. annotations: {}
  16. image:
  17. repository: registry
  18. tag: latest
  19. pullPolicy: IfNotPresent
  20. # imagePullSecrets:
  21. # - name: docker
  22. service:
  23. name: registry
  24. type: ClusterIP
  25. # sessionAffinity: None
  26. # sessionAffinityConfig: {}
  27. # clusterIP:
  28. port: 5000
  29. #nodePort: 31010
  30. # loadBalancerIP:
  31. # loadBalancerSourceRanges:
  32. annotations: {}
  33. # foo.io/bar: "true"
  34. ingress:
  35. enabled: true
  36. ingressClassName: "nginx"
  37. #className: nginx
  38. path: /
  39. # Used to create an Ingress record.
  40. hosts:
  41. - reg.cestong.com.cn
  42. annotations:
  43. nginx.ingress.kubernetes.io/proxy-connect-timeout: "60"
  44. nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
  45. nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"
  46. nginx.ingress.kubernetes.io/proxy-body-size: "0"
  47. labels: {}
  48. tls:
  49. # Secrets must be manually created in the namespace.
  50. - secretName: cecf-tls-secret
  51. hosts:
  52. - reg.cestong.com.cn
  53. resources:
  54. # We usually recommend not to specify default resources and to leave this as a conscious
  55. # choice for the user. This also increases chances charts run on environments with little
  56. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  57. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  58. limits:
  59. cpu: 4
  60. memory: 8Gi
  61. requests:
  62. cpu: 500m
  63. memory: 1Gi
  64. persistence:
  65. accessMode: 'ReadWriteOnce'
  66. enabled: true
  67. size: 10Gi
  68. storageClass: 'openebs-hostpath'
  69. # set the type of filesystem to use: filesystem, s3
  70. storage: filesystem
  71. # Set this to name of secret for tls certs
  72. # tlsSecretName: registry.docker.example.com
  73. secrets:
  74. haSharedSecret: ""
  75. htpasswd: ""
  76. # Secrets for Azure
  77. # azure:
  78. # accountName: ""
  79. # accountKey: ""
  80. # container: ""
  81. # Secrets for S3 access and secret keys
  82. # Use a secretRef with keys (accessKey, secretKey) for secrets stored outside the chart
  83. # s3:
  84. # secretRef: ""
  85. # accessKey: ""
  86. # secretKey: ""
  87. # Secrets for Swift username and password
  88. # swift:
  89. # username: ""
  90. # password: ""
  91. # Options for s3 storage type:
  92. # s3:
  93. # region: us-east-1
  94. # regionEndpoint: s3.us-east-1.amazonaws.com
  95. # bucket: my-bucket
  96. # rootdirectory: /object/prefix
  97. # encrypt: false
  98. # secure: true
  99. # Options for swift storage type:
  100. # swift:
  101. # authurl: http://swift.example.com/
  102. # container: my-container
  103. # https://docs.docker.com/registry/recipes/mirror/
  104. proxy:
  105. enabled: false
  106. remoteurl: https://registry-1.docker.io
  107. username: ""
  108. password: ""
  109. # the ref for a secret stored outside of this chart
  110. # Keys: proxyUsername, proxyPassword
  111. secretRef: ""
  112. metrics:
  113. enabled: false
  114. port: 5001
  115. # Create a prometheus-operator servicemonitor
  116. serviceMonitor:
  117. enabled: false
  118. labels: {}
  119. # prometheus-operator PrometheusRule defining alerting rules for a Prometheus instance
  120. prometheusRule:
  121. enabled: false
  122. labels: {}
  123. rules: {}
  124. configData:
  125. version: 0.1
  126. validation:
  127. disabled: true
  128. log:
  129. fields:
  130. service: registry
  131. storage:
  132. cache:
  133. blobdescriptor: inmemory
  134. http:
  135. addr: :5000
  136. headers:
  137. X-Content-Type-Options: [nosniff]
  138. debug:
  139. addr: :5001
  140. prometheus:
  141. enabled: false
  142. path: /metrics
  143. health:
  144. storagedriver:
  145. enabled: true
  146. interval: 10s
  147. threshold: 3
  148. securityContext:
  149. enabled: true
  150. runAsUser: 1000
  151. fsGroup: 1000
  152. priorityClassName: ""
  153. podDisruptionBudget: {}
  154. # maxUnavailable: 1
  155. # minAvailable: 2
  156. autoscaling:
  157. enabled: false
  158. minReplicas: 1
  159. maxReplicas: 2
  160. targetCPUUtilizationPercentage: 60
  161. targetMemoryUtilizationPercentage: 60 # available only on Kubernetes ≥1.23 [required "autoscaling/v2"]
  162. behavior: {} # available only on Kubernetes ≥1.23 [required "autoscaling/v2"]
  163. # scaleDown:
  164. # stabilizationWindowSeconds: 300
  165. # policies:
  166. # - type: Percent
  167. # value: 100
  168. # periodSeconds: 15
  169. # scaleUp:
  170. # stabilizationWindowSeconds: 0
  171. # policies:
  172. # - type: Percent
  173. # value: 100
  174. # periodSeconds: 15
  175. # - type: Pods
  176. # value: 4
  177. # periodSeconds: 15
  178. # selectPolicy: Max
  179. nodeSelector:
  180. kubernetes.io/hostname: node01
  181. affinity: {}
  182. tolerations: []
  183. extraVolumeMounts: []
  184. ## Additional volumeMounts to the registry container.
  185. # - mountPath: /secret-data
  186. # name: cloudfront-pem-secret
  187. # readOnly: true
  188. extraVolumes: []
  189. ## Additional volumes to the pod.
  190. # - name: cloudfront-pem-secret
  191. # secret:
  192. # secretName: cloudfront-credentials
  193. # items:
  194. # - key: cloudfront.pem
  195. # path: cloudfront.pem
  196. # mode: 511
  197. extraEnvVars: []
  198. ## Additional ENV variables to set
  199. # - name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
  200. # value: "/var/lib/example"
  201. initContainers: []
  202. ## Init containers to add to the Deployment
  203. # - name: init
  204. # image: busybox
  205. # command: []
  206. garbageCollect:
  207. enabled: false
  208. deleteUntagged: true
  209. schedule: "0 1 * * *"