File tree 4 files changed +19
-20
lines changed
4 files changed +19
-20
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ USER elasticsearch
148
148
149
149
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
150
150
chmod +x dotnet-install.sh && \
151
- ./dotnet-install.sh --channel 9.0 --quality preview -- runtime aspnetcore && \
151
+ ./dotnet-install.sh --channel 9.0 --runtime aspnetcore && \
152
152
rm dotnet-install.sh
153
153
154
154
EXPOSE 8080 9200
@@ -206,7 +206,7 @@ USER elasticsearch
206
206
207
207
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && \
208
208
chmod +x dotnet-install.sh && \
209
- ./dotnet-install.sh --channel 9.0 --quality preview -- runtime aspnetcore && \
209
+ ./dotnet-install.sh --channel 9.0 --runtime aspnetcore && \
210
210
rm dotnet-install.sh
211
211
212
212
EXPOSE 8080 9200
Original file line number Diff line number Diff line change @@ -5,15 +5,10 @@ metadata:
5
5
namespace : elastic-system
6
6
spec :
7
7
version : 8.16.1
8
- podDisruptionBudget :
9
- spec :
10
- minAvailable : 2
11
- selector :
12
- matchLabels :
13
- elasticsearch.k8s.elastic.co/cluster-name : elastic-monitor
8
+ podDisruptionBudget : {}
14
9
nodeSets :
15
10
- name : main
16
- count : 3
11
+ count : 1
17
12
config :
18
13
# if not setting max_map_count in an init container, then use this setting
19
14
# node.store.allow_mmap: false
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ metadata:
6
6
spec :
7
7
version : 8.16.1
8
8
image : exceptionless/elasticsearch:8.16.1 # https://github.com/exceptionless/Exceptionless/tree/main/build/docker/elasticsearch
9
- # monitoring:
10
- # metrics:
11
- # elasticsearchRefs:
12
- # - name: elastic-monitor
13
- # namespace: elastic-system
14
- # logs:
15
- # elasticsearchRefs:
16
- # - name: elastic-monitor
17
- # namespace: elastic-system
9
+ monitoring :
10
+ metrics :
11
+ elasticsearchRefs :
12
+ - name : elastic-monitor
13
+ namespace : elastic-system
14
+ logs :
15
+ elasticsearchRefs :
16
+ - name : elastic-monitor
17
+ namespace : elastic-system
18
18
secureSettings :
19
19
- secretName : ex-prod-snapshots
20
20
http :
Original file line number Diff line number Diff line change 2
2
$ELASTIC_PASSWORD = $ (kubectl get secret -- namespace ex- prod " ex-prod-es-elastic-user" - o go- template= ' {{.data.elastic | base64decode }}' )
3
3
4
4
# connect to kibana
5
- open " http://kibana-ex-prod.localtest.me:5660" && kubectl port- forward -- namespace ex- prod service/ ex- prod- kb- http 5660 :5601
5
+ $ELASTIC_JOB = kubectl port- forward -- namespace ex- prod service/ ex- prod- kb- http 5660 :5601 &
6
+ Remove-Job $ELASTIC_JOB
7
+ Start-Process " http://elastic:$ELASTIC_PASSWORD @kibana-ex-prod.localtest.me:5660"
6
8
7
9
# port forward elasticsearch
8
10
$ELASTIC_JOB = kubectl port- forward -- namespace ex- prod service/ ex- prod- es- http 9260 :9200 &
@@ -14,6 +16,8 @@ $ELASTIC_MONITOR_PASSWORD=$(kubectl get secret --namespace elastic-system "elast
14
16
$ELASTIC_JOB = kubectl port- forward -- namespace elastic- system service/ elastic- monitor- es- http 9280 :9200 &
15
17
Remove-Job $ELASTIC_JOB
16
18
19
+ Start-Process " https://elastic:$ELASTIC_MONITOR_PASSWORD @localhost:9280"
20
+
17
21
curl - k https:// elastic:$ELASTIC_MONITOR_PASSWORD@localhost: 9280 / _cluster/ health?pretty
18
22
curl - k https:// elastic:$ELASTIC_MONITOR_PASSWORD@localhost: 9280 / _cat/ allocation?v
19
23
curl - k https:// elastic:$ELASTIC_MONITOR_PASSWORD@localhost: 9280 / _cluster/ allocation/ explain?pretty
@@ -28,7 +32,7 @@ kubectl exec --stdin --tty ex-prod-redis-node-0 -- /bin/bash -c "redis-cli -a $R
28
32
# open kubernetes dashboard
29
33
$DASHBOARD_PASSWORD = $ (kubectl get secret -- namespace kubernetes- dashboard admin- user- token- w8jg7 - o go- template= ' {{.data.token | base64decode }}' )
30
34
kubectl proxy
31
- open " http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/"
35
+ Start-Process " http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/"
32
36
33
37
# open kubecost
34
38
kubectl port- forward -- namespace kubecost deployment/ kubecost- cost- analyzer 9090
You can’t perform that action at this time.
0 commit comments