You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file is automatically ignored by git (configured in `.gitignore`) to prevent accidentally committing sensitive credentials. Both the makefile and Elasticsearch setup scripts will read the password from this file, with a fallback to "changeme" if the file doesn't exist.
52
52
53
-
2. Setup GCP
53
+
2.**Configure Elasticsearch Host**
54
+
55
+
Create a `.eshost` file in the project root directory containing your Elasticsearch host URL:
This file is automatically ignored by git (configured in `.gitignore`) to prevent accidentally committing sensitive host information. Both the makefile and Elasticsearch setup scripts will read the Elasticsearch host from this file, with a fallback to "https://k8es.ingest.bindiego.com" if the file doesn't exist.
62
+
63
+
3.**Configure Kibana Host**
64
+
65
+
Create a `.kbnhost` file in the project root directory containing your Kibana host URL:
66
+
67
+
```bash
68
+
echo"https://your-kibana-host.com"> .kbnhost
69
+
```
70
+
71
+
This file is automatically ignored by git (configured in `.gitignore`) to prevent accidentally committing sensitive host information. The Elasticsearch setup script will read the Kibana host from this file, with a fallback to "https://k8na.bindiego.com" if the file doesn't exist.
72
+
73
+
4. Setup GCP
54
74
55
75
You could simply run `cd scripts && ./gcp_setup.sh; cd -`, but before that, make sure the parameters on the top have been updated according to your environment, especially the `project` variable, others are really optional.
56
76
@@ -60,11 +80,16 @@ So this script will
60
80
- Setup a Stackdriver sink (Pubsub) for HTTP load balancers
61
81
- Grant permissions to the Service Account that been used by the sink, who will publish logs to Pubsub topic
62
82
63
-
3. Setup Elasticsearch & Kibana
83
+
5. Setup Elasticsearch & Kibana
64
84
65
85
Same as GCP, there is a script can get the job done. Simply run `cd scripts/elastic && ./init.sh; cd -` then you done. Also, make sure you have updated the parameters on the top of the `init.sh` script according to your Elasticsearch setup.
66
86
67
-
**Note**: The Elasticsearch setup script will automatically use the password from the `.espass` file you created in step 1. Make sure your Elasticsearch cluster is accessible and the credentials are correct.
87
+
**Note**: Both the makefile and Elasticsearch setup script will automatically use:
88
+
- The password from the `.espass` file you created in step 1
89
+
- The Elasticsearch host from the `.eshost` file you created in step 2
90
+
- The Kibana host from the `.kbnhost` file you created in step 3
91
+
92
+
Make sure your Elasticsearch cluster and Kibana instance are accessible and the credentials are correct.
68
93
69
94
This script will
70
95
@@ -91,7 +116,11 @@ Double check the paramters passed to the job trigger in `makefile`, then,
91
116
make df
92
117
```
93
118
94
-
**Security Note**: All makefile commands automatically use the Elasticsearch password from your `.espass` file, ensuring secure credential handling across development and production environments.
119
+
**Security Note**: Configuration files are automatically used as follows:
120
+
-**Makefile commands**: Use `.espass` and `.eshost` files for Elasticsearch connection
121
+
-**Setup scripts**: Use `.espass`, `.eshost`, and `.kbnhost` files for complete configuration
122
+
123
+
This ensures secure credential handling and flexible configuration across development and production environments.
0 commit comments