1
0
Fork 0

assign nextcloud to x86-64 node

This commit is contained in:
Massaki Archambault 2021-12-27 22:47:52 -05:00
parent 508b714c82
commit e7886e9530
5 changed files with 6 additions and 57 deletions

View File

@ -4,7 +4,7 @@ metadata:
name: weekly-backups
namespace: longhorn-system
spec:
cron: "0 3 * * 2"
cron: "0 8 * * 2"
task: "backup"
groups:
- default

View File

@ -8,8 +8,3 @@ resources:
commonLabels:
app.kubernetes.io/name: nextcloud
# TODO
# patchesStrategicmerge:
# - patches/postgres-podaffinity-patch.yaml
# - patches/redis-podaffinity-patch.yaml

View File

@ -25,19 +25,11 @@ spec:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/master
operator: DoesNotExist
# podAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 2
# podAffinityTerm:
# labelSelector:
# matchExpressions:
# - key: app.kubernetes.io/name
# operator: In
# values:
# - nextcloud
# topologyKey: kubernetes.io/hostname
# prefer being on an x64 node, for the extra oomf
- key: kubernetes.io/arch
operator: In
values:
- amd64
containers:
- name: nextcloud
image: nextcloud

View File

@ -1,19 +0,0 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: postgres
spec:
template:
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- nextcloud
topologyKey: kubernetes.io/hostname

View File

@ -1,19 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
template:
spec:
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- nextcloud
topologyKey: kubernetes.io/hostname