This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from salaboy/master
Adding Example for Kubernetes KIND
- Loading branch information
Showing
3 changed files
with
57 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
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,12 @@ | ||
default: test | ||
|
||
RELEASE := helm-es-kind | ||
|
||
install: | ||
helm upgrade --wait --timeout=900 --install --values values.yaml $(RELEASE) ../../ | ||
|
||
test: install | ||
helm test $(RELEASE) | ||
|
||
purge: | ||
helm del --purge $(RELEASE) |
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,36 @@ | ||
--- | ||
# Permit co-located instances for solitary minikube virtual machines. | ||
antiAffinity: "soft" | ||
|
||
# Shrink default JVM heap. | ||
esJavaOpts: "-Xmx128m -Xms128m" | ||
|
||
# Allocate smaller chunks of memory per pod. | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "512M" | ||
limits: | ||
cpu: "1000m" | ||
memory: "512M" | ||
|
||
# Request smaller persistent volumes. | ||
volumeClaimTemplate: | ||
accessModes: [ "ReadWriteOnce" ] | ||
resources: | ||
requests: | ||
storage: 100M | ||
extraInitContainers: | | ||
- name: create | ||
image: busybox:1.28 | ||
command: ['mkdir', '/usr/share/elasticsearch/data/nodes/'] | ||
volumeMounts: | ||
- mountPath: /usr/share/elasticsearch/data | ||
name: elasticsearch-master | ||
- name: file-permissions | ||
image: busybox:1.28 | ||
command: ['chown', '-R', '1000:1000', '/usr/share/elasticsearch/'] | ||
volumeMounts: | ||
- mountPath: /usr/share/elasticsearch/data | ||
name: elasticsearch-master | ||