Try official image
This commit is contained in:
parent
9a523dbec4
commit
88f2c1e49f
5 changed files with 9 additions and 39 deletions
|
@ -3,37 +3,6 @@ kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-configmap
|
name: nextcloud-configmap
|
||||||
data:
|
data:
|
||||||
000-default.conf: |
|
|
||||||
LoadModule remoteip_module /usr/lib/apache2/modules/mod_remoteip.so
|
|
||||||
Listen 8080
|
|
||||||
<VirtualHost *:8080>
|
|
||||||
ServerAdmin webmaster@localhost
|
|
||||||
DocumentRoot /var/www/html
|
|
||||||
# Log format config
|
|
||||||
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" common
|
|
||||||
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
|
|
||||||
|
|
||||||
# Header config
|
|
||||||
RemoteIPHeader X-Forwarded-For
|
|
||||||
RemoteIPInternalProxy 37.156.195.11
|
|
||||||
RemoteIPInternalProxy 37.156.195.12
|
|
||||||
RemoteIPInternalProxy 37.156.195.21
|
|
||||||
RemoteIPInternalProxy 37.156.195.22
|
|
||||||
# TODO: Package 404 for k8s
|
|
||||||
# ErrorDocument 404 /404.html
|
|
||||||
ErrorLog /dev/stderr
|
|
||||||
TransferLog /dev/stdout
|
|
||||||
<Directory /var/www/html/>
|
|
||||||
LimitRequestBody 0
|
|
||||||
Require all granted
|
|
||||||
AllowOverride All
|
|
||||||
Options FollowSymLinks MultiViews
|
|
||||||
|
|
||||||
<IfModule mod_dav.c>
|
|
||||||
Dav off
|
|
||||||
</IfModule>
|
|
||||||
</Directory>
|
|
||||||
</VirtualHost>
|
|
||||||
config.php: |
|
config.php: |
|
||||||
<?php
|
<?php
|
||||||
$CONFIG = array (
|
$CONFIG = array (
|
||||||
|
|
|
@ -29,7 +29,8 @@ spec:
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
containers:
|
containers:
|
||||||
- name: customer
|
- name: customer
|
||||||
image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
#image: docker.sunet.se/drive/nextcloud-custom:25.0.3.3-4
|
||||||
|
image: nextcloud:latest
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html/config
|
mountPath: /var/www/html/config
|
||||||
|
@ -46,16 +47,16 @@ spec:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 8080
|
port: 80
|
||||||
initialDelaySeconds: 180
|
initialDelaySeconds: 180
|
||||||
periodSeconds: 60
|
periodSeconds: 60
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
tcpSocket:
|
tcpSocket:
|
||||||
port: 8080
|
port: 80
|
||||||
initialDelaySeconds: 300
|
initialDelaySeconds: 300
|
||||||
periodSeconds: 180
|
periodSeconds: 180
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 80
|
||||||
name: nextcloud-http
|
name: nextcloud-http
|
||||||
command: ['/bin/sh', '-c', '/etc/init.d/apache2 start']
|
command: ['/bin/sh', '-c', '/etc/init.d/apache2 start']
|
||||||
initContainers:
|
initContainers:
|
||||||
|
|
|
@ -28,4 +28,4 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 80
|
||||||
|
|
|
@ -9,9 +9,9 @@ items:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 8080
|
- port: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 80
|
||||||
selector:
|
selector:
|
||||||
app: customer-node
|
app: customer-node
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
|
|
|
@ -23,4 +23,4 @@ spec:
|
||||||
service:
|
service:
|
||||||
name: customer-node
|
name: customer-node
|
||||||
port:
|
port:
|
||||||
number: 8080
|
number: 80
|
||||||
|
|
Loading…
Add table
Reference in a new issue