Listen to port 80
This commit is contained in:
parent
142ff88dbc
commit
20e5a04951
5 changed files with 8 additions and 23 deletions
|
@ -5,13 +5,10 @@ metadata:
|
|||
data:
|
||||
000-default.conf: |
|
||||
LoadModule remoteip_module /usr/lib/apache2/modules/mod_remoteip.so
|
||||
<VirtualHost *:8080>
|
||||
<VirtualHost *:80>
|
||||
ServerAdmin webmaster@localhost
|
||||
DocumentRoot /var/www/html
|
||||
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
|
||||
ErrorLog /dev/stderr
|
||||
CustomLog /dev/stdout common
|
||||
TransferLog /dev/stdout
|
||||
|
||||
# Header config
|
||||
RemoteIPHeader X-Forwarded-For
|
||||
|
@ -137,5 +134,3 @@ data:
|
|||
),
|
||||
|
||||
);
|
||||
ports.conf: |
|
||||
Listen 8080
|
||||
|
|
|
@ -37,9 +37,6 @@ spec:
|
|||
- name: default-config
|
||||
mountPath: /etc/apache2/sites-enabled/000-default.conf
|
||||
subPath: 000-default.conf
|
||||
- name: ports-config
|
||||
mountPath: /etc/apache2/ports.conf
|
||||
subPath: ports.conf
|
||||
- name: hugepage
|
||||
mountPath: /dev/hugepages
|
||||
resources:
|
||||
|
@ -53,20 +50,19 @@ spec:
|
|||
memory: 256Mi
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 8080
|
||||
port: 80
|
||||
initialDelaySeconds: 180
|
||||
periodSeconds: 60
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 8080
|
||||
port: 80
|
||||
initialDelaySeconds: 300
|
||||
periodSeconds: 180
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
- containerPort: 80
|
||||
name: nextcloud-http
|
||||
command: ["/bin/bash"]
|
||||
args: ["-c", "apachectl -D FOREGROUND"]
|
||||
#command: ["/bin/sh","-c", "apachectl -D FOREGROUND; tail -f /dev/null"]
|
||||
initContainers:
|
||||
- image: docker.sunet.se/sunet/docker-jinja:latest
|
||||
name: init-config
|
||||
|
@ -184,12 +180,6 @@ spec:
|
|||
items:
|
||||
- key: "000-default.conf"
|
||||
path: "000-default.conf"
|
||||
- name: ports-config
|
||||
configMap:
|
||||
name: nextcloud-configmap
|
||||
items:
|
||||
- key: "ports.conf"
|
||||
path: "ports.conf"
|
||||
- name: hugepage
|
||||
emptyDir:
|
||||
medium: HugePages
|
||||
|
|
|
@ -28,4 +28,4 @@ spec:
|
|||
service:
|
||||
name: customer-node
|
||||
port:
|
||||
number: 8080
|
||||
number: 80
|
||||
|
|
|
@ -9,9 +9,9 @@ items:
|
|||
name: customer-node
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: customer-node
|
||||
sessionAffinity: None
|
||||
|
|
|
@ -23,4 +23,4 @@ spec:
|
|||
service:
|
||||
name: customer-node
|
||||
port:
|
||||
number: 8080
|
||||
number: 80
|
||||
|
|
Loading…
Add table
Reference in a new issue