Score:0

This site can’t be reached in kubernetes minikube

in flag

I applied my react kubernetes manifest file on minikube with the service

I am trying to access it on the browser but I am getting error

This site can’t be reached

deployment.yml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: frontend
  labels:
    app: frontend
spec:
  replicas: 1
  selector:
    matchLabels:
      app: frontend
  template:
    metadata:
      labels:
        app: frontend
    spec:
      containers:
        - name: frontend
          image: arch-frontend:1.0
          ports:
            - containerPort: 3000
          env:
            - name: REACT_APP_DEV_BASE_URL
              value: backend
          imagePullPolicy: IfNotPresent

serivce.yml

apiVersion: v1
kind: Service
metadata:
  name: frontend
spec:
  selector:
    app: frontend
  type: LoadBalancer
  ports:
    - protocol: TCP
      port: 3000
      targetPort: 3000
      nodePort: 30012
  externalIPs:
    - 192.168.64.2

I tried to access it on the browser using 192.168.64.2:30012 and 192.168.64.2:3000 but none worked

I did minikube servvice service-name still did not work

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.