I am trying to install elasticsearch in Kubernetes and I want to deploy the elasticsearch pod inside a particular node.
I am passing below config in yaml file -
elasticsearch:
enabled: true
replicas: 1
minimumMasterNodes: 1
fullnameOverride: "elasticsearch"
imagePullPolicy: "Always"
esJavaOpts: "-Xmx1024m -Xms1024m"
maxUnavailable: 0
clusterHealthCheckParams: "wait_for_status=yellow&timeout=20s"
resources:
requests:
cpu: "100m"
memory: "256M"
limits:
cpu: "2000m"
memory: "2048M"
nodeSelector:
name: "appnode"
I am getting the error below -
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 9m51s default-scheduler 0/2 nodes are available: 1 node(s) didn't match Pod's node affinity/selector, 1 node(s) had volume node affinity conflict. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
Warning FailedScheduling 6m22s (x2 over 7m22s) default-scheduler 0/2 nodes are available: 1 node(s) didn't match Pod's node affinity/selector, 1 node(s) had volume node affinity conflict. preemption: 0/2 nodes are available: 2 Preemption is not helpful for scheduling.
Normal NotTriggerScaleUp 4m44s (x30 over 9m45s) cluster-autoscaler pod didn't trigger scale-up: 1 node(s) didn't match Pod's node affinity/selector, 1 max node group size reached
Please help to resolve the issue.