Skip to content

Add complete Nextcloud on AKS deployment with infrastructure manifests and documentation - #2

Draft
boris-bc with Copilot wants to merge 4 commits into
mainfrom
copilot/set-up-nextcloud-kubernetes-azure
Draft

Add complete Nextcloud on AKS deployment with infrastructure manifests and documentation#2
boris-bc with Copilot wants to merge 4 commits into
mainfrom
copilot/set-up-nextcloud-kubernetes-azure

Conversation

Copilot AI commented Jan 8, 2026

Copy link
Copy Markdown

Implements production-ready Nextcloud deployment on Azure Kubernetes Service with PostgreSQL and Redis.

Infrastructure

Kubernetes Manifests (k8s/base/)

  • Nextcloud 28 deployment with health checks, resource limits, persistent storage (50Gi Premium SSD)
  • PostgreSQL 15 with persistent storage (10Gi Premium SSD)
  • Redis 7 for session/cache management
  • LoadBalancer service + optional Ingress with Let's Encrypt integration
  • Secrets template (requires user customization before deployment)

Automation Scripts

  • deploy.sh - Orchestrated deployment with dependency ordering, readiness checks, non-interactive mode for CI/CD
  • validate.sh - Deployment verification with null-safe checks and color-coded status
  • cleanup.sh - Resource removal with data protection prompts

Configuration

Health probes use dynamic host header from ConfigMap to support any domain:

# Removed hardcoded nextcloud.example.com from probes
livenessProbe:
  httpGet:
    path: /status.php
    port: 80
  initialDelaySeconds: 60

Secrets stored in Kubernetes Secret objects with clear placeholders:

stringData:
  postgres-password: "CHANGE_ME_POSTGRES_PASSWORD"
  nextcloud-admin-password: "CHANGE_ME_ADMIN_PASSWORD"

Documentation

  • GETTING_STARTED.md - 5-minute deployment path
  • README.md - Complete setup, architecture, security considerations
  • AZURE_SETUP.md - AKS cluster provisioning, storage classes, networking
  • QUICKREF.md - Command reference, troubleshooting patterns
  • EXAMPLES.md - HA setup with Azure Files, external database, backup workflows

Resource Allocation

Nextcloud:  512Mi-1Gi RAM,  500m-1000m CPU
PostgreSQL: 256Mi-512Mi RAM, 250m-500m CPU
Redis:      128Mi-256Mi RAM, 100m-200m CPU

Minimum: 2x Standard_D2s_v3 nodes

Deployment time: 5-10 minutes from ./deploy.sh to accessible Nextcloud instance.

Original prompt

help me set up nextcloud kubernetes cluster in azure


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Jan 8, 2026
Copilot AI and others added 3 commits January 8, 2026 13:32
Co-authored-by: boris-bc <63061368+boris-bc@users.noreply.github.com>
Co-authored-by: boris-bc <63061368+boris-bc@users.noreply.github.com>
…de, fix null handling

Co-authored-by: boris-bc <63061368+boris-bc@users.noreply.github.com>
Copilot AI changed the title [WIP] Set up Nextcloud Kubernetes cluster in Azure Add complete Nextcloud on AKS deployment with infrastructure manifests and documentation Jan 8, 2026
Copilot AI requested a review from boris-bc January 8, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants