Rahul:
Whenever I copy NodeAffinity from documentation to yaml , I did not get it indentated in YAML and looks like below . How can I ensure that the copy from documentation is always indented ?
I have edited my vimrc ( set ts=2 sw=2 expandtab)
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: http://kubernetes.io/e2e-az-name|kubernetes.io/e2e-az-name
operator: In
values:
- e2e-az1
- e2e-az2
containers:
- image: nginx
name: nginx
resources: {}