-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,149 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Change log | ||
See the [releases](https://github.com/Inveniem/nextcloud-azure-aks/releases) | ||
page for notes that go with each release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
## | ||
# Kustomization component to serve up a maintenance page instead of Nextcloud. | ||
# | ||
# The configuration for the maintenance page comes from a | ||
# config-environment.yaml file provided by the overlay for the environment. This | ||
# functionality has been provided as a component so that it only needs to be | ||
# referenced by an overlay when traffic served by that overlay should be routed | ||
# away from Nextcloud, such as during scheduled downtime. The component | ||
# accomplishes this by rewriting the ingress routes for Nextcloud to route | ||
# traffic to the maintenance page service instead of Nextcloud itself. | ||
# | ||
# To enable the maintenance page for the environment of an overlay: | ||
# 1. Customize the appropriate settings in the config-environment.yaml of the | ||
# overlay. | ||
# 2. Uncomment the reference to this component in the `kustomization.yaml` file. | ||
# 3. Re-deploy the overlay. | ||
# | ||
# To disable the maintenance page for the environment of an overlay: | ||
# 1. Comment out the reference to this component in the `kustomization.yaml` | ||
# file. | ||
# 2. Re-deploy the overlay. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2023-2024, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
resources: | ||
- manifests/app-maintenance_page.yaml | ||
|
||
patches: | ||
- target: | ||
kind: Ingress | ||
name: "frontend-nextcloud-ingress" | ||
labelSelector: "owning-app=nextcloud" | ||
patch: | | ||
[ | ||
{ | ||
"op": "replace", | ||
"path": "/spec/rules/0/http/paths/0/backend/service/name", | ||
"value": "internal-maintenance-page" | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/spec/rules/0/http/paths/0/backend/service/port/number", | ||
"value": 8080 | ||
} | ||
] | ||
105 changes: 105 additions & 0 deletions
105
components/maintenance_page/manifests/app-maintenance_page.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
## | ||
# Kubernetes deployment manifest for running a simple maintenance page during | ||
# scheduled/planned downtime. | ||
# | ||
# The messages displayed are configured in the config-environment.yaml file | ||
# provided by the overlay for the environment. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2023-2024, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: maintenance-page | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 2 | ||
selector: | ||
matchLabels: | ||
app: frontend-maintenance-page | ||
role: frontend | ||
template: | ||
metadata: | ||
labels: | ||
app: frontend-maintenance-page | ||
role: frontend | ||
spec: | ||
tolerations: | ||
# Allow scheduling this job on burstable nodes. | ||
- key: inveniem.com/workload-type | ||
operator: Equal | ||
value: burstable | ||
effect: NoSchedule | ||
containers: | ||
- name: frontend-maintenance-page | ||
image: "wickerlabs/maintenance:latest" | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
env: | ||
- name: TITLE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceTitle | ||
- name: HEADLINE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceHeadline | ||
- name: MESSAGE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceMessage | ||
- name: CONTACT_LINK | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceContactLink | ||
- name: MAIL_ADDRESS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceMailAddress | ||
- name: TEAM_NAME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceTeamName | ||
- name: LINK_COLOR | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceLinkColor | ||
- name: THEME | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceTheme | ||
- name: RESPONSE_CODE | ||
valueFrom: | ||
configMapKeyRef: | ||
name: environment | ||
key: maintenanceResponseCode | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: internal-maintenance-page | ||
labels: | ||
role: internal-service | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 8080 | ||
selector: | ||
app: frontend-maintenance-page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,10 @@ | |
# NOTE: All COPY paths are relative to the parent folder (../docker). | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2019, Inveniem | ||
# @copyright Copyright (c) 2019-2024, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
FROM nextcloud:23.0.10-apache | ||
FROM nextcloud:24.0.12-apache | ||
|
||
ENV NEXTCLOUD_CONFIG_READ_ONLY "false" | ||
ENV NEXTCLOUD_INIT_LOCK "true" | ||
|
Oops, something went wrong.