Implements NodeSelector

This commit is contained in:
2024-02-17 01:32:01 -03:00
parent f5541bda9b
commit b436eee9d3
5 changed files with 12 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ spec:
labels: labels:
app: backend app: backend
spec: spec:
nodeSelector:
kubernetes.io/role: worker
containers: containers:
- name: backend - name: backend
image: yoshiunfriendly/backend-hideyoshi.com image: yoshiunfriendly/backend-hideyoshi.com

View File

@@ -15,6 +15,8 @@ spec:
labels: labels:
app: frontend app: frontend
spec: spec:
nodeSelector:
kubernetes.io/role: worker
containers: containers:
- name: frontend - name: frontend
image: yoshiunfriendly/frontend-hideyoshi.com:latest image: yoshiunfriendly/frontend-hideyoshi.com:latest

View File

@@ -19,5 +19,9 @@ spec:
memory: "128Mi" memory: "128Mi"
cpu: "75m" cpu: "75m"
affinity:
nodeSelector:
kubernetes.io/role: master
monitoring: monitoring:
enablePodMonitor: true enablePodMonitor: true

View File

@@ -13,6 +13,8 @@ spec:
labels: labels:
app: storage-processor app: storage-processor
spec: spec:
nodeSelector:
kubernetes.io/role: worker
containers: containers:
- name: storage-processor - name: storage-processor
image: yoshiunfriendly/storage-hideyoshi.com:latest image: yoshiunfriendly/storage-hideyoshi.com:latest

View File

@@ -13,6 +13,8 @@ spec:
labels: labels:
app: storage app: storage
spec: spec:
nodeSelector:
kubernetes.io/role: worker
containers: containers:
- name: storage - name: storage
image: yoshiunfriendly/storage-hideyoshi.com:latest image: yoshiunfriendly/storage-hideyoshi.com:latest