Hi,
I'm trying the GA version, but my cluster doesn't start and I don't understand what I'm missing.
Previously I started cluster with the beta version.
I share with you my elasticsearch manifests, events I found about elasticsearch and the error log of the operator:
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
creationTimestamp: "2020-02-21T15:45:18Z"
generation: 1
name: datawarehouse
namespace: default
resourceVersion: "55656287"
selfLink: /apis/elasticsearch.k8s.elastic.co/v1/namespaces/default/elasticsearches/datawarehouse
uid: 2967e3de-54c1-11ea-ae73-4201c0a8000a
spec:
http:
tls:
selfSignedCertificate:
disabled: true
image: gcr.io/hivebrite/elasticsearch7:7cabc9a
nodeSets:
- config:
node.data: false
node.master: true
count: 3
name: master
podTemplate:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: workloadType
operator: In
values:
- elasticsearch
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: datawarehouse
topologyKey: failure-domain.beta.kubernetes.io/zone
requiredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: datawarehouse
topologyKey: kubernetes.io/hostname
containers:
- env:
- name: ES_JAVA_OPTS
value: -Xms4096m -Xmx4096m
limits:
cpu: 4000m
memory: 8Gi
name: elasticsearch
resources:
requests:
cpu: 4000m
memory: 8Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- SETPCAP
- MKNOD
- AUDIT_WRITE
- CHOWN
- NET_RAW
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- SETGID
- SETUID
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
runAsUser: 1000
initContainers:
- command:
- sh
- -c
- sysctl -w vm.max_map_count=262144
name: sysctl
securityContext:
privileged: true
metadata:
labels:
clusterName: wip
region: europe-west1
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: standard
- config:
node.data: true
node.master: false
count: 3
name: data
podTemplate:
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: workloadType
operator: In
values:
- elasticsearch
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: datawarehouse
topologyKey: failure-domain.beta.kubernetes.io/zone
requiredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
elasticsearch.k8s.elastic.co/cluster-name: datawarehouse
topologyKey: kubernetes.io/hostname
containers:
- env:
- name: ES_JAVA_OPTS
value: -Xms4096m -Xmx4096m
limits:
cpu: 4000m
memory: 8Gi
name: elasticsearch
resources:
requests:
cpu: 4000m
memory: 8Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- SETPCAP
- MKNOD
- AUDIT_WRITE
- CHOWN
- NET_RAW
- DAC_OVERRIDE
- FOWNER
- FSETID
- KILL
- SETGID
- SETUID
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
runAsUser: 1000
initContainers:
- command:
- sh
- -c
- sysctl -w vm.max_map_count=262144
name: sysctl
securityContext:
privileged: true
metadata:
labels:
clusterName: wip
region: europe-west1
volumeClaimTemplates:
- metadata:
name: elasticsearch-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: standard
secureSettings:
- secretName: datawarehouse-aws-credentials
updateStrategy:
changeBudget:
maxSurge: 1
maxUnavailable: 1
version: 7.6.0
events:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning CompatibilityCheckError 11m (x18 over 30m) elasticsearch-controller Error during compatibility check: Timeout: request did not complete within requested timeout 30s
operator error log:
{
"level":"error",
"@timestamp":"2020-02-21T15:48:59.347Z",
"logger":"controller-runtime.controller",
"message":"Reconciler error",
"ver":"1.0.1-bcb74688",
"controller":"elasticsearch-controller",
"request":"default/datawarehouse",
"error":"Timeout: request did not complete within requested timeout 30s",
"stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/zapr@v0.1.0/zapr.go:128\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:258\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:232\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.4.0/pkg/internal/controller/controller.go:211\nk8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20191028221656-72ed19daf4bb/pkg/util/wait/wait.go:152\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20191028221656-72ed19daf4bb/pkg/util/wait/wait.go:153\nk8s.io/apimachinery/pkg/util/wait.Until\n\t/go/pkg/mod/k8s.io/apimachinery@v0.0.0-20191028221656-72ed19daf4bb/pkg/util/wait/wait.go:88"
}