This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Elastic Cloud on Kubernetes fabrikate definition (#30)
* Elasticsearch operator init * working ECK fab definition * Readme changes * EOFs modified * namespace eof adjust
- Loading branch information
1 parent
a001e98
commit 5e04286
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Elastic Cloud on Kubernetes - (ECK) | ||
|
||
This [Fabrikate](https://github.com/microsoft/fabrikate) definition generates the Kubernetes resource manifests for [ECK-Elastic Cloud on Kubernetes](https://github.com/elastic/cloud-on-k8s). ECK (Elastic Cloud on Kubernetes) encompasses the Elasticsearch operator. | ||
|
||
## Usage | ||
|
||
For customizing your elasticsearch cluster, modify the quickstart sample in the [eck-cluster.yaml](manifests/eck-cluster.yaml) with your own configuration. The default configuration is listed below: | ||
|
||
```yaml | ||
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: quickstart | ||
namespace: elasticsearch | ||
spec: | ||
version: 7.2.0 | ||
nodes: | ||
- nodeCount: 1 | ||
config: | ||
node.master: true | ||
node.data: true | ||
node.ingest: true | ||
``` | ||
## Deploy ECK | ||
1. Modify the Elasticsearch to your configuration | ||
> `kubectl -n elasticsearch apply -f manifests/eck-cluster.yaml` | ||
|
||
|
||
A quickstart sample cluster is deployed by default. | ||
|
||
More information about deploying ECK can be found [here](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html#k8s-deploy-eck) | ||
|
||
## Verify elasticsearch | ||
You can verify the deployment succeeded by calling the elasticsearch API. | ||
|
||
1. Fetch the elasticsearch password | ||
> `kubectl -n elasticsearch get secret quickstart-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode` | ||
|
||
|
||
2. Portforward | ||
> `kubectl -n elasticsearch port-forward service/quickstart-es-http 9200` | ||
|
||
3. Call the endpoint | ||
> `curl -u "elastic:<password>" -k "https://localhost:9200"` | ||
|
||
4. Monitor the operator logs | ||
|
||
> `kubectl -n elastic-system logs -f statefulset.apps/elastic-operator` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: "ECK" | ||
subcomponents: | ||
- name: "elasticsearch-operator" | ||
type: static | ||
source: "https://download.elastic.co/downloads/eck/0.9.0/all-in-one.yaml" | ||
method: "http" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: elasticsearch.k8s.elastic.co/v1alpha1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: quickstart | ||
namespace: elasticsearch | ||
spec: | ||
version: 7.2.0 | ||
nodes: | ||
- nodeCount: 1 | ||
config: | ||
node.master: true | ||
node.data: true | ||
node.ingest: true |
4 changes: 4 additions & 0 deletions
4
definitions/fabrikate-eck/manifests/elasticsearch-namespace.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: elasticsearch |