k8s环境问题
k8s环境问题
8080 refuse
The connection to the server localhost:8080 was refused - did you specify the right host or port?
1
2
3
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
helm离线部署
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0 16:26:52 192.168.10.151:~/zzy $ helm install local-helm-es ./elasticsearch/ -n jaeger-opensearch
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /root/.kube/config
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /root/.kube/config
NAME: local-helm-es
LAST DEPLOYED: Mon Jun 3 16:26:57 2024
NAMESPACE: jaeger-opensearch
STATUS: deployed
REVISION: 1
NOTES:
1. Watch all cluster members come up.
$ kubectl get pods --namespace=jaeger-opensearch -l app=elasticsearch-master -w
2. Retrieve elastic user's password.
$ kubectl get secrets --namespace=jaeger-opensearch elasticsearch-master-credentials -ojsonpath='{.data.password}' | base64 -d
3. Test cluster health using Helm test.
$ helm --namespace=jaeger-opensearch test local-helm-es
This post is licensed under CC BY 4.0 by the author.