values.yaml 5.1 KB

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