use port 8080 instead of 80

This commit is contained in:
Michael Jerger 2024-02-28 15:03:04 +01:00
parent 2582bcfb10
commit 0d5d10d64c
6 changed files with 41 additions and 46 deletions

View file

@ -6,6 +6,6 @@ metadata:
labels: labels:
app.kubernetes.part-of: NAME-website app.kubernetes.part-of: NAME-website
data: data:
AUTHTOKEN: TOKEN AUTHTOKEN: TOKEN
GITREPOURL: REPOURL GITREPOURL: REPOURL
GITCOMMITURL: COMMITURL GITCOMMITURL: COMMITURL

View file

@ -12,4 +12,3 @@ spec:
resources: resources:
requests: requests:
storage: WEBSITESTORAGESIZE storage: WEBSITESTORAGESIZE

View file

@ -12,4 +12,3 @@ spec:
resources: resources:
requests: requests:
storage: 16Mi storage: 16Mi

View file

@ -80,8 +80,8 @@ data:
} }
website.conf: | website.conf: |
server { server {
listen 80 default_server; listen 8080 default_server;
listen [::]:80 default_server; listen [::]:8080 default_server;
server_name FQDN server_name FQDN
add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload'; add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains; preload';
add_header X-Frame-Options "SAMEORIGIN"; add_header X-Frame-Options "SAMEORIGIN";
@ -96,4 +96,3 @@ data:
# redirects # redirects
REDIRECTS REDIRECTS
} }

View file

@ -18,40 +18,40 @@ spec:
app.kubernetes.part-of: NAME-website app.kubernetes.part-of: NAME-website
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx:latest image: nginx:latest
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
- containerPort: 80 - containerPort: 8080
volumeMounts: volumeMounts:
- mountPath: /etc/nginx - mountPath: /etc/nginx
readOnly: true readOnly: true
name: etc-nginx name: etc-nginx
- mountPath: /var/log/nginx - mountPath: /var/log/nginx
name: log name: log
- mountPath: /var/www/html/website - mountPath: /var/www/html/website
name: content-volume name: content-volume
readOnly: true readOnly: true
initContainers: initContainers:
- image: domaindrivenarchitecture/c4k-website-build - image: domaindrivenarchitecture/c4k-website-build
name: init-build-container name: init-build-container
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
resources: resources:
requests: requests:
cpu: BUILD_CPU_REQUEST cpu: BUILD_CPU_REQUEST
memory: BUILD_MEMORY_REQUEST memory: BUILD_MEMORY_REQUEST
limits: limits:
cpu: BUILD_CPU_LIMIT cpu: BUILD_CPU_LIMIT
memory: BUILD_MEMORY_LIMIT memory: BUILD_MEMORY_LIMIT
command: ["/entrypoint.sh"] command: ["/entrypoint.sh"]
envFrom: envFrom:
- secretRef: - secretRef:
name: build-secret name: build-secret
volumeMounts: volumeMounts:
- name: content-volume - name: content-volume
mountPath: /var/www/html/website mountPath: /var/www/html/website
- name: hash-state-volume - name: hash-state-volume
mountPath: /var/hashfile.d mountPath: /var/hashfile.d
volumes: volumes:
- name: etc-nginx - name: etc-nginx
configMap: configMap:
@ -71,4 +71,3 @@ spec:
- name: hash-state-volume - name: hash-state-volume
persistentVolumeClaim: persistentVolumeClaim:
claimName: hash-state-volume claimName: hash-state-volume

View file

@ -11,5 +11,4 @@ spec:
app: nginx app: nginx
ports: ports:
- name: nginx-http - name: nginx-http
port: 80 port: 8080