11# get elasticsearch password
2- $ELASTIC_PASSWORD = $ (kubectl get secret -- namespace ex- prod " ex-prod-es-elastic-user" - o go- template= ' {{.data.elastic | base64decode }}' )
2+ $ELASTIC_PASSWORD = $ (kubectl get secret -- namespace ex- prod " ex-prod-es-elastic-user" - o go- template= ' {{.data.elastic | base64decode }}' )
33
44# connect to kibana
55$ELASTIC_JOB = kubectl port- forward -- namespace ex- prod service/ ex- prod- kb- http 5660 :5601 &
@@ -12,7 +12,7 @@ Remove-Job $ELASTIC_JOB
1212curl - k https:// elastic:$ELASTIC_PASSWORD@localhost: 9260 / _cluster/ health?pretty
1313
1414# port forward monitoring elasticsearch
15- $ELASTIC_MONITOR_PASSWORD = $ (kubectl get secret -- namespace elastic- system " elastic-monitor-es-elastic-user" - o go- template= ' {{.data.elastic | base64decode }}' )
15+ $ELASTIC_MONITOR_PASSWORD = $ (kubectl get secret -- namespace elastic- system " elastic-monitor-es-elastic-user" - o go- template= ' {{.data.elastic | base64decode }}' )
1616$ELASTIC_JOB = kubectl port- forward -- namespace elastic- system service/ elastic- monitor- es- http 9280 :9200 &
1717Remove-Job $ELASTIC_JOB
1818
@@ -26,11 +26,11 @@ curl -X PUT -H "Content-Type: application/json" -g -k -d '{ "transient": { "acti
2626curl - k - X DELETE " https://elastic:$ELASTIC_MONITOR_PASSWORD @localhost:9280/.ds-traces-apm-default-2022.09.01-000108"
2727
2828# connect to redis OR use k9s to shell into a redis pod
29- $REDIS_PASSWORD = $ (kubectl get secret -- namespace ex- prod ex- prod- redis - o go- template= ' {{index .data "redis-password" | base64decode }}' )
29+ $REDIS_PASSWORD = $ (kubectl get secret -- namespace ex- prod ex- prod- redis - o go- template= ' {{index .data "redis-password" | base64decode }}' )
3030kubectl exec -- stdin -- tty ex- prod- redis- node- 0 -- / bin/ bash - c " redis-cli -a $REDIS_PASSWORD "
3131
3232# open kubernetes dashboard
33- $DASHBOARD_PASSWORD = $ (kubectl get secret -- namespace kubernetes- dashboard admin- user- token- w8jg7 - o go- template= ' {{.data.token | base64decode }}' )
33+ $DASHBOARD_PASSWORD = $ (kubectl get secret -- namespace kubernetes- dashboard admin- user- token- w8jg7 - o go- template= ' {{.data.token | base64decode }}' )
3434kubectl proxy
3535Start-Process " http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/"
3636
@@ -81,12 +81,16 @@ helm repo update
8181helm upgrade goldilocks fairwinds- stable/ goldilocks -- namespace goldilocks -- reset-values -- dry- run
8282helm upgrade vpa fairwinds- stable/ vpa -- namespace vpa -f vpa- values.yaml -- reset-values -- dry- run
8383
84+ # upgrade signoz
85+ helm repo update
86+ helm upgrade -- reset-values signoz- collector signoz/ k8s- infra -f signoz.yaml -- set " signozApiKey=$SIGNOZ_KEY " -- dry- run
87+
8488# upgrade elasticsearch operator
8589# https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html
8690# https://github.com/elastic/cloud-on-k8s/releases
87- kubectl replace -f https:// download.elastic.co/ downloads/ eck/ 2.15 . 0 / crds.yaml
88- kubectl create -f https:// download.elastic.co/ downloads/ eck/ 2.15 . 0 / crds.yaml
89- kubectl apply -f https:// download.elastic.co/ downloads/ eck/ 2.15 . 0 / operator.yaml
91+ kubectl replace -f https:// download.elastic.co/ downloads/ eck/ 2.16 . 1 / crds.yaml
92+ kubectl create -f https:// download.elastic.co/ downloads/ eck/ 2.16 . 1 / crds.yaml
93+ kubectl apply -f https:// download.elastic.co/ downloads/ eck/ 2.16 . 1 / operator.yaml
9094
9195# upgrade elasticsearch
9296kubectl apply -- namespace ex- prod -f ex- prod- elasticsearch.yaml
@@ -95,7 +99,7 @@ kubectl apply --namespace ex-prod -f ex-prod-elasticsearch.yaml
9599kubectl apply -- namespace elastic- system -f elastic- monitor.yaml
96100
97101# upgrade exceptionless app to a new docker image tag
98- $VERSION = " 8.0.0"
102+ $VERSION = " 8.0.0"
99103helm upgrade -- set " version=$VERSION " -- reuse- values ex- prod -- namespace ex- prod .\exceptionless
100104helm upgrade -- reuse- values ex- prod -- namespace ex- prod .\exceptionless
101105# see what an upgrade will do
0 commit comments