Skip to content

Elasticsearch Installation

For this application I used the Custom-App provided by TrueCharts.

  • Available under the stable train

!Container: Tube


Container

Application Name

ta-elastic
The name is very important, as it determines our DNS names, which is how we are going to connect the applications together..

You don't HAVE to follow my naming scheme, but if you don't, you'll have to also change your DNS name

Container Repository

bbilly1/tubearchivist-es
Container Tag
latest

!Container: Tube


Environment Variables

Name

xpack.security.enabled
Value
true

Name

ELASTIC_PASSWORD
Value
verysecret

!env1: Tube

Name

discovery.type
Value
single-node


Name

ES_JAVA_OPTS
Value
-Xms512m -Xmx512m

!env1: Tube


Name

path.repo
Value
/usr/share/elasticsearch/data/snapshot

!env1: Tube


Networking

Target Port

9200
Port
9200

!Networking: Tube

ClusterIP is being used since no other services besides TA will be accessing this container, so the port only needs to be exposed within the kubernetes network.


Storage

  • I am using PVC in this case since this is not something the user will need to interact with

Ensure the mountpath is:

/usr/share/elasticsearch/data

Elasticsearch specifically looks to that mount point, its required

!Storage: Tube

You of course can change Size Quotum of Storage to something lower. I cannot though. I would recommend setting it to something a bit lower. You will receive a notification on Truenas if your PVC is filling up, so you can expand the size, but you cannot EVER retract to a lower size later on.


Security

  1. Select Show Advanced Security Settings

  2. Select Allow Privilege Escalation

  3. Next to Configure Supplimental Groups Select Add

  4. Input 0 under Supplimental Group

!Storage: Tube