fix
This commit is contained in:
@@ -26,7 +26,7 @@ spec:
|
|||||||
app.kubernetes.io/component: app
|
app.kubernetes.io/component: app
|
||||||
nextcloud-redis-client: "true"
|
nextcloud-redis-client: "true"
|
||||||
annotations:
|
annotations:
|
||||||
nextcloud-config-hash: c9d560d7e6bc215ec96525af2d0fcee94cef91005ec939e0100dc0fa6999d4c4
|
nextcloud-config-hash: e6f7218d8e724ad4d0f1d5c4d12b491c1db2f33fb0dd470a9e05cc7d371db965
|
||||||
php-config-hash: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
|
php-config-hash: 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a
|
||||||
nginx-config-hash: 18dd8f905a93ed27f032e9ae68084222ed7e5926f7144cda17b979780f4da54b
|
nginx-config-hash: 18dd8f905a93ed27f032e9ae68084222ed7e5926f7144cda17b979780f4da54b
|
||||||
spec:
|
spec:
|
||||||
@@ -101,9 +101,6 @@ spec:
|
|||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
mountPath: /var/www/html/config/.htaccess
|
mountPath: /var/www/html/config/.htaccess
|
||||||
subPath: .htaccess
|
subPath: .htaccess
|
||||||
- name: nextcloud-config
|
|
||||||
mountPath: /var/www/html/config/apache-pretty-urls.config.php
|
|
||||||
subPath: apache-pretty-urls.config.php
|
|
||||||
- name: nextcloud-config
|
- name: nextcloud-config
|
||||||
mountPath: /var/www/html/config/apcu.config.php
|
mountPath: /var/www/html/config/apcu.config.php
|
||||||
subPath: apcu.config.php
|
subPath: apcu.config.php
|
||||||
|
|||||||
@@ -33,10 +33,16 @@ data "kustomization_overlay" "data" {
|
|||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
|
securityContext:
|
||||||
|
runAsGroup: 33
|
||||||
|
runAsUser: 33
|
||||||
|
fsGroup: 33
|
||||||
containers:
|
containers:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: "${var.images.nextcloud.registry}/${var.images.nextcloud.repository}:${var.images.nextcloud.tag}"
|
image: "${var.images.nextcloud.registry}/${var.images.nextcloud.repository}:${var.images.nextcloud.tag}"
|
||||||
imagePullPolicy: "${var.images.nextcloud.pullPolicy}"
|
imagePullPolicy: "${var.images.nextcloud.pullPolicy}"
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_HOST
|
- name: POSTGRES_HOST
|
||||||
value: "${var.instance}-${var.component}"
|
value: "${var.instance}-${var.component}"
|
||||||
|
|||||||
@@ -6,11 +6,6 @@ metadata:
|
|||||||
name: nextcloud
|
name: nextcloud
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
domain:
|
|
||||||
default: your-company
|
|
||||||
examples:
|
|
||||||
- your-company
|
|
||||||
type: string
|
|
||||||
redis:
|
redis:
|
||||||
default:
|
default:
|
||||||
exporter:
|
exporter:
|
||||||
@@ -44,25 +39,6 @@ options:
|
|||||||
default: 2Gi
|
default: 2Gi
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
storage:
|
|
||||||
default:
|
|
||||||
accessMode: ReadWriteOnce
|
|
||||||
size: 10Gi
|
|
||||||
examples:
|
|
||||||
- accessMode: ReadWriteOnce
|
|
||||||
size: 10Gi
|
|
||||||
properties:
|
|
||||||
accessMode:
|
|
||||||
default: ReadWriteOnce
|
|
||||||
enum:
|
|
||||||
- ReadWriteOnce
|
|
||||||
- ReadOnlyMany
|
|
||||||
- ReadWriteMany
|
|
||||||
type: string
|
|
||||||
size:
|
|
||||||
default: 10Gi
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
images:
|
images:
|
||||||
default:
|
default:
|
||||||
exporter:
|
exporter:
|
||||||
@@ -166,6 +142,31 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
postgres:
|
||||||
|
default:
|
||||||
|
replicas: 1
|
||||||
|
storage: 5Gi
|
||||||
|
version: '14'
|
||||||
|
examples:
|
||||||
|
- replicas: 1
|
||||||
|
storage: 5Gi
|
||||||
|
version: '14'
|
||||||
|
properties:
|
||||||
|
replicas:
|
||||||
|
default: 1
|
||||||
|
type: integer
|
||||||
|
storage:
|
||||||
|
default: 5Gi
|
||||||
|
type: string
|
||||||
|
version:
|
||||||
|
default: '14'
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
sub-domain:
|
||||||
|
default: cloud
|
||||||
|
examples:
|
||||||
|
- cloud
|
||||||
|
type: string
|
||||||
domain-name:
|
domain-name:
|
||||||
default: your_company.com
|
default: your_company.com
|
||||||
examples:
|
examples:
|
||||||
@@ -191,36 +192,16 @@ options:
|
|||||||
default: 1
|
default: 1
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
issuer:
|
domain:
|
||||||
default: letsencrypt-prod
|
default: your-company
|
||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- your-company
|
||||||
type: string
|
type: string
|
||||||
ingress-class:
|
ingress-class:
|
||||||
default: traefik
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
- traefik
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
postgres:
|
|
||||||
default:
|
|
||||||
replicas: 1
|
|
||||||
storage: 5Gi
|
|
||||||
version: '14'
|
|
||||||
examples:
|
|
||||||
- replicas: 1
|
|
||||||
storage: 5Gi
|
|
||||||
version: '14'
|
|
||||||
properties:
|
|
||||||
replicas:
|
|
||||||
default: 1
|
|
||||||
type: integer
|
|
||||||
storage:
|
|
||||||
default: 5Gi
|
|
||||||
type: string
|
|
||||||
version:
|
|
||||||
default: '14'
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
admin:
|
admin:
|
||||||
default:
|
default:
|
||||||
name: nextcloud_admin
|
name: nextcloud_admin
|
||||||
@@ -231,11 +212,30 @@ options:
|
|||||||
default: nextcloud_admin
|
default: nextcloud_admin
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
sub-domain:
|
issuer:
|
||||||
default: cloud
|
default: letsencrypt-prod
|
||||||
examples:
|
examples:
|
||||||
- cloud
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
|
storage:
|
||||||
|
default:
|
||||||
|
accessMode: ReadWriteOnce
|
||||||
|
size: 10Gi
|
||||||
|
examples:
|
||||||
|
- accessMode: ReadWriteOnce
|
||||||
|
size: 10Gi
|
||||||
|
properties:
|
||||||
|
accessMode:
|
||||||
|
default: ReadWriteOnce
|
||||||
|
enum:
|
||||||
|
- ReadWriteOnce
|
||||||
|
- ReadOnlyMany
|
||||||
|
- ReadWriteMany
|
||||||
|
type: string
|
||||||
|
size:
|
||||||
|
default: 10Gi
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
dependencies: []
|
dependencies: []
|
||||||
providers:
|
providers:
|
||||||
kubernetes: true
|
kubernetes: true
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
resource "kubectl_manifest" "redirectregex" {
|
|
||||||
yaml_body = <<-EOF
|
|
||||||
apiVersion: traefik.containo.us/v1alpha1
|
|
||||||
kind: Middleware
|
|
||||||
metadata:
|
|
||||||
name: "${var.instance}-redirectregex"
|
|
||||||
namespace: "${var.namespace}"
|
|
||||||
labels: ${jsonencode(local.common-labels)}
|
|
||||||
spec:
|
|
||||||
redirectRegex:
|
|
||||||
permanent: true
|
|
||||||
regex: "https://(.*)/.well-known/(card|cal)dav"
|
|
||||||
replacement: "https://$${1}/remote.php/dav/"
|
|
||||||
EOF
|
|
||||||
}
|
|
||||||
@@ -43,11 +43,6 @@ data:
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
apache-pretty-urls.config.php: |-
|
|
||||||
<?php
|
|
||||||
$CONFIG = array (
|
|
||||||
'htaccess.RewriteBase' => '/',
|
|
||||||
);
|
|
||||||
apcu.config.php: |-
|
apcu.config.php: |-
|
||||||
<?php
|
<?php
|
||||||
$CONFIG = array (
|
$CONFIG = array (
|
||||||
|
|||||||
Reference in New Issue
Block a user