assign nextcloud to x86-64 node
This commit is contained in:
parent
508b714c82
commit
e7886e9530
|
@ -4,7 +4,7 @@ metadata:
|
||||||
name: weekly-backups
|
name: weekly-backups
|
||||||
namespace: longhorn-system
|
namespace: longhorn-system
|
||||||
spec:
|
spec:
|
||||||
cron: "0 3 * * 2"
|
cron: "0 8 * * 2"
|
||||||
task: "backup"
|
task: "backup"
|
||||||
groups:
|
groups:
|
||||||
- default
|
- default
|
||||||
|
|
|
@ -8,8 +8,3 @@ resources:
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
app.kubernetes.io/name: nextcloud
|
app.kubernetes.io/name: nextcloud
|
||||||
|
|
||||||
# TODO
|
|
||||||
# patchesStrategicmerge:
|
|
||||||
# - patches/postgres-podaffinity-patch.yaml
|
|
||||||
# - patches/redis-podaffinity-patch.yaml
|
|
|
@ -25,19 +25,11 @@ spec:
|
||||||
- weight: 1
|
- weight: 1
|
||||||
preference:
|
preference:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: node-role.kubernetes.io/master
|
# prefer being on an x64 node, for the extra oomf
|
||||||
operator: DoesNotExist
|
- key: kubernetes.io/arch
|
||||||
# podAffinity:
|
operator: In
|
||||||
# preferredDuringSchedulingIgnoredDuringExecution:
|
values:
|
||||||
# - weight: 2
|
- amd64
|
||||||
# podAffinityTerm:
|
|
||||||
# labelSelector:
|
|
||||||
# matchExpressions:
|
|
||||||
# - key: app.kubernetes.io/name
|
|
||||||
# operator: In
|
|
||||||
# values:
|
|
||||||
# - nextcloud
|
|
||||||
# topologyKey: kubernetes.io/hostname
|
|
||||||
containers:
|
containers:
|
||||||
- name: nextcloud
|
- name: nextcloud
|
||||||
image: 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