Skip to content

Fix PostgreSQL StorageClass issue for k8s-deploy#6

Merged
kenahrens merged 1 commit intomasterfrom
fix/postgres-storageclass
Jul 21, 2025
Merged

Fix PostgreSQL StorageClass issue for k8s-deploy#6
kenahrens merged 1 commit intomasterfrom
fix/postgres-storageclass

Conversation

@kenahrens
Copy link
Copy Markdown
Member

Summary

Fixes PostgreSQL pod startup failure in make k8s-deploy by removing hardcoded StorageClass.

Problem

Warning  ProvisioningFailed  persistentvolume-controller  storageclass.storage.k8s.io "standard" not found

The PVC was hardcoded to use storageClassName: standard but the cluster has DigitalOcean storage classes:

  • do-block-storage (default)
  • do-block-storage-retain
  • do-block-storage-xfs
  • do-block-storage-xfs-retain

Solution

  • Removed hardcoded storageClassName: standard from postgres-pvc.yaml
  • Now uses the default StorageClass automatically (do-block-storage)
  • Makes the deployment more portable across different K8s environments

Test plan

  • Verified available StorageClasses in cluster
  • Test make k8s-deploy - PostgreSQL pod should start successfully
  • Verify PVC provisions correctly

🤖 Generated with Claude Code

- Remove hardcoded 'standard' storageClassName from postgres-pvc.yaml
- Now uses default StorageClass (do-block-storage on DigitalOcean)
- Fixes "storageclass.storage.k8s.io 'standard' not found" error
- Makes PVC more portable across different Kubernetes environments

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@kenahrens kenahrens merged commit 2aa1593 into master Jul 21, 2025
2 of 4 checks passed
@kenahrens kenahrens deleted the fix/postgres-storageclass branch August 1, 2025 01:10
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.

1 participant