Slide 8
Slide 8 text
nodeSelector
・ nodeのラベルでpodを配置するnodeを選ぶ最もシンプルな方法
・ 複雑な条件文は指定できない
・ podを分散する事はできない
※built-in node labels
Well-Known Labels, Annotations and Taints | Kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
nodeSelector:
topology.kubernetes.io/zone: ap-northeast-1c