Skip to content

Commit

Permalink
docs/deployment - provide example for solving PVC attach issue (#572)
Browse files Browse the repository at this point in the history
- closes #499
- just convert the solution provided as recommendation to
  other users, tested on EKS running K8s version 1.23
  • Loading branch information
smangels authored Jul 6, 2023
1 parent abd4ba8 commit 8b022d6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Deployment

## Kubernetes

Due to a limitation in how persistent volumes are handled in EKS, we have to ensure that both components sharing DB and CFG volumes are deployed to the same physical K8s node. This can be achieved by setting a `podAffinity` in the `values.yaml` file.

```yaml
# BUG: postee-0 und posteeui both need access to the same PVC (database) so we need to ensure both run on the same node
affinity:
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/instance
operator: In
values:
- postee
topologyKey: kubernetes.io/hostname
```

0 comments on commit 8b022d6

Please sign in to comment.