This message was deleted.
# rancher-desktop
a
This message was deleted.
h
What do you mean "hook up the CLI" After installing RD you can use
nerdctl
(or
docker
if using dockerd) and
kubectl
to run locally.
c
Talking about the
rancher
CLI tool. I can use
kubectl
but there is no equivalent for
minikube
in the RD binaries.
I had assumed that
rancher
was the analogue to
minikube
h
Look in your ~/.rd/bin folder. There are tools there. Is
rdctl
want you want?
c
Perhaps - let me explain what I'd like to do
Copy code
apiVersion: v1
kind: Service
metadata:
  name: myapp-service
spec:
  type: NodePort
  ports:
    - port: 80
      targetPort: 80
      nodePort: 30004
  selector:
    app: myapp
I'd like to apply that yaml file and be able to access the application via port 30004 without going to the GUI and setting up port forwarding or running
kubectl port-forward .....
Am I barking up the wrong tree?
h
kubectl apply -f <filename>
c
Yep I did that - but then was only able to access the app via localhost either by setting up port forwarding through the Rancher GUI or else running a
kubectl port-forward ...
command.
h
Services aren't available outside K8s. Add an ingress.
👍 1
c
I'll try that
Thank you for your patience
h
yw