> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ahmadraza.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Minikube

# Minikube Testing easy access cmds

## Start Minikube

```bash theme={null}
minikube start -p ai --memory=8096
```

## Minikube forwards the service to localhost

```bash theme={null}
kubectl port-forward service/istio-ingressgateway -n istio-system 8080:80
kubectl port-forward svc/kiali -n istio-system 20001:20001
```

## Access Via tunnel

```bash theme={null}
minikube tunnel -p ai
```

### Get the external IP of the service

```bash theme={null}
kubectl get svc istio-ingressgateway -n istio-system
```

> Output  |  Copy and use the IP External IP for UI access

```
NAME                   TYPE           CLUSTER-IP      EXTERNAL-IP     PORT(S)                                                                      AGE
istio-ingressgateway   LoadBalancer   10.110.60.50   10.110.60.50   15021:32579/TCP,80:30147/TCP,443:31727/TCP   25d
```

### Setup nameSpace AS Default

```bash theme={null}
kubectl config set-context --current --namespace=ai-assistant
kubectl config set-context --current --namespace=default
```

aws eks update-kubeconfig   --region ap-south-1   --name tracemypods-auto

kubectl proxy --address=0.0.0.0 --accept-hosts='.\*'
kubectl -n kubernetes-dashboard edit deployment kubernetes-dashboard
containers:

* name: kubernetes-dashboard
  image: kubernetesui/dashboard:v2.7.0
  args:
  * \--namespace=kubernetes-dashboard
  * \--enable-insecure-login

kubectl rollout restart deployment -n ai-assistant --all

eval $(minikube docker-env)
eval $(minikube -p ai docker-env)
