assign nextcloud to x86-64 node
This commit is contained in:
parent
508b714c82
commit
e7886e9530
|
@ -4,7 +4,7 @@ metadata:
|
|||
name: weekly-backups
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
cron: "0 3 * * 2"
|
||||
cron: "0 8 * * 2"
|
||||
task: "backup"
|
||||
groups:
|
||||
- default
|
||||
|
|
|
@ -8,8 +8,3 @@ resources:
|
|||
|
||||
commonLabels:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
|
||||
# TODO
|
||||
# patchesStrategicmerge:
|
||||
# - patches/postgres-podaffinity-patch.yaml
|
||||
# - patches/redis-podaffinity-patch.yaml
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue