40 lines
1.5 KiB
Markdown
40 lines
1.5 KiB
Markdown
# Kubernetes Manifests
|
|
|
|
Collection of Kubernetes manifests for self-hosted services running on a
|
|
homelab cluster.
|
|
|
|
## Layout
|
|
|
|
| Directory | Description |
|
|
|------------------|---------------------------------------------------------------|
|
|
| `Cilium/` | Cilium networking: `LoadBalancerIPPool`, `L2AnnouncementPolicy`, Ingress examples |
|
|
| `Cluster_admin/` | Admin notes: node restart commands, data migration examples |
|
|
| `DockerRegistry/`| Private Docker registry deployment, service, PVC and UI |
|
|
| `Gitea/` | Gitea deployment, service, ingress, namespace, PVC, DB secret |
|
|
| `Immich/` | Immich server, machine-learning, redis, config, secret |
|
|
| `PostgreSQL/` | PostgreSQL deployment, service, PVC, static endpoint, Hetzner volume variant |
|
|
| `Secrets/` | Docker registry login credentials (gitignored) |
|
|
| `volume/` | Persistent volume claim and SMB volume examples |
|
|
|
|
## Usage
|
|
|
|
Apply a manifest with:
|
|
|
|
```bash
|
|
kubectl apply -f <path/to/manifest.yaml>
|
|
```
|
|
|
|
## Notes
|
|
|
|
- Kubernetes `Secret` resources and the `Secrets/` directory are gitignored to
|
|
avoid leaking credentials. Create secrets out-of-band, e.g.:
|
|
|
|
```bash
|
|
kubectl create secret docker-registry dockerhub-creds \
|
|
--namespace=<ns> \
|
|
--docker-server=<server> \
|
|
--docker-username=<user> \
|
|
--docker-password=<password> \
|
|
--docker-email=<email>
|
|
```
|
|
- Review every manifest before applying it to a production cluster. |