Use simple preferred scheduling for Factorio
This commit is contained in:
1 parent
72a1d3e886
commit
1aa4d28a60
15 files changed
+25
-285
No files matched your search
+2
-1
@@ -10,7 +10,8 @@ assert not spec['automountServiceAccountToken']
|
||||
for c in spec['containers']:
|
||||
assert all(p in c for p in ('startupProbe','readinessProbe','livenessProbe','resources')), c['name']
|
||||
assert ':' in c['image'] and not c['image'].endswith(':latest')
|
||||
assert spec['affinity']['nodeAffinity']['requiredDuringSchedulingIgnoredDuringExecution']
|
||||
preference=spec['affinity']['nodeAffinity']['preferredDuringSchedulingIgnoredDuringExecution']
|
||||
assert preference == [{'weight': 100, 'preference': {'matchExpressions': [{'key': 'kubernetes.io/hostname', 'operator': 'In', 'values': ['arschrock']}]}}]
|
||||
for service in (d for d in resources if d['kind']=='Service'):
|
||||
assert all(p['port']!=27015 for p in service['spec']['ports'])
|
||||
for cm in (d for d in resources if d['kind']=='ConfigMap'):
|
||||
|
||||
Reference in new issue
Block a user