I wanted to get familiar with Skaffold, as this seems to solve many of the issues we're facing with day-to-day development. However, I cannot get the microservices example to run.
minikube service leeroy-web --url to resolve to an URL
💣 Error opening service: Service leeroy-web was not found in "default" namespace. You may select another namespace by using 'minikube service leeroy-web -n <namespace>: Temporary Error: Error getting service leeroy-web: services "leeroy-web" not found
😿 Sorry that minikube crashed. If this was unexpected, we would love to hear from you:
👉 https://github.com/kubernetes/minikube/issues/new/choose
apiVersion: skaffold/v1
kind: Config
build:
artifacts:
- image: gcr.io/k8s-skaffold/leeroy-web
context: ./leeroy-web/
- image: gcr.io/k8s-skaffold/leeroy-app
context: ./leeroy-app/
deploy:
kubectl:
manifests:
- ./leeroy-web/kubernetes/*
- ./leeroy-app/kubernetes/*
portForward:
- resourceType: deployment
resourceName: leeroy-web
port: 8080
localPort: 9000
cd examples/microservices && skaffold devcurl $(minikube service leeroy-web --url)It looks like I'm having the same issue as in #2381.
I can kubectl port-forward pod/leeroy-web-d5bf49d8c-mfsvx 8888:8080 but minikube service leeroy-web --url still gives me an error.
Actually, nevermind, I missed the --port-forward flag as mentioned in the documentation.
The documentation in examples/microservices/README.adoc should at least mention this, imho.
I met that same issue. I think this issue could reopened to have the documentation updated like:
skaffold dev --port-forward curl http://localhost:9000/ The Service was removed in this commit https://github.com/GoogleContainerTools/skaffold/commit/3f93642deee42e3ad3dfab741fec88850f14a85b .
@balopat : What was your motivation to remove the Service ?
I'm keen to create a PR to either add it back or to update the documentation as I suggested. Any preference ?
The documentation is obviously wrong and an update would be welcome indeed.
hey y'all, sorry for the radio silence on this one. it does seem like we have some holes in our documentation here. @laurentvaills would you still be interested in sending a PR to update them?
I would have been interested in providing a PR for this and being able to
contribute, but unfortunately I'm too much busy at the moment and won't
have time to set it up.
Le ven. 28 févr. 2020 à 19:42, Nick Kubala notifications@github.com a
écrit :
hey y'all, sorry for the radio silence on this one. it does seem like we
have some holes in our documentation here. @laurentvaills
https://github.com/laurentvaills would you still be interested in
sending a PR to update them?—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/GoogleContainerTools/skaffold/issues/3266?email_source=notifications&email_token=AAFQ26WQGLWXWPBMS2YQJPTRFFLJXA5CNFSM4JOQODG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENJWRUQ#issuecomment-592668882,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFQ26SK2KNQZC5DVACZBHDRFFLJXANCNFSM4JOQODGQ
.
Most helpful comment
Actually, nevermind, I missed the
--port-forwardflag as mentioned in the documentation.The documentation in
examples/microservices/README.adocshould at least mention this, imho.