Now, create a new directory structure at manifests/elasticsearch, and in it, create a new file called deployment.yaml. Then, add the following Deployment configuration:
apiVersion: apps/v1kind: Deploymentmetadata: name: elasticsearchspec: replicas: 3 selector: matchLabels: app: elasticsearch template: metadata: name: elasticsearch labels: app: elasticsearch spec: containers: - name: elasticsearch image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.3.2 ports: - containerPort: 9200 - containerPort: 9300
The configuration file consists of several fields (fields marked * are required):
- apiVersion*: The version of the API. This affects the scheme expected for the configuration file. The API is broken into ...