Advertisement
Guest User

nextcloud-yaml

a guest
Nov 10th, 2021
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.98 KB | None | 0 0
  1. ## Official nextcloud image version
  2. ## ref: https://hub.docker.com/r/library/nextcloud/tags/
  3. ##
  4. image:
  5. repository: nextcloud
  6. tag: 21.0.4-apache
  7. pullPolicy: IfNotPresent
  8. # pullSecrets:
  9. # - myRegistrKeySecretName
  10.  
  11. nameOverride: ""
  12. fullnameOverride: ""
  13.  
  14. # Number of replicas to be deployed
  15. replicaCount: 1
  16.  
  17. ## Allowing use of ingress controllers
  18. ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/
  19. ##
  20. ingress:
  21. enabled: true
  22. # My ingress config, using ACME of Letsencrypt. Please use it :)
  23.  
  24.  
  25. # className: nginx
  26. # kubernetes.io/tls-acme: "true"
  27. # cert-manager.io/cluster-issuer: letsencrypt-prod
  28. # nginx.ingress.kubernetes.io/server-snippet: |-
  29. # server_tokens off;
  30. # proxy_hide_header X-Powered-By;
  31. # rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
  32. # rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
  33. # rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
  34. # location = /.well-known/carddav {
  35. # return 301 $scheme://$host/remote.php/dav;
  36. # }
  37. # location = /.well-known/caldav {
  38. # return 301 $scheme://$host/remote.php/dav;
  39. # }
  40. # location = /robots.txt {
  41. # allow all;
  42. # log_not_found off;
  43. # access_log off;
  44. # }
  45. # location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
  46. # deny all;
  47. # }
  48. # location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
  49. # deny all;
  50. # }
  51. # tls:
  52. # - secretName: nextcloud-tls
  53. # hosts:
  54. # - nextcloud.kube.home
  55. labels: {}
  56.  
  57.  
  58. # Allow configuration of lifecycle hooks
  59. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/attach-handler-lifecycle-event/
  60. lifecycle: {}
  61. # postStartCommand: []
  62. # preStopCommand: []
  63.  
  64. nextcloud:
  65. host: nextcloud.test
  66. username: admin
  67. password: "password"
  68. ## Use an existing secret
  69. existingSecret:
  70. enabled: false
  71. # secretName: nameofsecret
  72. # usernameKey: username
  73. # passwordKey: password
  74. # smtpUsernameKey: smtp_username
  75. # smtpPasswordKey: smtp_password
  76. update: 0
  77. # If web server is not binding default port, you can define it
  78. # containerPort: 8080
  79. datadir: /var/www/html/data
  80. persistence:
  81. subPath:
  82. mail:
  83. enabled: false
  84. fromAddress: user
  85. domain: domain.com
  86. smtp:
  87. host: domain.com
  88. secure: ssl
  89. port: 465
  90. authtype: LOGIN
  91. name: user
  92. password: pass
  93. # PHP Configuration files
  94. # Will be injected in /usr/local/etc/php/conf.d for apache image and in /usr/local/etc/php-fpm.d when nginx.enabled: true
  95. phpConfigs: {}
  96. # Default config files
  97. # IMPORTANT: Will be used only if you put extra configs, otherwise default will come from nextcloud itself
  98. # Default confgurations can be found here: https://github.com/nextcloud/docker/tree/master/16.0/apache/config
  99. defaultConfigs:
  100. # To protect /var/www/html/config
  101. .htaccess: true
  102. # Redis default configuration
  103. redis.config.php: true
  104. # Apache configuration for rewrite urls
  105. apache-pretty-urls.config.php: true
  106. # Define APCu as local cache
  107. apcu.config.php: true
  108. # Apps directory configs
  109. apps.config.php: true
  110. # Used for auto configure database
  111. autoconfig.php: true
  112. # SMTP default configuration
  113. smtp.config.php: true
  114. # Extra config files created in /var/www/html/config/
  115. # ref: https://docs.nextcloud.com/server/15/admin_manual/configuration_server/config_sample_php_parameters.html#multiple-config-php-file
  116. configs: {}
  117.  
  118. # For example, to use S3 as primary storage
  119. # ref: https://docs.nextcloud.com/server/13/admin_manual/configuration_files/primary_storage.html#simple-storage-service-s3
  120. #
  121. # configs:
  122. # s3.config.php: |-
  123. # <?php
  124. # $CONFIG = array (
  125. # 'objectstore' => array(
  126. # 'class' => '\\OC\\Files\\ObjectStore\\S3',
  127. # 'arguments' => array(
  128. # 'bucket' => 'my-bucket',
  129. # 'autocreate' => true,
  130. # 'key' => 'xxx',
  131. # 'secret' => 'xxx',
  132. # 'region' => 'us-east-1',
  133. # 'use_ssl' => true
  134. # )
  135. # )
  136. # );
  137.  
  138. ## Strategy used to replace old pods
  139. ## IMPORTANT: use with care, it is suggested to leave as that for upgrade purposes
  140. ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
  141. strategy:
  142. type: Recreate
  143. # type: RollingUpdate
  144. # rollingUpdate:
  145. # maxSurge: 1
  146. # maxUnavailable: 0
  147.  
  148. ##
  149. ## Extra environment variables
  150. extraEnv:
  151. # - name: SOME_SECRET_ENV
  152. # valueFrom:
  153. # secretKeyRef:
  154. # name: nextcloud
  155. # key: secret_key
  156.  
  157. # Extra mounts for the pods. Example shown is for connecting a legacy NFS volume
  158. # to NextCloud pods in Kubernetes. This can then be configured in External Storage
  159. extraVolumes:
  160. # - name: nfs
  161. # nfs:
  162. # server: "10.0.0.1"
  163. # path: "/nextcloud_data"
  164. # readOnly: false
  165. extraVolumeMounts:
  166. # - name: nfs
  167. # mountPath: "/legacy_data"
  168.  
  169. # Extra secuurityContext parameters. For example you may need to define runAsNonRoot directive
  170. # extraSecurityContext:
  171. # runAsUser: "33"
  172. # runAsGroup: "33"
  173. # runAsNonRoot: true
  174. # readOnlyRootFilesystem: true
  175.  
  176. nginx:
  177. ## You need to set an fpm version of the image for nextcloud if you want to use nginx!
  178. enabled: false
  179. image:
  180. repository: nginx
  181. tag: alpine
  182. pullPolicy: IfNotPresent
  183.  
  184. config:
  185. # This generates the default nginx config as per the nextcloud documentation
  186. default: true
  187. # custom: |-
  188. # worker_processes 1;..
  189.  
  190. resources: {}
  191.  
  192. internalDatabase:
  193. enabled: true
  194. name: nextcloud
  195.  
  196. ##
  197. ## External database configuration
  198. ##
  199. externalDatabase:
  200. enabled: false
  201.  
  202. ## Supported database engines: mysql or postgresql
  203. type: mysql
  204.  
  205. ## Database host
  206. host:
  207.  
  208. ## Database user
  209. user: nextcloud
  210.  
  211. ## Database password
  212. password:
  213.  
  214. ## Database name
  215. database: nextcloud
  216.  
  217. ## Use a existing secret
  218. existingSecret:
  219. enabled: false
  220. # secretName: nameofsecret
  221. # usernameKey: username
  222. # passwordKey: password
  223.  
  224. ##
  225. ## MariaDB chart configuration
  226. ##
  227. mariadb:
  228. ## Whether to deploy a mariadb server to satisfy the applications database requirements. To use an external database set this to false and configure the externalDatabase parameters
  229. enabled: false
  230.  
  231. db:
  232. name: nextcloud
  233. user: nextcloud
  234. password: changeme
  235.  
  236. replication:
  237. enabled: false
  238.  
  239. ## Enable persistence using Persistent Volume Claims
  240. ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
  241. ##
  242. master:
  243. persistence:
  244. enabled: false
  245. # storageClass: ""
  246. accessMode: ReadWriteOnce
  247. size: 8Gi
  248.  
  249. ##
  250. ## PostgreSQL chart configuration
  251. ## for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
  252. ##
  253. postgresql:
  254. enabled: false
  255. postgresqlUsername: nextcloud
  256. postgresqlPassword: changeme
  257. postgresqlDatabase: nextcloud
  258. persistence:
  259. enabled: false
  260. # storageClass: ""
  261.  
  262. redis:
  263. enabled: false
  264. usePassword: true
  265. password: 'changeme'
  266.  
  267. ## Cronjob to execute Nextcloud background tasks
  268. ## ref: https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/background_jobs_configuration.html#webcron
  269. ##
  270. cronjob:
  271. enabled: false
  272. # Nexcloud image is used as default but only curl is needed
  273. image: {}
  274. # repository: nextcloud
  275. # tag: 16.0.3-apache
  276. # pullPolicy: IfNotPresent
  277. # pullSecrets:
  278. # - myRegistrKeySecretName
  279. # Every 5 minutes
  280. # Note: Setting this to any any other value than 5 minutes might
  281. # cause issues with how nextcloud background jobs are executed
  282. schedule: "*/5 * * * *"
  283. annotations: {}
  284. # Set curl's insecure option if you use e.g. self-signed certificates
  285. curlInsecure: false
  286. failedJobsHistoryLimit: 5
  287. successfulJobsHistoryLimit: 2
  288. # If not set, nextcloud deployment one will be set
  289. # resources:
  290. # We usually recommend not to specify default resources and to leave this as a conscious
  291. # choice for the user. This also increases chances charts run on environments with little
  292. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  293. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  294. # limits:
  295. # cpu: 100m
  296. # memory: 128Mi
  297. # requests:
  298. # cpu: 100m
  299. # memory: 128Mi
  300.  
  301. # If not set, nextcloud deployment one will be set
  302. # nodeSelector: {}
  303.  
  304. # If not set, nextcloud deployment one will be set
  305. # tolerations: []
  306.  
  307. # If not set, nextcloud deployment one will be set
  308. # affinity: {}
  309.  
  310. service:
  311. type: ClusterIP
  312. port: 8080
  313. loadBalancerIP: nil
  314. nodePort: nil
  315.  
  316. ## Enable persistence using Persistent Volume Claims
  317. ## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
  318. ##
  319. persistence:
  320. # Nextcloud Data (/var/www/html)
  321. enabled: true
  322. annotations: {}
  323. ## nextcloud data Persistent Volume Storage Class
  324. ## If defined, storageClassName: <storageClass>
  325. ## If set to "-", storageClassName: "", which disables dynamic provisioning
  326. ## If undefined (the default) or set to null, no storageClassName spec is
  327. ## set, choosing the default provisioner. (gp2 on AWS, standard on
  328. ## GKE, AWS & OpenStack)
  329. ##
  330. # storageClass: "-"
  331.  
  332. ## A manually managed Persistent Volume and Claim
  333. ## Requires persistence.enabled: true
  334. ## If defined, PVC must be created manually before volume will be bound
  335. existingClaim: nextcloud-drive
  336.  
  337. accessMode: ReadWriteMany
  338. size: 50Gi
  339.  
  340. resources: {}
  341. # We usually recommend not to specify default resources and to leave this as a conscious
  342. # choice for the user. This also increases chances charts run on environments with little
  343. # resources, such as Minikube. If you do want to specify resources, uncomment the following
  344. # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
  345. # limits:
  346. # cpu: 100m
  347. # memory: 128Mi
  348. # requests:
  349. # cpu: 100m
  350. # memory: 128Mi
  351.  
  352. ## Liveness and readiness probe values
  353. ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
  354. ##
  355. livenessProbe:
  356. #Already tested to disable those and enable the startupProbe, without success
  357. enabled: true
  358. initialDelaySeconds: 10
  359. periodSeconds: 10
  360. timeoutSeconds: 5
  361. failureThreshold: 3
  362. successThreshold: 1
  363. readinessProbe:
  364. enabled: true
  365. initialDelaySeconds: 10
  366. periodSeconds: 10
  367. timeoutSeconds: 5
  368. failureThreshold: 3
  369. successThreshold: 1
  370. startupProbe:
  371. enabled: false
  372. initialDelaySeconds: 30
  373. periodSeconds: 10
  374. timeoutSeconds: 5
  375. failureThreshold: 30
  376. successThreshold: 1
  377.  
  378.  
  379. ## Enable pod autoscaling using HorizontalPodAutoscaler
  380. ## ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
  381. ##
  382. hpa:
  383. enabled: false
  384. cputhreshold: 60
  385. minPods: 1
  386. maxPods: 10
  387.  
  388. nodeSelector: {}
  389.  
  390. tolerations: []
  391.  
  392. affinity: {}
  393.  
  394.  
  395. ## Prometheus Exporter / Metrics
  396. ##
  397. metrics:
  398. enabled: false
  399.  
  400. replicaCount: 1
  401. # The metrics exporter needs to know how you serve Nextcloud either http or https
  402. https: false
  403. timeout: 5s
  404.  
  405. image:
  406. repository: xperimental/nextcloud-exporter
  407. tag: v0.4.0
  408. pullPolicy: IfNotPresent
  409.  
  410. ## Metrics exporter resource requests and limits
  411. ## ref: http://kubernetes.io/docs/user-guide/compute-resources/
  412. ##
  413. # resources: {}
  414.  
  415. ## Metrics exporter pod Annotation and Labels
  416. # podAnnotations: {}
  417.  
  418. # podLabels: {}
  419.  
  420. service:
  421. type: ClusterIP
  422. ## Use serviceLoadBalancerIP to request a specific static IP,
  423. ## otherwise leave blank
  424. # loadBalancerIP:
  425. annotations:
  426. prometheus.io/scrape: "true"
  427. prometheus.io/port: "9205"
  428. labels: {}
  429.  
  430. rbac:
  431. enabled: false
  432. serviceaccount:
  433. create: true
  434. name: nextcloud-serviceaccount
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement