-
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
21 changed files
with
316 additions
and
262 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.3.1 | ||
1.4.0 |
43 changes: 43 additions & 0 deletions
43
nextcloud-aks/addons/ubuntu-diag/configs/app-ubuntu-diag.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,43 @@ | ||
## | ||
# Kubernetes deployment configuration for running a standard Ubuntu image, for | ||
# diagnosing issues with Nextcloud from inside the cluster. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2019, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ubuntu-diag | ||
spec: | ||
replicas: 1 | ||
revisionHistoryLimit: 2 | ||
selector: | ||
matchLabels: | ||
app: utility-ubuntu-diag | ||
template: | ||
metadata: | ||
labels: | ||
app: utility-ubuntu-diag | ||
role: utility | ||
spec: | ||
containers: | ||
- name: ubuntu | ||
image: "ubuntu:18.04" | ||
command: [ "sleep" ] | ||
args: [ "infinity" ] | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 64Mi | ||
limits: | ||
cpu: 2000m | ||
memory: 512Mi | ||
volumeMounts: | ||
- name: volume-nextcloud-client-zft | ||
mountPath: "/mnt/share/client-zft" | ||
volumes: | ||
- name: volume-nextcloud-client-zft | ||
persistentVolumeClaim: | ||
claimName: "claim-nextcloud-client-zft" |
17 changes: 17 additions & 0 deletions
17
nextcloud-aks/addons/ubuntu-diag/delete_ubuntu_diag_app.sh
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
## | ||
# This script removes the Ubuntu diagnostic application from Kubernetes. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2019, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
|
||
set -e | ||
set -u | ||
|
||
echo "Un-deploying SFTP application..." | ||
kubectl delete -f "configs/app-ubuntu-diag.yaml" | ||
echo "Done." | ||
echo "" |
19 changes: 19 additions & 0 deletions
19
nextcloud-aks/addons/ubuntu-diag/deploy_ubuntu_diag_app.sh
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
## | ||
# This script deploys the Ubuntu diagnostic application to Kubernetes. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2019, Inveniem | ||
# @license GNU AGPL version 3 or any later version | ||
# | ||
|
||
set -e | ||
set -u | ||
|
||
source '../../config.env' | ||
|
||
echo "Deploying Ubuntu diagnostic application..." | ||
kubectl apply -f "configs/app-ubuntu-diag.yaml" | ||
echo "Done." | ||
echo "" |
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
# service, for use by Nextcloud's Antivirus app. | ||
# | ||
# With this configuration, Nextcloud can reach ClamAV on port 3310 at hostname | ||
# "internal-clamav.default.svc.cluster.local" (aka "internal-clamav.default" or | ||
# "internal-clamav" for short") within the cluster. | ||
# "internal-clamav.NAMESPACE.svc.cluster.local" (aka "internal-clamav.NAMESPACE" | ||
# or "internal-clamav" for short") within the cluster. | ||
# | ||
# @author Guy Elsmore-Paddock ([email protected]) | ||
# @copyright Copyright (c) 2019, Inveniem | ||
|
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
Oops, something went wrong.