Issues while trying to install Tidb in minikube

Application environment:

test

TiDB version:

Reproduction method:

Problem:

Resource allocation:

Attachment:

I am trying to create a Tidb in minikube as per this documentation
Deploy TiDB in the Minikube Cluster | PingCAP Docs.

I got my minikube up and ready on a ec2 t2 large instance
but I have issues with helm, I installed it but I am not able to see the client and server version there
and not able to see any charts
[root@ip-10-148-41-114 bin]# ./helm version

version.BuildInfo{Version:“v3.8.0”, GitCommit:“d14138609b01886f544b2025f5000351c9eb092e”, GitTreeState:“clean”, GoVersion:“go1.17.5”}

[root@ip-10-148-41-114 bin]# ./helm list

Error: Kubernetes cluster unreachable: Get “http://localhost:8080/version”: dial tcp [::1]:8080: connect: connection refused

also I am getting this when I am trying add charts
[ec2-user@ip-10-148-41-114 bin]$ ./helm repo add pingcap https://charts.pingcap.org/

Error: looks like “https://charts.pingcap.org/” is not a valid chart repository or cannot be reached: Get “https://charts.pingcap.org/index.yaml”: EOF

[ec2-user@ip-10-148-41-114 bin]$
[root@ip-10-148-41-114 bin]#

Hi, Seems like this is an outdated doc about minikube, could you refer to the latest one: Get Started With TiDB Operator on Kubernetes | PingCAP Docs

Looks like your kubernetes “cluster” (minikube) isn’t reachable. Are you sure it is running?

ok i will check the new link out, thanks

my minikube is running fine
here is the output
[ec2-user@ip-10-148-41-114 msubramanyam]$ /usr/local/bin/minikube kubectl get pod
NAME READY STATUS RESTARTS AGE
mongo-depl-5ccf565747-k4sln 1/1 Running 3 (20h ago) 26h
nginx-666678499-jrsz8 0/1 ImagePullBackOff 0 40h
nginx-depl-56cb8b6d7-9sp88 1/1 Running 5 (20h ago) 27h
nginxdepl-c9ffbfb88-wr58k 1/1 Running 4 (20h ago) 28h
[ec2-user@ip-10-148-41-114 msubramanyam]$

i followed the new link , but still getting error when i use helm while adding ping cap repositories

[ec2-user@ip-10-148-41-114 bin]$ helm repo add pingcap https://charts.pingcap.org/

bash: helm: command not found

[ec2-user@ip-10-148-41-114 bin]$ ./helm repo add pingcap https://charts.pingcap.org/

Error: looks like “https://charts.pingcap.org/” is not a valid chart repository or cannot be reached: Get “https://charts.pingcap.org/index.yaml”: EOF

[ec2-user@ip-10-148-41-114 bin]$

actually i got past that issue and i was able to get minikube, helm etc installed and followed the doc to get the tidb opeerator and components installed but i am not able to see all the services /pods under the tidb name space

[ec2-user@ip-10-148-41-114 bin]$ kubectl get pod -n tidb-cluster
NAME READY STATUS RESTARTS AGE
basic-discovery-58fc76b4bb-frs4w 1/1 Running 0 11m
basic-monitor-0 4/4 Running 0 11m
basic-pd-0 1/1 Running 1 (4m5s ago) 11m
basic-tidb-dashboard-0 1/1 Running 0 11m
[ec2-user@ip-10-148-41-114 bin]$

any help is appreaciated

What OS are you using?
Are you using x86_64/am64 hardware or ARM64/Graviton?
What minikube version are you using?
What helm version are you using?

This is how things look for me:

[dvaneeden@dve-carbon ~]$ helm version
version.BuildInfo{Version:"v3.5.4", GitCommit:"1b5edb69df3d3a08df77c9902dc17af864ff05d1", GitTreeState:"clean", GoVersion:"go1.15.11"}
[dvaneeden@dve-carbon ~]$ helm repo add pingcap https://charts.pingcap.org/
"pingcap" has been added to your repositories
[dvaneeden@dve-carbon ~]$ helm repo list
NAME   	URL                        
pingcap	https://charts.pingcap.org/
[dvaneeden@dve-carbon ~]$ curl -s https://charts.pingcap.org/index.yaml | head
apiVersion: v1
entries:
  diag:
  - apiVersion: v2
    appVersion: v1.3.1
    created: "2023-03-07T19:09:12.185465892+08:00"
    description: clinic diag Helm chart for Kubernetes
    digest: 460431624c6a571a77283dfc26547483052fec876fcf63df0202a4f812844334
    home: https://github.com/pingcap/diag
    keywords:

[ec2-user@ip-10-148-40-27 bin]$ uname -a

Linux ip-10-148-40-27.ec2.internal 4.14.243-185.433.amzn2.x86_64 #1 SMP Mon Aug 9 05:55:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

[root@ip-10-148-40-27 bin]# ./helm repo add pingcap https://charts.pingcap.org/
“pingcap” has been added to your repositories
[root@ip-10-148-40-27 bin]# ./helm repo list
NAME URL
pingcap https://charts.pingcap.org/
[root@ip-10-148-40-27 bin]# curl -s https://charts.pingcap.org/index.yaml | head
apiVersion: v1
entries:
diag:

[ec2-user@ip-10-148-40-27 bin]$ ./helm version

version.BuildInfo{Version:“v3.0.0”, GitCommit:“e29ce2a54e96cd02ccfce88bee4f58bb6e2a28b6”, GitTreeState:“clean”, GoVersion:“go1.13.4”}

i did all the process as per this doc

but at the end i only see these pods running
[ec2-user@ip-10-148-40-27 bin]$ ./kubectl get po -n tidb-cluster
NAME READY STATUS RESTARTS AGE
basic-discovery-58fc76b4bb-5k2wg 1/1 Running 0 43h
basic-monitor-0 4/4 Running 0 43h
basic-pd-0 1/1 Running 296 (7m11s ago) 43h
basic-tidb-dashboard-0 1/1 Running 0 43h

i dont see expected output as the doc
the basic-tidb and basic-tikv

Could you try these steps?